Energy quantization tuning.

Prediction coefficient now depends on the frame size. Also, the pdfs and means
have been adjusted and better quantized. This breaks compatibility of course.
This commit is contained in:
Jean-Marc Valin 2010-07-23 16:10:36 -04:00
parent 2ed05631f8
commit ca6533cd88
6 changed files with 28 additions and 30 deletions

View file

@ -44,7 +44,7 @@
#define MAX_CONFIG_SIZES 5
#define CELT_BITSTREAM_VERSION 0x8000000c
#define CELT_BITSTREAM_VERSION 0x8000000d
#ifdef STATIC_MODES
#include "static_modes.h"
@ -52,14 +52,6 @@
#define MAX_PERIOD 1024
#ifndef MCHANNELS
# ifdef DISABLE_STEREO
# define MCHANNELS(mode) (1)
# else
# define MCHANNELS(mode) ((mode)->nbChannels)
# endif
#endif
#ifndef CHANNELS
# ifdef DISABLE_STEREO
# define CHANNELS(_C) (1)
@ -90,8 +82,6 @@ struct CELTMode {
celt_word16 preemph[4];
const celt_int16 *eBands; /**< Definition for each "pseudo-critical band" */
celt_word16 ePredCoef;/**< Prediction coefficient for the energy encoding */
int nbAllocVectors; /**< Number of lines in the matrix below */
const unsigned char *allocVectors; /**< Number of bits in each band for several rates */