I am using sdk dahua to connect to a DVR. Until then. I'm having trouble getting the bytes returned from a camera. and export in image format. I'm a beginner and I have no idea. how.
//bytes de retorno da camera
void CALLBACK RealDataCallBackEx(LLONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, LONG param, LDWORD dwUser) {
// if more than one real-time monitoring use same data callback, we can judge by parameter lRealHandle.
// bytes returned
// bytes returned
fwrite (pBuffer, 1, dwBufSize, file);
fflush(file);
//original A/V hybrid data