Home > Software engineering >  VC6.0 VFW video transmission coding compression ICSeqCompressFrame encounter problems
VC6.0 VFW video transmission coding compression ICSeqCompressFrame encounter problems

Time:01-06

LRESULT a CALLBACK CServerPlusDlg: : FrameCallBack (HWND HWND, LPVIDEOHDR lpVHdr)
{
//get the main window
PDlg CServerPlusDlg *=(CServerPlusDlg *) : : AfxGetMainWnd ();

//in the connection state
If (pDlg - & gt; M_bConnect==TRUE)
{
//code and send the
PDlg - & gt; CompressFrame (lpVHdr);
}

//return
return TRUE;
}

//coding compression and send
Void CServerPlusDlg: : CompressFrame (LPVIDEOHDR lpVHdr)
{
//whether for key frames
BOOL bKeyFrame;
//video frames actual size
M_OutActSize=this - & gt; M_InInfo. BmiHeader. BiSizeImage;
//coding compression
AfxMessageBox (" coding compression ");
BYTE * Buf=(BYTE *) ICSeqCompressFrame (& amp; M_CV, 0,
LpVHdr - & gt; LpData, & amp; BKeyFrame, (long *) & amp; M_OutActSize);//program will run to the crash, breakpoint debugging will appear the following tips


Please,,

CodePudding user response:

Their top, waiting for bosses
  • Related