From 39ded680136edad007db435aba069a8791bfad92 Mon Sep 17 00:00:00 2001 From: Kenan Gillet Date: Fri, 14 Nov 2008 17:36:47 +0000 Subject: More OKed parts of the QCELP decoder patch by Kenan Gillet, kenan.gillet gmail com Originally committed as revision 15822 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/qcelpdata.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libavcodec/qcelpdata.h') diff --git a/libavcodec/qcelpdata.h b/libavcodec/qcelpdata.h index f5b39b6954..856f11d601 100644 --- a/libavcodec/qcelpdata.h +++ b/libavcodec/qcelpdata.h @@ -460,6 +460,15 @@ static const int8_t qcelp_rate_half_codebook[128] = { }; #define QCELP_RATE_HALF_CODEBOOK_RATIO 0.5 +/** + * sqrt(1.887) is the maximum of the pseudorandom + * white sequence used to generate the scaled codebook + * vector for framerate 1/4. + * + * TIA/EIA/IS-733 2.4.8.1.2 + */ +#define QCELP_SQRT1887 1.373681186 + /** * table for impulse response of BPF used to filter * the white excitation for framerate 1/4 synthesis -- cgit v1.2.3