ICM_COMPRESS_QUERY

The ICM_COMPRESS_QUERY message is sent to a video compression driver to determine if it can compress a specific input format, or if it can compress the input format to a specific output format.

Parameters
dwParam1
Specifies a pointer to a BITMAPINFO data structure describing the input format.
dwParam2
Specifies a pointer to a BITMAPINFO data structure describing the output format, or zero. Zero indicates any output format is acceptable.
Return Value

Returns ICERR_OK if the specified compression is supported. Otherwise, returns ICERR_BADFORMAT, indicating that the input or output format is not supported.

Comments

On receiving this message, the driver should examine the BITMAPINFO structure associated with dwParam1 to see if it can compress the input format. The driver should return ICERR_OK only if it can compress the input format to the output format specified for dwParam2. (If any output format is acceptable, dwParam2 is zero.)