-
Notifications
You must be signed in to change notification settings - Fork 1
/
sspDsp.h
45 lines (36 loc) · 978 Bytes
/
sspDsp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SSPDSP_H
#define SSPDSP_H
#include <QDebug>
#include <QGridLayout>
#include <QDebug>
#include <QEvent>
#include <QImage>
#include <QLabel>
#include <QMouseEvent>
#include <QString>
#include <QWidget>
#include "yuvImgDsp.h"
#include "rawImg.h"
class SspDsp : public YuvImgDsp
{
Q_OBJECT
public:
explicit SspDsp(QString widgetName, QWidget *parent = 0);
~SspDsp();
bool isYellow(int bX, int bY, int p); // This function is to judge if a pixel should be dyed yellow
unsigned char *tmpDataY;
unsigned char *tmpDataU;
unsigned char *tmpDataV;
int **crtBlock; // current 8x8 block
RawImg *sspData;
protected:
bool eventFilter(QObject* obj, QEvent* event);
signals:
void sspChangingRgb(RawImg &sspData);
void sspChangingDct(RawImg &sspData);
void sspChangingMatrix2(int bX, int bY, int offset);
public slots:
void sspChangedByRgb(RawImg &rawImg);
void sspChangedByDct(RawImg &dctData);
};
#endif // SSPDSP_H