FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API-Examples/windows/APIExample/APIExample/AGVideoWnd.h at master · JonnyWorld/API-Examples · GitHub
JonnyWorld
/
API-Examples
Public
forked from
AgoraIO/API-Examples
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
APIExample
/
AGVideoWnd.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
105 lines (74 loc) · 2.13 KB
Breadcrumbs
API-Examples
/
windows
/
APIExample
/
APIExample
/
AGVideoWnd.h
Copy path
File metadata and controls
105 lines (74 loc) · 2.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
pragma
once
#
define
WM_SHOWMODECHANGED
WM_USER
+
300
#
define
WM_SHOWBIG
WM_USER
+
301
#
define
WND_VIDEO_WIDTH
192
#
define
WND_VIDEO_HEIGHT
144
#
define
WND_INFO_WIDTH
192
#
define
WND_INFO_HEIGHT
36
class
CAGInfoWnd
:
public
CWnd
{
DECLARE_DYNAMIC
(CAGInfoWnd)
public:
CAGInfoWnd
();
virtual
~CAGInfoWnd
();
void
ShowTips
(
BOOL
bShow =
TRUE
);
void
SetVideoResolution
(
int
nWidth,
int
nHeight);
void
SetFrameRateInfo
(
int
nFPS);
void
SetBitrateInfo
(
int
nBitrate);
void
SetUID
(
UINT
dwUID) { m_nUID = dwUID; }
protected:
afx_msg
void
OnPaint
();
afx_msg
BOOL
OnEraseBkgnd
(
CDC
* pDC);
DECLARE_MESSAGE_MAP
()
private:
BOOL
m_bShowTip;
COLORREF
m_crBackColor;
int
m_nWidth;
int
m_nHeight;
int
m_nFps;
int
m_nBitrate;
CBrush m_brBack;
UINT
m_nUID =
0
;
};
class
CAGVideoWnd
:
public
CWnd
{
DECLARE_DYNAMIC
(CAGVideoWnd)
public:
CAGVideoWnd
();
virtual
~CAGVideoWnd
();
void
SetUID
(
UINT
dwUID);
UINT
GetUID
();
BOOL
IsWndFree
();
void
SetFaceColor
(
COLORREF
crBackColor);
BOOL
SetBackImage
(
UINT
nID,
UINT
nWidth,
UINT
nHeight,
COLORREF
crMask =
RGB
(
0xFF
,
0xff
,
0xFF
));
void
SetVideoResolution
(
UINT
nWidth,
UINT
nHeight);
void
GetVideoResolution
(
UINT
*nWidth,
UINT
*nHeight);
void
SetBitrateInfo
(
int
nReceivedBitrate);
int
GetBitrateInfo
() {
return
m_nBitRate; };
void
SetFrameRateInfo
(
int
nReceiveFrameRate);
int
GetFrameRateInfo
() {
return
m_nFrameRate; };
void
ShowVideoInfo
(
BOOL
bShow);
BOOL
IsVideoInfoShowed
() {
return
m_bShowVideoInfo; };
void
SetBigShowFlag
(
BOOL
bBigShow);
BOOL
IsBigShow
() {
return
m_bBigShow; };
protected:
afx_msg
int
OnCreate
(
LPCREATESTRUCT
lpCreateStruct);
afx_msg
BOOL
OnEraseBkgnd
(
CDC
* pDC);
afx_msg
void
OnLButtonDown
(
UINT
nFlags, CPoint point);
afx_msg
void
OnLButtonDblClk
(
UINT
nFlags, CPoint point);
afx_msg
void
OnRButtonDown
(
UINT
nFlags, CPoint point);
afx_msg
void
OnSize
(
UINT
nType,
int
cx,
int
cy);
DECLARE_MESSAGE_MAP
()
private:
CImageList m_imgBackGround;
COLORREF
m_crBackColor;
CAGInfoWnd m_wndInfo;
private:
UINT
m_nUID =
0
;
UINT
m_nWidth;
UINT
m_nHeight;
int
m_nFrameRate;
int
m_nBitRate;
BOOL
m_bShowVideoInfo;
BOOL
m_bBigShow;
};
Back
|
FazBrowse Home
|
New Git URL