ICDecompressQuery(3mms) — Subroutines
Name
ICDecompressQuery --- Determine if a decompressor can decompress data with a specific format
Syntax
#include <mme/mme_api.h>
MMRESULT ICDecompressQuery(HIC hic,
LPBITMAPINFOHEADER lpbiInput,
LPBITMAPINFOHEADER lpbiOutput);
Arguments
HIC hic
Specifies a handle to a decompressor.
LPBITMAPINFOHEADER lpbiInput
Specifies a pointer to a BITMAPINFOHEADER data structure indicating the format of the input data.
The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICDecompressQuery function.
See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures.
LPBITMAPINFOHEADER lpbiOutput
Specifies a pointer to a BITMAPINFOHEADER data structure indicating the format of the output data. If NULL, any output format is acceptable.
The BITMAPINFOHEADER data structure must be allocated with the mmeAllocMem function before being passed to the ICDecompressQuery function.
See the mmeAllocMem(3mms) reference page for more information about allocating memory for data structures.
Description
The ICDecompressQuery function determines if a decompressor can decompress data with a specific format.
Extensions
None.
Return Values
Returns ICERR_OK if the decompression is supported; otherwise, it returns one of the following error codes:
ICERR_BADHANDLE@T{ The hic argument is invalid, the decompressor is not open, or the decompressor is not open for decompression. T} ICERR_BADFORMAT@T{ The lpbiInput and lpbiOutput arguments are not acceptable formats. T}