AVIStreamGetFrame

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

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

Parameters

pgf
Address of a GetFrame object.
lPos
Position, in samples, within the stream of the desired frame.

Return Values

Returns a pointer to the frame data if successful or NULL otherwise. The frame data is returned as a packed DIB.

Remarks

The returned frame is valid only until the next call to this function or the AVIStreamGetFrameClose function.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.
  Import Library: Use vfw32.lib.

See Also

AVIFile Functions and Macros Overview, AVIFile Functions, AVIStreamGetFrameClose