[FFmpeg-devel] [PATCH] Support > 8 bit input in yuv2rgb.

Michael Niedermayer michaelni at gmx.at
Sat Nov 9 15:19:03 CET 2013


On Sat, Nov 09, 2013 at 03:04:10PM +0100, Reimar Döffinger wrote:
> 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.

its a magic table, you can make it 2x bigger in all 3 dimensions yet it
doesnt need 4 times the floor space in your room

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20131109/49b37866/attachment.asc>


More information about the ffmpeg-devel mailing list