BGR15/16 Problems
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
Hi,
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()?
check the old rle8 wraper code you've removed... after config_vo it's available in sh
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.
mpi->imgfmt A'rpi / Astral & ESP-team -- Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
participants (2)
-
Arpi -
Mike Melanson