[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec truespeech.c, NONE, 1.1 truespeech_data.h, NONE, 1.1 Makefile, 1.216, 1.217 allcodecs.c, 1.120, 1.121 avcodec.h, 1.438, 1.439

Michael Niedermayer michaelni
Tue Jan 3 04:38:59 CET 2006


Hi

On Tue, Jan 03, 2006 at 03:30:41AM +0100, Diego Biurrun CVS wrote:
[...]
>             dec->filters[i + 0]=(dec->cvector[i] * 21846 + dec->prevfilt[i] * 10923 + 16384) >> 15;
>             dec->filters[i + 8]=(dec->cvector[i] * 10923 + dec->prevfilt[i] * 21846 + 16384) >> 15;

maybe theres a bug, maybe not but:
32768*1/3 = 10922.666666 ~ 10923
32768*2/3 = 21845.333333 ~ 21845


[...]
> --- NEW FILE: truespeech_data.h ---
> #ifndef __TRUESPEECH_DATA__
> #define __TRUESPEECH_DATA__
> 
> /* codebooks fo expanding input filter */
> const int16_t ts_cb_0[32] = {
>     0x8240, 0x8364, 0x84CE, 0x865D, 0x8805, 0x89DE, 0x8BD7, 0x8DF4,
>     0x9051, 0x92E2, 0x95DE, 0x990F, 0x9C81, 0xA079, 0xA54C, 0xAAD2,
>     0xB18A, 0xB90A, 0xC124, 0xC9CC, 0xD339, 0xDDD3, 0xE9D6, 0xF893,
>     0x096F, 0x1ACA, 0x29EC, 0x381F, 0x45F9, 0x546A, 0x63C3, 0x73B5,
> };

hmm, shouldnt all these tables be static const?


-- 
Michael





More information about the ffmpeg-cvslog mailing list