[FFmpeg-devel] [PATCH] Support > 8 bit input in yuv2rgb.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sat Nov 9 15:04:10 CET 2013
On 09.11.2013, at 14:56, Michael Niedermayer <michaelni at gmx.at> wrote:
>> I haven't tested. But note that I also added 16-bit support, we are talking about 256 times larger table.
>> If keeping the shift for Y that would still be around 48 MB if I calculated right?
>
> this sounds a bit bigger than what i would have expected for 16bit
> without a shift
>
>
>> There could be a "compromise" by making the tables for y, u and v 9 bit and only shifting for > 9 bit, to get better precision. That would only increase their size 4x I believe.
>
> 2x
I'll have to check it again, but I though it was a table of tables (i.e. you first do a lookup on v and then one based on y), so you'd not only need double the size but you'd need twice as many tables, thus 4x.
More information about the ffmpeg-devel
mailing list