[FFmpeg-soc] BFI
Mike Melanson
mike at multimedia.cx
Fri Mar 21 16:03:07 CET 2008
Sisir Koppaka wrote:
> From the BFI wiki page :
>
> bytes 60-827 ( +3C) 256 RGB triplets (6-bit VGA palette values)
>
> I'm in a dilemma over what PIX_FMT to use. There appear to be many
> different sizes of RGB's in libavutil/avutil.h but no 6 bit sized format.
> There's even a PIX_FMT_PAL8 that is 8 bit with PIX_FMT_RGB32 palette - I'm
> confused about this!
>
> Can we choose a different format for the palette and for the display or do
> both have to be same?
You will want to use PIX_FMT_PAL8. The 6-bit values will need to be
shifted the left by 2 bits. This is quite common in paletted video
decoders. 'grep' for PIX_FMT_PAL8 among the other libavcodec/ files to
see examples of how it is used.
--
-Mike Melanson
More information about the FFmpeg-soc
mailing list