ICM_COMPRESS_GET_SIZE

The ICM_COMPRESS_GET_SIZE message is sent to a video compression driver to obtain the maximum size of one frame of data when it is compressed in the output format.

Parameters

dwParam1

Specifies a pointer to a BITMAPINFO data structure indicating the input format.

dwParam2

Specifies a pointer to a BITMAPINFO data structure indicating the output format.

Return Value

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

Comments

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 target formats.