Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 1.21 KB

AVIStreamGetFrame.md

File metadata and controls

56 lines (37 loc) · 1.21 KB

Home

Function name : AVIStreamGetFrame

Group: Windows Multimedia - Library: avifil32


The AVIStreamGetFrame function returns the address of a decompressed video frame.


Code examples:

How to play AVI file on the _screen
How to extract frames from AVI files

Declaration:

STDAPI_(LPVOID) AVIStreamGetFrame(
  PGETFRAME pgf,
  LONG lPos
);  

FoxPro declaration:

DECLARE INTEGER AVIStreamGetFrame IN avifil32;
	INTEGER pgf,;
	INTEGER lPos  

Parameters:

pgf Pointer to a GetFrame object.

lPos Position, in samples, within the stream of the desired frame.


Return value:

Returns a pointer to the frame data if successful or NULL otherwise.


Comments:

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.