ICCompressGetSize

The ICCompressGetSize macro requests that the video compression driver supply the maximum size of one frame of data when compressed into the specified output format. You can use this macro or explicitly call the ICM_COMPRESS_GET_SIZE message.

DWORD ICCompressGetSize(
  hic,        
  lpbiInput,  
  lpbiOutput  
);
 

Parameters

hic
Handle of a compressor.
lpbiInput
Address of a BITMAPINFO structure containing the input format.
lpbiOutput
Address of a BITMAPINFO structure containing the output format.

Return Values

Returns the maximum number of bytes a single compressed frame can occupy.

Remarks

Typically, applications send this message to determine how large a buffer to allocate for the compressed frame.

The driver should calculate the size of the largest possible frame based on the input and output formats.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

Video Compression Manager Overview, Video Compression Macros, BITMAPINFO, ICM_COMPRESS_GET_SIZE