[FFmpeg-devel] [PATCH] IFF: Make lavf/iff.c stop using ff_cmap_read_palette

Sebastian Vater cdgs.basty
Thu May 13 19:21:58 CEST 2010

Sebastian Vater a ?crit :
> All these need an extra AVPicture * struct, adding all the init stuff
> for it makes the code larger than the current one.
> Also, later I will have add some code there for masking support.
> However, I found another error covering grayscale images with
> bits_per_coded_sample < 8, since PIX_FMT_GRAY8 is allowed only with == 8.
> So this patch fixes this issue by setting PIX_FMT_GRAY8 only if bpp == 8
> and initializes a custom RGB color palette for bpp < 8 simulating
> correct behaviour (pictures are way too dark otherwise).
> Please note that the GRAY2RGB macro will later be used by HAM, too.
> I also checked this on big endian and it works correctly there, too.

Oops, wrong thread, should go into the grayscale support, sorry!


Best regards,
                   :-) Basty/CDGS (-:

More information about the ffmpeg-devel mailing list