[FFmpeg-devel] [PATCH] imgconvert: add PIX_FMT_GRAY8A to pix_fmt_info

Stefano Sabatini stefasab at gmail.com
Tue Jan 17 14:36:31 CET 2012


On date Tuesday 2012-01-17 12:59:31 +0000, Carl Eugen Hoyos encoded:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > +++ b/libavcodec/imgconvert.c
> > @@ -184,6 +184,10 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
> >      [PIX_FMT_GRAY8] = {
> >          .color_type = FF_COLOR_GRAY,
> >      },
> > +    [PIX_FMT_GRAY8A] = {
> > +        .is_alpha = 1,
> > +        .color_type = FF_COLOR_GRAY,
> 
> pal8 is now chosen for bmp and tif if the input is gray8a.
> This is not a good idea, because pal8 should never be selected by default afaict.

Can you elaborate on this? Why pal8 is selected, and why pal8 should
never be selected (apart from the fact that it is not supported by
libswscale)?
-- 
FFmpeg = Foolish and Fast Mythic Peaceless Empowered Guru


More information about the ffmpeg-devel mailing list