Group: Windows Multimedia - Library: avifil32
How to play AVI file on the _screen
How to extract frames from AVI files
STDAPI_(LPVOID) AVIStreamGetFrame(
PGETFRAME pgf,
LONG lPos
);
DECLARE INTEGER AVIStreamGetFrame IN avifil32;
INTEGER pgf,;
INTEGER lPos
pgf Pointer to a GetFrame object.
lPos Position, in samples, within the stream of the desired frame.
Returns a pointer to the frame data if successful or NULL otherwise.
The frame data is returned as a packed DIB. The returned frame is valid only until the next call to this function or the AVIStreamGetFrameClose function.
The packed DIB contains BITMAPINFOHEADER structure, followed sometimes by palette table, and then followed by bitmap data -- all in continuous block of memory.