[FFmpeg-devel] [PATCH v3] lavc/rawdec: Only use AV_PIX_FMT_PAL8 for 1 bpp video in AVI

Mats Peterson matsp888 at yahoo.com
Mon Feb 1 17:52:02 CET 2016


On 02/01/2016 02:58 PM, Michael Niedermayer wrote:
> its not ok,
> if only 2bpp are used and its possible to store just 2bpp then thats
> what should be done by default. Same for 4bpp
> that could be done with PAL8 and using its palette or using
> some *_bits_per_pixel variable or a seperate PAL4/PAL2
> many possibilities and likely even more but the end result should be
> efficient storage so that encoders/muxers supporting 2/4 bpp should
> use these when possible and by default without the user needing to
> know all the details
>

It all sounds wonderful, but it would take a lot of rewriting. And with 
the current situation, we have to use pal8 for both 1, 2, and 4 bpp.

Mats



More information about the ffmpeg-devel mailing list