forked from len0rd/rockbox
libfaad: Move PS related variables to sbr_info struct. This allows dynamic allocation including error handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29857 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
df7deee00f
commit
0e7c04e57d
5 changed files with 26 additions and 45 deletions
|
|
@ -41,6 +41,17 @@ extern "C" {
|
|||
|
||||
#define MAX_NTSRPS 38 /* max number_time_slots * rate + 6 (delay) */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t frame_len;
|
||||
uint8_t resolution20[3];
|
||||
uint8_t resolution34[5];
|
||||
|
||||
qmf_t work[32+12];
|
||||
qmf_t buffer[5][32];
|
||||
qmf_t temp[32][12];
|
||||
} hyb_info;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
/* bitstream parameters */
|
||||
|
|
@ -89,7 +100,7 @@ typedef struct
|
|||
uint8_t header_read;
|
||||
|
||||
/* hybrid filterbank parameters */
|
||||
void *hyb;
|
||||
hyb_info hyb;
|
||||
uint8_t use34hybrid_bands;
|
||||
|
||||
/**/
|
||||
|
|
@ -137,7 +148,7 @@ typedef struct
|
|||
uint16_t ps_data(ps_info *ps, bitfile *ld, uint8_t *header);
|
||||
|
||||
/* ps_dec.c */
|
||||
ps_info *ps_init(uint8_t sr_index);
|
||||
void ps_init(ps_info *ps);
|
||||
|
||||
uint8_t ps_decode(ps_info *ps,
|
||||
qmf_t X_left[MAX_NTSRPS][64],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue