-
Notifications
You must be signed in to change notification settings - Fork 4
/
cvideodevice.h
71 lines (55 loc) · 1.5 KB
/
cvideodevice.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
65
66
67
68
69
70
71
#ifndef CVIDEODEVICE_H
#define CVIDEODEVICE_H
#include <QObject>
#include <QRect>
#include "global.h"
#include <ptlib/video.h>
class CMyPhoneEndPoint;
class CVideoDlg;
class CVideoOutputDevice: public QObject, public PVideoOutputDeviceRGB
{
Q_OBJECT
public:
CVideoOutputDevice(CMyPhoneEndPoint* pendpoint,
bool fFlipVertically = FALSE,
bool fFlipHorizontally = FALSE,
bool isLocal = FALSE,
bool doLocalVideoPnP = FALSE);
~CVideoOutputDevice();
virtual PBoolean Open(
const PString & deviceName, /// Device name to open
PBoolean startImmediate = TRUE /// Immediately start device
);
virtual PBoolean IsOpen();
virtual PBoolean Close();
#if PTLIB_MAJOR<=2 && PTLIB_MINOR<10
virtual PStringList GetDeviceNames() const;
#else
virtual PStringArray GetDeviceNames() const;
#endif
// Resizing frames
PBoolean SetFrameSize(
unsigned width, /// New width of frame
unsigned height /// New height of frame
);
PBoolean SetColourFormat(
const PString & colourFormat // New color format for device.
);
PBoolean FrameComplete();
protected:
CVideoDlg* m_videoDlg;
//QRect m_rect;
bool m_fVertFlip;
bool m_fHorzFlip;
bool m_isLocal;
bool m_doLocalVideoPnP;
int m_x;
int m_y;
int m_w;
int m_h;
bool m_bIsInitialized;
signals:
void signal_ShowVideoPanels(bool);
void signal_UpdateVideoDlg();
};
#endif // CVIDEODEVICE_H