R
rzqcjwrz
Unregistered / Unconfirmed
GUEST, unregistred user!
void CALLBACK CapPicFun(long nPort,/
char * pBuf,long nSize,/
long nWidth,long nHeight,/
long nStamp,long nType,long nReceaved)
{
if(!((g_bCapPic) &&
(nPort == ipos)))
return;
CString csFile;
switch(nType)
{
case T_UYVY:
csFile="c://uyvy.bmp";
break;
case T_YV12:
csFile="c://yv12.bmp";
break;
case T_RGB32:
csFile="c://rgb.bmp";
break;
default:
return ;
}
MP4_ClientSavePicFile(pBuf,nSize,nWidth,nHeight,nType,csFile.GetBuffer(csFile.GetLength()));
g_bCapPic=FALSE;
}
char * pBuf,long nSize,/
long nWidth,long nHeight,/
long nStamp,long nType,long nReceaved)
{
if(!((g_bCapPic) &&
(nPort == ipos)))
return;
CString csFile;
switch(nType)
{
case T_UYVY:
csFile="c://uyvy.bmp";
break;
case T_YV12:
csFile="c://yv12.bmp";
break;
case T_RGB32:
csFile="c://rgb.bmp";
break;
default:
return ;
}
MP4_ClientSavePicFile(pBuf,nSize,nWidth,nHeight,nType,csFile.GetBuffer(csFile.GetLength()));
g_bCapPic=FALSE;
}