ivideokeyer.h

来自「最近在学习directshow, Directshow实务精选的源代码」· C头文件 代码 · 共 55 行

H
55
字号
//
// IVideoKeyer.h
// Desc: DirectShow sample code - custom interface
//
/*-----------------------------------------------------*\
			HQ Tech, Make Technology Easy!       
 More information, please go to http://hqtech.nease.net.
/*-----------------------------------------------------*/

#ifndef __H_IVideoKeyer__
#define __H_IVideoKeyer__

typedef enum
{
	DETECT_ONCE,
	DETECT_ALWAYS,
	CUSTOMIZE
} DETECT_TYPE;

#ifdef __cplusplus
extern "C" {
#endif

//----------------------------------------------------------------------------
// IVideoKeyer
//----------------------------------------------------------------------------
DECLARE_INTERFACE_(IVideoKeyer, IUnknown)
{
	STDMETHOD(get_ConnectedMediaType) (THIS_
		CMediaType * outMainType, CMediaType * outMixingType
	) PURE;
	
	STDMETHOD(put_DetectType) (THIS_
		DETECT_TYPE inType
	) PURE;

	STDMETHOD(get_DetectType) (THIS_
		DETECT_TYPE * outType
	) PURE;

	STDMETHOD(put_BackgroundColor) (THIS_
		BYTE inRed, BYTE inGreen, BYTE inBlue
	) PURE;

	STDMETHOD(get_BackgroundColor) (THIS_
		BYTE * outRed, BYTE * outGreen, BYTE * outBlue
	) PURE;
};
//----------------------------------------------------------------------------

#ifdef __cplusplus
}
#endif

#endif // __H_IVideoKeyer__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?