[FFmpeg-devel] [PATCH]Improve pix_fmt detection for the native jpeg2000 decoder

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Jul 13 17:12:54 CEST 2013


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> > > I may be wrong but afaict the image is actually
> > > AV_PIX_FMT_PAL8.
> >
> > interresting
> 
> New patch attached that reads the palette (that 
> definitely exists).
> 
> The output is slightly more broken than with gray 
> decoding

Since all gray samples I tested do not decode bitexact, 
I would expect that pal8 output cannot look completely 
correct.

> +    s->palette[i] = 0xffu < 24 | r << 16 | g << 8 | b;

Fixed locally.

Please comment, Carl Eugen



More information about the ffmpeg-devel mailing list