forked from danielkucera/Mixer-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hdmi.h
64 lines (45 loc) · 1012 Bytes
/
hdmi.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef HDMI_H
#define HDMI_H
#include <QMainWindow>
#include <QRunnable>
#include <QThread>
#include "buffer.h"
#include "hdmireciever.h"
#include <fstream>
#define JPEG_LIB_VERSION 80
#include "jpeglib.h"
#include <setjmp.h>
struct my_error_mgr {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct my_error_mgr * my_error_ptr;
namespace Ui {
class HDMI;
}
class HDMI : public QMainWindow
{
Q_OBJECT
public:
explicit HDMI(QWidget *parent = 0);
~HDMI();
void Init(Buffer* buffer);
private:
Ui::HDMI *ui;
Buffer* buffer;
Reciever* recvr;
void* dest;
int number;
int frame_cnt=0;
int old_f = 0;
int jpg_w=0;
int jpg_h=0;
//void local_error_exit (jpeg_common_struct* cinfo);
private slots:
void enableHDMI(int status);
void process(QByteArray image);
void updateStatusbar();
signals:
void imgRdy(void* inp,int off);
};
#endif // HDMI_H