[FFmpeg-devel] [PATCH] Common ACELP code & G.729 [2/7] - pitch lag decoding

Vladimir Voroshilov voroshil
Sat Jun 28 03:09:38 CEST 2008


2008/6/28 Michael Niedermayer <michaelni at gmx.at>:
> On Fri, Jun 27, 2008 at 09:59:49PM +0700, Vladimir Voroshilov wrote:

[...]

>> I have question about rounding. What is better:
>> (a >> 13)<<10
>> or
>> (a>>3) & ~0x3ff
>> ?
>> Such code is required for bitexactness.
>
>
> i prefer the &~ variant

Here is it.

-- 
Regards,
Vladimir Voroshilov mailto:voroshil at gmail.com
JID: voroshil at gmail.com, voroshil at jabber.ru
ICQ: 95587719
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_acelp_lag72.diff
Type: text/x-diff
Size: 11663 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080628/64c34985/attachment.diff>



More information about the ffmpeg-devel mailing list