AnyChat技术支持论坛
标题:
AnyChat支持非国标(NTSC)视频制式
[打印本页]
作者:
admin
时间:
2014-1-13 18:39
标题:
AnyChat支持非国标(NTSC)视频制式
自
AnyChat(r3964)
版本开始,AnyChat支持非国标(NTSC)视频制式参数设置。
新增加参数设置项:
///< 视频采集制式设置(参数为:int型,定义为DirectShow::strmif.h::AnalogVideoStandard,默认为:AnalogVideo_PAL_B)
#define BRAC_SO_LOCALVIDEO_TVFORMAT 104
复制代码
其中DirectShow::strmif.h::AnalogVideoStandard定义为:
enum tagAnalogVideoStandard
{ AnalogVideo_None = 0,
AnalogVideo_NTSC_M = 0x1,
AnalogVideo_NTSC_M_J = 0x2,
AnalogVideo_NTSC_433 = 0x4,
AnalogVideo_PAL_B = 0x10,
AnalogVideo_PAL_D = 0x20,
AnalogVideo_PAL_G = 0x40,
AnalogVideo_PAL_H = 0x80,
AnalogVideo_PAL_I = 0x100,
AnalogVideo_PAL_M = 0x200,
AnalogVideo_PAL_N = 0x400,
AnalogVideo_PAL_60 = 0x800,
AnalogVideo_SECAM_B = 0x1000,
AnalogVideo_SECAM_D = 0x2000,
AnalogVideo_SECAM_G = 0x4000,
AnalogVideo_SECAM_H = 0x8000,
AnalogVideo_SECAM_K = 0x10000,
AnalogVideo_SECAM_K1 = 0x20000,
AnalogVideo_SECAM_L = 0x40000,
AnalogVideo_SECAM_L1 = 0x80000,
AnalogVideo_PAL_N_COMBO = 0x100000,
} AnalogVideoStandard;
复制代码
通常在打开视频之前设置,典型的设置代码如下:
DWORD dwTVFormat = 1; // AnalogVideo_NTSC_M
BRAC_SetSDKOption(BRAC_SO_LOCALVIDEO_TVFORMAT, (PCHAR)&dwTVFormat, sizeof(DWORD));
复制代码
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/)
Powered by Discuz! X3