psymodel: extend API to include PE and bit allocation.

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
This commit is contained in:
Nathan Caldwell 2011-04-05 01:05:22 -06:00 committed by Janne Grunau
parent 668438a31e
commit 5371803dd5
1 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,8 @@
/** maximum possible number of bands */
#define PSY_MAX_BANDS 128
/** maximum number of channels */
#define PSY_MAX_CHANS 20
/**
* single band psychoacoustic information
@ -62,6 +64,13 @@ typedef struct FFPsyContext {
int *num_bands; ///< number of scalefactor bands for possible frame sizes
int num_lens; ///< number of scalefactor band sets
float pe[PSY_MAX_CHANS]; ///< total PE for each channel in the frame
struct {
int size; ///< size of the bitresevoir in bits
int bits; ///< number of bits used in the bitresevoir
} bitres;
void* model_priv_data; ///< psychoacoustic model implementation private data
} FFPsyContext;