On 1/9/23 19:24, Torge Matthies wrote:
ICM_DECOMPRESS_GET_FORMAT does not work well with the BITMAPINFOHEADER from MS-CRAM, because a biBitCount of 24 (or anything above 8) indicates RGB555 encoding, which actually means the bit count is 16 bpp, but the decoder rejects any format that doesn't have biBitCount of exactly 8 or 16.
I don't understand this patch description. biBitCount of 24 doesn't mean 555, it means 24-bit RGB, at least if BI_RGB is specified. What input format (compression and bit depth) are we passing to ICM_DECOMPRESS_GET_FORMAT? And are we sure that there isn't a bug in the decoder?