我以前用VFW,可以调用其标准属性,
我现在用了DSPACK,却找不到类似VFW的视频控制的方法属性,
DSPACK中的例子好像没有调整视频亮度对比度的实例,
请各位泰斗帮忙!

解决方案 »

  1.   

    老大,您真会用directshow做视频捕捉吗?如果是,请帮帮忙,我现在很需要,谢了!
    [email protected]
      

  2.   

    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);
        }