我用VFW无法调节采集帧率,帧率总在10帧左右,设置不起作用,怎么样怎么能设置成功啊.
我的代码是
capCaptureGetSetup(m_hWndCap,&CapParms,sizeof(CapParms));
CapParms.dwRequestMicroSecPerFrame=1.0e6/15.0;
CapParms.vKeyAbort=0;
CapParms.fAbortLeftMouse = FALSE;
CapParms.fAbortRightMouse = FALSE;
CapParms.fYield = TRUE;
CapParms.fCaptureAudio=FALSE;
CapParms.wPercentDropForError = 100;
capCaptureSetSetup(m_hWndCap,&CapParms,sizeof(CapParms));

解决方案 »

  1.   

    capCaptureGetSetup
    The capCaptureGetSetup macro retrieves the current settings of the streaming capture parameters. You can use this macro or explictly send the WM_CAP_GET_SEQUENCE_SETUP message.BOOL capCaptureGetSetup(
      hwnd,  
      s,     
      wSize  
    );
    Parameters
    hwnd 
    Handle to a capture window. 

    Pointer to a CAPTUREPARMS structure. 
    wSize 
    Size, in bytes, of the structure referenced by s. 
    Return Values
    Returns TRUE if successful or FALSE otherwise.Res
    For information about the parameters used to control streaming capture, see the CAPTUREPARMS structure.Requirements 
      Windows NT/2000/XP: Included in Windows NT 3.1 and later.
      Windows 95/98/Me: Included in Windows 95 and later.
      Header: Declared in Vfw.h.
      

  2.   

    CapParms.dwRequestMicroSecPerFrame=1.0e6/15.0;
    莫明其妙,你自己不就设得15帧?!