Rearrange mode structure to avoid wasting memory from padding.

This commit is contained in:
Gregory Maxwell 2011-08-12 19:03:29 -04:00
parent e866ee559a
commit 86dd98409f
5 changed files with 22 additions and 24 deletions

View file

@ -74,20 +74,16 @@ struct CELTMode {
opus_val16 preemph[4];
const opus_int16 *eBands; /**< Definition for each "pseudo-critical band" */
int nbAllocVectors; /**< Number of lines in the matrix below */
const unsigned char *allocVectors; /**< Number of bits in each band for several rates */
/* Stuff that could go in the {en,de}coder, but we save space this way */
mdct_lookup mdct;
const opus_val16 *window;
int maxLM;
int nbShortMdcts;
int shortMdctSize;
int nbAllocVectors; /**< Number of lines in the matrix below */
const unsigned char *allocVectors; /**< Number of bits in each band for several rates */
const opus_int16 *logN;
const opus_val16 *window;
mdct_lookup mdct;
PulseCache cache;
};