F
fan27
Unregistered / Unconfirmed
GUEST, unregistred user!
function capVideoStreamCallback(HWND:hWnd;
lpVHdrVIDEOHDR):longint;stdcall;
var
DataPoint:^byte;
//DibLen:integer;
begin
//转换从回调函数中得到的指针
VideoStr:=PVIDEOHDR(lpVHdr);
//得到返回的数据大小
//DibLen:=VideoStr^.dwBufferLength;
GetMem(DataPoint,64000);
//将帧数据COPY到一个内存中,注意DATAPOINT要先分配空间
CopyMemory(DataPoint,VideoStr^.lpData,videostr^.dwBufferLength);
end;
lpVHdrVIDEOHDR):longint;stdcall;
var
DataPoint:^byte;
//DibLen:integer;
begin
//转换从回调函数中得到的指针
VideoStr:=PVIDEOHDR(lpVHdr);
//得到返回的数据大小
//DibLen:=VideoStr^.dwBufferLength;
GetMem(DataPoint,64000);
//将帧数据COPY到一个内存中,注意DATAPOINT要先分配空间
CopyMemory(DataPoint,VideoStr^.lpData,videostr^.dwBufferLength);
end;