我用directshow做视频捕捉,如何调整视频亮度对比度,大小等视频属性?各位大虾救命!!! 我以前用VFW,可以调用其标准属性,我现在用了DSPACK,却找不到类似VFW的视频控制的方法属性,DSPACK中的例子好像没有调整视频亮度对比度的实例,请各位泰斗帮忙! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 老大,您真会用directshow做视频捕捉吗?如果是,请帮帮忙,我现在很需要,谢了![email protected] hr = pBuilder->FindInterface(&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Video, gcap.pVCap, IID_IAMStreamConfig, (void **)&gcap.pVideoCfg); if(hr != NOERROR) { // this means we can't set frame rate (non-DV only) DShowUtil::ErrMsg(TEXT("Error %x: Cannot find VCapture:IAMStreamConfig"), hr); } AM_MEDIA_TYPE *pmt; // default capture format if(gcap.pVideoCfg && gcap.pVideoCfg->GetFormat(&pmt) == S_OK) { // DV capture does not use a VIDEOINFOHEADER if(pmt->formattype == FORMAT_VideoInfo) { HEADER(pmt->pbFormat)->biWidth = 352; HEADER(pmt->pbFormat)->biHeight = 288; hr = gcap.pVideoCfg->SetFormat(pmt); } DeleteMediaType(pmt); } 〓〓〓〓急:请帮我看下这段老外写的代码〓〓〓〓 一个安装文件制作的问题请教 急!20分,给我一段最简单的直接发文本到打印机的程序, 谁有根据日期计算出那天是星期几的算法啊! 麻烦各位介绍一本学delphi入门的好书 有关三层的问题 关于定义类型的问题 使用XMLDocument怎么插入注释代码而非节点到XML文件中? 关于窗体 寻用delphi编工控程序的高手!!!!!! 子窗口怎么跑到主窗口后面去了? 请问高手:InterBase Guardian 的数据库默认的用户名和密码是什么?
[email protected]
&MEDIATYPE_Video, gcap.pVCap,
IID_IAMStreamConfig, (void **)&gcap.pVideoCfg);
if(hr != NOERROR)
{
// this means we can't set frame rate (non-DV only)
DShowUtil::ErrMsg(TEXT("Error %x: Cannot find
VCapture:IAMStreamConfig"), hr);
}
AM_MEDIA_TYPE *pmt;
// default capture format
if(gcap.pVideoCfg && gcap.pVideoCfg->GetFormat(&pmt) == S_OK)
{
// DV capture does not use a VIDEOINFOHEADER
if(pmt->formattype == FORMAT_VideoInfo)
{
HEADER(pmt->pbFormat)->biWidth = 352;
HEADER(pmt->pbFormat)->biHeight = 288;
hr = gcap.pVideoCfg->SetFormat(pmt);
}
DeleteMediaType(pmt);
}