AVIStreamGetFrameOpen

The AVIStreamGetFrameOpen function prepares to decompress video frames from the specified video stream.

STDAPI_(PGETFRAME) AVIStreamGetFrameOpen(
  PAVISTREAM pavi,               
  LPBITMAPINFOHEADER lpbiWanted  
);
 

Parameters

pavi
Address of the video stream used as the video source.
lpbiWanted
Address of a structure that defines the desired video format. Specify NULL to use a default format. You can also specify AVIGETFRAMEF_BESTDISPLAYFMT to decode the frames to the best format for your display.

Return Values

Returns a GetFrame object that can be used with the AVIStreamGetFrame function. If the system cannot find a decompressor that can decompress the stream to the given format, or to any RGB format, the function returns NULL.

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, AVIStreamGetFrame