[FFmpeg-soc] BFI
Mike Melanson
mike at multimedia.cx
Fri Mar 21 18:54:20 CET 2008
Sisir Koppaka wrote:
> In the BFI wiki page (http://wiki.multimedia.cx/index.php?title=BFI):
>
> bytes 52-55 ( +34) first used palette entry index
> bytes 56-59 ( +38) number of used palette entries
> bytes 60-827 ( +3C) 256 RGB triplets (6-bit VGA palette values)
>
> To set the palette, I'm currently running av_get_packet after setting the
> pointer to 60 and setting the stream_index to 0 which is what my video uses.
>
> I) have some confusion with bytes 52-55 and 56-59 - what do they do and how
> should I handle them?
Weird. I just reviewed the spec and examined 2287.bfi. It doesn't make
much sense to specify beginning and ending palette indices when you are
transporting the whole 256-color palette anyway. Maybe they are just
advisory.
> 2)Am I right in setting the pointer to 60 before calling av_get_packet or
> should I set it to 52 or 56?
Offset 60. You want the 256 RGB triplets.
--
-Mike Melanson
More information about the FFmpeg-soc
mailing list