94 VLC coeff_vlc[2][8][4];
106 int values, sign, base;
118 grad_range[1] =
get_bits(gb, 6) + 1;
124 if (grad_range[0] >= grad_range[1] || grad_range[1] > 47)
127 if (grad_value[0] > 31 || grad_value[1] > 31)
133 values = grad_value[1] - grad_value[0];
134 sign = 1 - 2*(values < 0);
135 base = grad_value[0] + sign;
136 scale = (
FFABS(values) - 1) / 31.0
f;
137 curve = s->
alloc_curve[grad_range[1] - grad_range[0] - 1];
140 b->
gradient[i] = grad_value[i >= grad_range[0]];
142 for (
int i = grad_range[0]; i < grad_range[1]; i++)
143 b->
gradient[i] = base + sign*((
int)(scale*curve[i - grad_range[0]]));
232 for (
int i = 0; i <= stereo; i++) {
235 for (
int j = 0; j <
count; j++) {
246 int channel_idx,
int first_in_pkt)
248 static const int mode_map[2][4] = { { 0, 1, 2, 3 }, { 0, 2, 3, 4 } };
249 const int mode = mode_map[channel_idx][
get_bits(gb, 2)];
253 if (first_in_pkt && (mode == 4 || ((mode == 3) && !channel_idx))) {
279 const int base = len < 5 ?
get_bits(gb, 5) : 0;
297 for (
int i = 0; i < unit_cnt; i++) {
313 const int base =
get_bits(gb, 5) - (1 << (5 - 1));
320 for (
int i = 1; i < unit_cnt; i++) {
325 for (
int i = 0; i < unit_cnt; i++)
359 for (
int i = 0; i < 12; i++)
361 avg = (avg + 6) / 12;
369 if ((cur - min >= 3 || 2*cur - prev - next >= 3))
399 if (prec <= max_prec) {
406 for (
int j = 0; j <
groups; j++) {
409 for (
int k = 0; k < huff->
value_cnt; k++) {
417 for (
int j = 0; j <
bands; j++)
436 for (
int j = start; j <
end; j++)
453 for (
int j = start; j <
end; j++) {
477 for (
int j = start; j <
end; j++)
478 dst[j] = sign*src[j];
485 for (
int i = 0; i <= stereo; i++) {
492 for (
int k = start; k <
end; k++)
502 for (
int i = 0; i <
count; i += 2) {
505 c->
coeffs[start + i + 0] = tmp[0];
506 c->
coeffs[start + i + 1] = tmp[1];
510 for (
int i = 0; i <
count; i++)
511 c->
coeffs[start + i] /= maxval;
515 const int s_unit,
const int e_unit)
517 for (
int i = s_unit; i < e_unit; i++) {
520 for (
int j = start; j <
end; j++)
521 c->
coeffs[j] *= sf[i - s_unit];
528 const int g_units[4] = {
532 FFMAX(g_units[2], 22),
535 const int g_bins[4] = {
545 for (
int ch = 0;
ch <= stereo;
ch++) {
549 for (
int i = 0; i < 3; i++)
550 for (
int j = 0; j < (g_bins[i + 1] - g_bins[i + 0]); j++)
551 c->
coeffs[g_bins[i] + j] = c->
coeffs[g_bins[i] - j - 1];
555 float sf[6] = { 0.0f };
556 const int l = g_units[3] - g_units[0] - 1;
589 for (
int i = g_units[0]; i < g_units[3]; i++)
597 const float g_sf[2] = {
602 for (
int i = 0; i < 2; i++)
603 for (
int j = g_bins[i + 0]; j < g_bins[i + 1]; j++)
611 for (
int i = g_bins[0]; i < g_bins[3]; i++) {
619 const float g_sf[3] = { 0.7079468f*m, 0.5011902f*m, 0.3548279f*m };
621 for (
int i = 0; i < 3; i++)
622 for (
int j = g_bins[i + 0]; j < g_bins[i + 1]; j++)
632 int frame_idx,
int block_idx)
640 const int precision = reuse_params ? 8 : 4;
656 for (
int j = start; j <
end; j++)
666 if (first_in_pkt && reuse_params) {
673 int stereo_band, ext_band;
688 stereo_band =
get_bits(gb, 4) + min_band_count;
699 ext_band =
get_bits(gb, 4) + min_band_count;
700 if (ext_band < b->band_count) {
736 for (
int i = 0; i <= stereo; i++) {
757 for (
int i = 0; i <= stereo; i++) {
761 const ptrdiff_t
offset = wsize*frame_idx*
sizeof(float);
762 float *dst = (
float *)(frame->
extended_data[dst_idx] + offset);
767 memcpy(c->
prev_win, s->
temp + (wsize >> 1),
sizeof(
float)*wsize >> 1);
774 int *got_frame_ptr,
AVPacket *avpkt)
789 for (
int i = 0; i <
frames; i++) {
810 for (
int i = 0; i <= stereo; i++) {
821 for (
int i = 1; i < 7; i++)
823 for (
int i = 2; i < 6; i++)
825 for (
int i = 0; i < 2; i++)
826 for (
int j = 0; j < 8; j++)
827 for (
int k = 0; k < 4; k++)
840 int version, block_config_idx, superframe_idx, alloc_c_len;
867 block_config_idx =
get_bits(&gb, 3);
868 if (block_config_idx > 5) {
886 if (superframe_idx & 1) {
902 for (
int i = 0; i < (1 << s->
frame_log2); i++) {
904 const float sidx = ( i + 0.5f) / len;
905 const float eidx = (len - i - 0.5f) / len;
908 s->
imdct_win[i] = s_c / ((s_c * s_c) + (e_c * e_c));
913 for (
int i = 1; i <= alloc_c_len; i++)
914 for (
int j = 0; j < i; j++)
918 for (
int i = 1; i < 7; i++) {
926 for (
int i = 2; i < 6; i++) {
931 for (
int j = 0; j < nums; j++)
935 hf->
codes, 2, 2, sym,
sizeof(*sym),
sizeof(*sym), 0);
939 for (
int i = 0; i < 2; i++) {
940 for (
int j = 0; j < 8; j++) {
941 for (
int k = 0; k < 4; k++) {
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
static const uint8_t at9_tab_sri_max_bands[]
const char const char void * val
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
AVCodec ff_atrac9_decoder
This structure describes decoded (raw) audio or video data.
static void apply_band_extension(ATRAC9Context *s, ATRAC9BlockData *b, const int stereo)
static void flush(AVCodecContext *avctx)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static void dequantize(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c)
static void skip_bits_long(GetBitContext *s, int n)
Skips the specified number of bits.
static av_cold int init(AVCodecContext *avctx)
int ff_init_vlc_sparse(VLC *vlc_arg, int nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, const void *symbols, int symbols_wrap, int symbols_size, int flags)
uint8_t pi<< 24) CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_U8,(uint64_t)((*(const uint8_t *) pi - 0x80U))<< 56) CONV_FUNC(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8,(*(const uint8_t *) pi - 0x80) *(1.0f/(1<< 7))) CONV_FUNC(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8,(*(const uint8_t *) pi - 0x80) *(1.0/(1<< 7))) CONV_FUNC(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16,(*(const int16_t *) pi >>8)+0x80) CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_S16,(uint64_t)(*(const int16_t *) pi)<< 48) CONV_FUNC(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, *(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, *(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32,(*(const int32_t *) pi >>24)+0x80) CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_S32,(uint64_t)(*(const int32_t *) pi)<< 32) CONV_FUNC(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, *(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, *(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S64,(*(const int64_t *) pi >>56)+0x80) CONV_FUNC(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S64, *(const int64_t *) pi *(1.0f/(INT64_C(1)<< 63))) CONV_FUNC(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S64, *(const int64_t *) pi *(1.0/(INT64_C(1)<< 63))) CONV_FUNC(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_FLT, llrintf(*(const float *) pi *(INT64_C(1)<< 63))) CONV_FUNC(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31)))) CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_DBL, llrint(*(const double *) pi *(INT64_C(1)<< 63))) #define FMT_PAIR_FUNC(out, in) static conv_func_type *const fmt_pair_to_conv_functions[AV_SAMPLE_FMT_NB *AV_SAMPLE_FMT_NB]={ FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_U8), FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_S16), FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_S32), FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_FLT), FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_DBL), FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S64), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S64), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_S64), FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S64), FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_S64), FMT_PAIR_FUNC(AV_SAMPLE_FMT_S64, AV_SAMPLE_FMT_S64), };static void cpy1(uint8_t **dst, const uint8_t **src, int len){ memcpy(*dst, *src, len);} static void cpy2(uint8_t **dst, const uint8_t **src, int len){ memcpy(*dst, *src, 2 *len);} static void cpy4(uint8_t **dst, const uint8_t **src, int len){ memcpy(*dst, *src, 4 *len);} static void cpy8(uint8_t **dst, const uint8_t **src, int len){ memcpy(*dst, *src, 8 *len);} AudioConvert *swri_audio_convert_alloc(enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, const int *ch_map, int flags) { AudioConvert *ctx;conv_func_type *f=fmt_pair_to_conv_functions[av_get_packed_sample_fmt(out_fmt)+AV_SAMPLE_FMT_NB *av_get_packed_sample_fmt(in_fmt)];if(!f) return NULL;ctx=av_mallocz(sizeof(*ctx));if(!ctx) return NULL;if(channels==1){ in_fmt=av_get_planar_sample_fmt(in_fmt);out_fmt=av_get_planar_sample_fmt(out_fmt);} ctx->channels=channels;ctx->conv_f=f;ctx->ch_map=ch_map;if(in_fmt==AV_SAMPLE_FMT_U8||in_fmt==AV_SAMPLE_FMT_U8P) memset(ctx->silence, 0x80, sizeof(ctx->silence));if(out_fmt==in_fmt &&!ch_map) { switch(av_get_bytes_per_sample(in_fmt)){ case 1:ctx->simd_f=cpy1;break;case 2:ctx->simd_f=cpy2;break;case 4:ctx->simd_f=cpy4;break;case 8:ctx->simd_f=cpy8;break;} } if(HAVE_X86ASM &&HAVE_MMX) swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels);if(ARCH_ARM) swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels);if(ARCH_AARCH64) swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels);return ctx;} void swri_audio_convert_free(AudioConvert **ctx) { av_freep(ctx);} int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len) { int ch;int off=0;const int os=(out->planar ? 1 :out->ch_count) *out->bps;unsigned misaligned=0;av_assert0(ctx->channels==out->ch_count);if(ctx->in_simd_align_mask) { int planes=in->planar ? in->ch_count :1;unsigned m=0;for(ch=0;ch< planes;ch++) m|=(intptr_t) in->ch[ch];misaligned|=m &ctx->in_simd_align_mask;} if(ctx->out_simd_align_mask) { int planes=out->planar ? out->ch_count :1;unsigned m=0;for(ch=0;ch< planes;ch++) m|=(intptr_t) out->ch[ch];misaligned|=m &ctx->out_simd_align_mask;} if(ctx->simd_f &&!ctx->ch_map &&!misaligned){ off=len &~15;av_assert1(off >=0);av_assert1(off<=len);av_assert2(ctx->channels==SWR_CH_MAX||!in->ch[ctx->channels]);if(off >0){ if(out->planar==in->planar){ int planes=out->planar ? out->ch_count :1;for(ch=0;ch< planes;ch++){ ctx->simd_f(out-> ch ch
static void read_coeffs_coarse(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c, GetBitContext *gb)
#define init_vlc(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags)
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
static const float at9_band_ext_scales_m4[]
static const HuffmanCodebook at9_huffman_coeffs[][8][4]
static double cb(void *priv, double x, double y)
static const int at9_tab_samplerates[]
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
ATRAC9ChannelData channel[2]
enum AVSampleFormat sample_fmt
audio sample format
static const OptionGroupDef groups[]
static av_cold int end(AVCodecContext *avctx)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
bitstream reader API header.
static void fill_with_noise(ATRAC9Context *s, ATRAC9ChannelData *c, int start, int count)
static int read_scalefactors(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c, GetBitContext *gb, int channel_idx, int first_in_pkt)
void av_bmg_get(AVLFG *lfg, double out[2])
Get the next two numbers generated by a Box-Muller Gaussian generator using the random numbers issued...
static void apply_scalefactors(ATRAC9Context *s, ATRAC9BlockData *b, const int stereo)
static const uint8_t at9_tab_sf_weights[][32]
int32_t q_coeffs_coarse[256]
static void calc_precision(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c)
static int atrac9_decode_block(ATRAC9Context *s, GetBitContext *gb, ATRAC9BlockData *b, AVFrame *frame, int frame_idx, int block_idx)
static const float at9_quant_step_fine[]
void(* vector_fmul_window)(float *dst, const float *src0, const float *src1, const float *win, int len)
Overlap/add with window function.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static void read_coeffs_fine(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c, GetBitContext *gb)
av_cold AVFloatDSPContext * avpriv_float_dsp_alloc(int bit_exact)
Allocate a float DSP context.
static const uint8_t at9_tab_band_q_unit_map[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const uint8_t at9_q_unit_to_codebookidx[]
int flags
AV_CODEC_FLAG_*.
static int parse_band_ext(ATRAC9Context *s, ATRAC9BlockData *b, GetBitContext *gb, int stereo)
const char * name
Name of the codec implementation.
static void calc_codebook_idx(ATRAC9Context *s, ATRAC9BlockData *b, ATRAC9ChannelData *c)
static const uint8_t offset[127][2]
uint64_t channel_layout
Audio channel layout.
enum ATRAC9BlockType type[5]
static VLC sf_vlc
scale factor DPCM vlc
#define AV_CODEC_FLAG_BITEXACT
Use only bitexact stuff (except (I)DCT).
int32_t scalefactors_prev[31]
static const float at9_band_ext_scales_m0[][5][32]
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static const float at9_scalefactor_c[]
static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE(*table)[2], int bits, int max_depth)
Parse a vlc code.
#define FF_ARRAY_ELEMS(a)
static int parse_gradient(ATRAC9Context *s, ATRAC9BlockData *b, GetBitContext *gb)
static av_cold int atrac9_decode_init(AVCodecContext *avctx)
int sample_rate
samples per second
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
main external API structure.
static const float bands[]
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static void apply_intensity_stereo(ATRAC9Context *s, ATRAC9BlockData *b, const int stereo)
static unsigned int get_bits1(GetBitContext *s)
static const uint8_t at9_q_unit_to_coeff_cnt[]
static void skip_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
#define AV_CODEC_CAP_SUBFRAMES
Codec can output multiple frames per AVPacket Normally demuxers return one frame at a time...
uint8_t alloc_curve[48][48]
static av_cold int atrac9_decode_close(AVCodecContext *avctx)
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static const uint8_t at9_tab_band_ext_group[][3]
void(* imdct_half)(struct FFTContext *s, FFTSample *output, const FFTSample *input)
static const uint8_t at9_tab_band_ext_cnt[][6]
static av_const int sign_extend(int val, unsigned bits)
static const float at9_band_ext_scales_m2[]
static void scale_band_ext_coeffs(ATRAC9ChannelData *c, float sf[6], const int s_unit, const int e_unit)
static const float at9_quant_step_coarse[]
static int atrac9_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
static const HuffmanCodebook at9_huffman_sf_unsigned[]
common internal api header.
const ATRAC9BlockConfig * block_config
channel
Use these values when setting the channel map with ebur128_set_channel().
static const uint8_t at9_tab_sri_frame_log2[]
static const float at9_band_ext_scales_m3[][2]
static const HuffmanCodebook at9_huffman_sf_signed[]
VLC_TYPE(* table)[2]
code, bits
static const uint8_t * align_get_bits(GetBitContext *s)
static const struct twinvq_data tab
static const ATRAC9BlockConfig at9_block_layout[]
static const uint8_t at9_tab_b_dist[]
static void atrac9_decode_flush(AVCodecContext *avctx)
uint8_t ** extended_data
pointers to the data planes/channels.
This structure stores compressed data.
void ff_free_vlc(VLC *vlc)
mode
Use these values in ebur128_init (or'ed).
int nb_samples
number of audio samples (per channel) described by this frame
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
static const int at9_q_unit_to_coeff_idx[]
int32_t q_coeffs_fine[256]
static const uint8_t at9_tab_band_ext_lengths[][6][4]