The SetFormat method sets the decompressed image format of the frames being extracted and optionally provides a buffer for the decompression operation.
HRESULT SetFormat(
PAVISTREAM ps,
LPBITMAPINFOHEADER lpbi,
LPVOID lpBits,
int x,
int y,
int dx,
int dy
);
Returns NOERROR if successful, E_OUTOFMEMORY if the decompressed image is larger than the buffer size, or E_FAIL otherwise.
The x, y, dx, and dy parameters identify the portion of the bitmap specified by lpbi and lpBits that receives the decompressed image.
For handlers written in C++, SetFormat has the following syntax:
HRESULT SetFormat(LPBITMAPINFOHEADER lpbi, LPVOID lpBits, int x,
int y, int dx, int dy);
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.
Custom File and Stream Handlers Overview, Custom File and Stream Handler Interfaces, BITMAPINFOHEADER