ICCompressQuery

The ICCompressQuery macro queries a video compression driver to determine if it supports a specific input format or if it can compress a specific input format to a specific output format. You can use this macro or explicitly call the ICM_COMPRESS_QUERY message.

DWORD ICCompressQuery(
  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. You can specify zero for this parameter to indicate any output format is acceptable.

Return Values

Returns ICERR_OK if the specified compression is supported or ICERR_BADFORMAT otherwise.

Remarks

When a driver receives this message, it should examine the BITMAPINFO structure associated with lpbiInput to determine if it can compress the input format.

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_QUERY