19 Mar
2002
19 Mar
'02
9:51 p.m.
Hi team, A'rpi, I'm trying to implement BGR15/16 support for MS RLE, but I'm running into a few snags: 1) I want to monkey with the palette in the _init() routine, but I need to know the bits/pixel first. How can I query this information in _init()? 2) When decoding an image, I'm using mpi->bpp to determine the bpp. However, the value is reported as 16 whether it's actually 15 or 16 bpp. Now that I think about it, I don't absolutely need to know the difference between 15 and 16 bpp when decoding (each pixel will be 2 bytes). But I do need the info when setting up the palette. Please advise. Thanks... -- -Mike Melanson