[MPlayer-dev-eng] BGR15/16 Problems

Arpi arpi at thot.banki.hu
Wed Mar 20 11:27:59 CET 2002


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



More information about the MPlayer-dev-eng mailing list