[FFmpeg-devel] [PATCH] Use larger tables for yuv > 8 bit to RGB conversion.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Nov 10 12:35:34 CET 2013

On Sat, Nov 09, 2013 at 11:43:33PM +0100, Michael Niedermayer wrote:
> On Sat, Nov 09, 2013 at 08:59:46PM +0100, Reimar Döffinger wrote:
> > This should allow for fairly precise YUV16 to RGB48 conversion
> > for example.
> > However I believe that this specific implementation is not as accurate
> > as it could/should be, i.e. the table generation might be buggy.
> yes, seems so
> -vf format=yuv420p12,scale,format=rgb4_byte
> -vf format=gbrp12le,scale=flags=1,format=rgb4_byte
> breaks totally for example

All the dithered variants break, you would need a different dither table
for each bit-depth/a dither table in the context.

More information about the ffmpeg-devel mailing list