[FFmpeg-devel] [PATCH] RealAudio SIPR @16k decoder (2/4) Tables

Måns Rullgård mans
Sun Jul 13 02:20:17 CEST 2008


Michael Niedermayer <michaelni at gmx.at> writes:

> On Sat, Jul 12, 2008 at 02:16:33PM +0700, Vladimir Voroshilov wrote:
>> Hi, All
>> 
>> Here is first draft version of fixed-point RealAudio sipr decoder
>> (only 16kHz mode)
>> 
>> This patch contains lookup tables.
> [...]
>> +static const int16_t weight_pow[17] =
>> +{  32768, 16384, 8192, 4096, 2048, 1024, 512, 256,
>> +     128,    64,   32,   16,    8,    4,   2,   1,
>> +       0
>> +};
>
> 32768 is not a int16_t

Is there a good reason to have a table instead of 32768 >> x?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list