[FFmpeg-devel] [PATCH] Optionally hardcode PCM tables

Michael Niedermayer michaelni
Fri Jan 11 23:00:04 CET 2008


On Fri, Jan 11, 2008 at 08:42:25PM +0100, Diego 'Flameeyes' Petten? wrote:
> Vitor Sessak <vitor1001 at gmail.com> writes:
> 
> > I've found a cosmetical change:
> 
> Was due to a missing de-tabify in previous patch, should be fixed now.

btw, what about changing the algorithm so it doesnt need 16k tables?

maybe something along the lines of
e= av_log2_16bit(v) - 1234;
(v>>e) | (e<<123)

or

if(v<123) v= tab1[v];
else      v= tab2[v>>4];

these of course would need benchmarks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080111/aa273645/attachment.pgp>



More information about the ffmpeg-devel mailing list