1 #include "ffmpeg_bitstream.h"
2 #include "../librm/rm.h"
4 /* These structures are needed to store the parsed gain control data. */
24 tonal_component components
[64];
25 int32_t prevFrame
[1024];
27 gain_block gainBlock
[2];
29 int32_t spectrum
[1024] __attribute__((aligned(16)));
30 int32_t IMDCT_buf
[1024] __attribute__((aligned(16)));
32 int32_t delayBuf1
[46]; ///<qmf delay buffers
33 int32_t delayBuf2
[46];
34 int32_t delayBuf3
[46];
45 int samples_per_channel
;
46 int samples_per_frame
;
54 /** joint-stereo related variables */
55 int matrix_coeff_index_prev
[4];
56 int matrix_coeff_index_now
[4];
57 int matrix_coeff_index_next
[4];
58 int weighting_delay
[6];
62 int32_t outSamples
[2048];
63 uint8_t decoded_bytes_buffer
[1024];
64 int32_t tempBuf
[1070];
75 int atrac3_decode_init(ATRAC3Context
*q
, RMContext
*rmctx
);
77 int atrac3_decode_frame(RMContext
*rmctx
, ATRAC3Context
*q
,
78 void *data
, int *data_size
,
79 const uint8_t *buf
, int buf_size
);