/*********************************************************************************************************************************************/ //设置拍照分辨率 HRESULT hr=0xff,hr1=0xff; int iCount,iSize; IAMStreamConfig *pConfig = NULL; VIDEO_STREAM_CONFIG_CAPS scc; CHK(m_pCaptureGraphBuilder->FindInterface(&PIN_CATEGORY_STILL, &MEDIATYPE_Video, m_pVideoCaptureFilter, IID_IAMStreamConfig, (void **) &pConfig)); CHK(pConfig->GetNumberOfCapabilities(&iCount, &iSize)); AM_MEDIA_TYPE *pmt; //参数1: 0是320*240, 1是640*480, 2是1024*768, 3是2048*1536 CHK(pConfig ->GetStreamCaps(2, &pmt, (BYTE*)&scc)); CHK(pConfig->SetFormat(pmt)); DeleteMediaType(pmt); /********************************************************************************************************************************************/ //18,创建Still Pin,用于抓图 CHK(m_pImageSinkFilter.CoCreateInstance(CLSID_IMGSink