📄 vrendmodeflag.h
字号:
/////////////////////////////////////////////////////
#ifndef __ITCCVREN_H__
#define __ITCCVREN_H__
#define xCHValue 0x100010 // chromakey value : R:16 G:0 B:16
struct VrenderModeFlag{
unsigned int mode;
// 0: default(no alpha blending & no croma key)
// 1: chroma key(using xCHValue)
// 2: alpha blending 25%
// 3: alpha blending & chroma keying
unsigned int left;
unsigned int top;
unsigned int width;
unsigned int height;
unsigned int reserved[5];
};
//adf85a65-358f-4fcd-86b1-b8f3d6540324
static const GUID IID_ITccVren =
{ 0xadf85a65, 0x358f, 0x4fcd, {0x86, 0xb1, 0xb8, 0xf3, 0xd6, 0x54, 0x03, 0x24} };
// {DB1922DC-3E3C-488f-8253-076C34F0FE5D}
static const GUID IID_ITccVren2 =
{ 0xdb1922dc, 0x3e3c, 0x488f, { 0x82, 0x53, 0x7, 0x6c, 0x34, 0xf0, 0xfe, 0x5d } };
DECLARE_INTERFACE_(ITccVren, IUnknown)
{
STDMETHOD(GetModeFlag)(THIS_ VrenderModeFlag* Flag) PURE;
STDMETHOD(SetModeFlag)(THIS_ VrenderModeFlag Flag) PURE;
STDMETHOD(SetAVSync)(THIS_ BOOL bAVSync) PURE;
STDMETHOD(SetM2MScaler)(THIS_ BOOL bM2MScaler) PURE;
STDMETHOD(SetAlphaBlanding)(THIS_ BOOL AlphaBlanding) PURE;
};
typedef BOOL (CALLBACK *TCCINFORMATIONRECEIVECALLBACK)(DWORD, PVOID, PVOID);
DECLARE_INTERFACE_(ITccVren2, ITccVren)
{
// blt YUV420 on video LCD layer
STDMETHOD(BitBltYuv420)(THIS_ BYTE* pBuf, CONST INT imgWidth, CONST INT imgHeight) PURE;
STDMETHOD(SetPreviewYuv420)(THIS_ CONST BYTE *pBuffer, CONST int imgWidth, CONST int imgHeight, TCCINFORMATIONRECEIVECALLBACK pfn, PVOID pParam) PURE;
};
// {F9A3EFD9-6812-4166-8679-728082CE3FB6}
static const GUID IID_ITccVren3={0xf9a3efd9, 0x6812, 0x4166, {0x86, 0x79, 0x72, 0x80, 0x82, 0xce, 0x3f, 0xb6}};
DECLARE_INTERFACE_(ITccVren3, ITccVren2)
{
STDMETHOD(CaptureSampleBufferYuv420)(THIS_ CONST BYTE *pBuffer, int *pWidth, int *pHeight, int *pBufferSize, DWORD dwMilliseconds) PURE;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -