Skip to content
Snippets Groups Projects
Commit 5371803d authored by Nathan Caldwell's avatar Nathan Caldwell Committed by Janne Grunau
Browse files

psymodel: extend API to include PE and bit allocation.

parent 668438a3
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
/** maximum possible number of bands */ /** maximum possible number of bands */
#define PSY_MAX_BANDS 128 #define PSY_MAX_BANDS 128
/** maximum number of channels */
#define PSY_MAX_CHANS 20
/** /**
* single band psychoacoustic information * single band psychoacoustic information
...@@ -62,6 +64,13 @@ typedef struct FFPsyContext { ...@@ -62,6 +64,13 @@ typedef struct FFPsyContext {
int *num_bands; ///< number of scalefactor bands for possible frame sizes int *num_bands; ///< number of scalefactor bands for possible frame sizes
int num_lens; ///< number of scalefactor band sets 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 void* model_priv_data; ///< psychoacoustic model implementation private data
} FFPsyContext; } FFPsyContext;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment