FFmpeg
Data Structures | Enumerations | Variables
atrac9tab.h File Reference
#include <stdint.h>
#include "libavutil/channel_layout.h"

Go to the source code of this file.

Data Structures

struct  ATRAC9BlockConfig
 
struct  HuffmanCodebook
 

Enumerations

enum  ATRAC9BlockType { ATRAC9_BLOCK_TYPE_SCE, ATRAC9_BLOCK_TYPE_CPE, ATRAC9_BLOCK_TYPE_LFE }
 

Variables

static const ATRAC9BlockConfig at9_block_layout []
 
static const uint8_t at9_tab_sri_frame_log2 []
 
static const uint8_t at9_tab_band_q_unit_map []
 
static const uint8_t at9_q_unit_to_coeff_cnt []
 
static const int at9_q_unit_to_coeff_idx []
 
static const uint8_t at9_q_unit_to_codebookidx []
 
static const uint8_t at9_tab_sri_max_bands []
 
static const int at9_tab_samplerates []
 
static const uint8_t at9_tab_band_ext_cnt [][6]
 
static const uint8_t at9_tab_band_ext_group [][3]
 
static const uint8_t at9_tab_band_ext_lengths [][6][4]
 
static const float at9_band_ext_scales_m0 [][5][32]
 
static const float at9_band_ext_scales_m2 []
 
static const float at9_band_ext_scales_m3 [][2]
 
static const float at9_band_ext_scales_m4 []
 
static const float at9_quant_step_coarse []
 
static const float at9_quant_step_fine []
 
static const float at9_scalefactor_c []
 
static const uint8_t at9_tab_sf_weights [][32]
 
static const uint8_t at9_tab_b_dist []
 
static const uint8_t at9_sfb_a_tab [][2]
 
static const uint8_t at9_sfb_b_tab [][2]
 
static const HuffmanCodebook at9_huffman_sf_unsigned []
 
static const HuffmanCodebook at9_huffman_sf_signed []
 
static const uint8_t at9_coeffs_tab [][2]
 
static const HuffmanCodebook at9_huffman_coeffs [][8][4]
 

Enumeration Type Documentation

◆ ATRAC9BlockType

Enumerator
ATRAC9_BLOCK_TYPE_SCE 
ATRAC9_BLOCK_TYPE_CPE 
ATRAC9_BLOCK_TYPE_LFE 

Definition at line 29 of file atrac9tab.h.

Variable Documentation

◆ at9_block_layout

const ATRAC9BlockConfig at9_block_layout[]
static

Definition at line 42 of file atrac9tab.h.

Referenced by atrac9_decode_init().

◆ at9_tab_sri_frame_log2

const uint8_t at9_tab_sri_frame_log2[]
static
Initial value:
= {
6, 6, 7, 7, 7, 8, 8, 8, 6, 6, 7, 7, 7, 8, 8, 8,
}

Definition at line 89 of file atrac9tab.h.

Referenced by atrac9_decode_init().

◆ at9_tab_band_q_unit_map

const uint8_t at9_tab_band_q_unit_map[]
static
Initial value:
= {
0, 4, 8, 10, 12, 13, 14, 15, 16, 18, 20, 21, 22, 23, 24, 25, 26, 28, 30,
}

Definition at line 93 of file atrac9tab.h.

Referenced by atrac9_decode_block().

◆ at9_q_unit_to_coeff_cnt

const uint8_t at9_q_unit_to_coeff_cnt[]
static
Initial value:
= {
2, 2, 2, 2, 2, 2, 2, 2, 4, 4, 4, 4, 8, 8, 8,
8, 8, 8, 8, 8, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
}

Definition at line 97 of file atrac9tab.h.

Referenced by apply_band_extension(), calc_codebook_idx(), and read_coeffs_coarse().

◆ at9_q_unit_to_coeff_idx

const int at9_q_unit_to_coeff_idx[]
static
Initial value:
= {
0, 2, 4, 6, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 64,
72, 80, 88, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 256
}

Definition at line 102 of file atrac9tab.h.

Referenced by apply_band_extension(), apply_intensity_stereo(), apply_scalefactors(), atrac9_decode_block(), dequantize(), read_coeffs_coarse(), read_coeffs_fine(), and scale_band_ext_coeffs().

◆ at9_q_unit_to_codebookidx

const uint8_t at9_q_unit_to_codebookidx[]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
}

Definition at line 107 of file atrac9tab.h.

Referenced by read_coeffs_coarse().

◆ at9_tab_sri_max_bands

const uint8_t at9_tab_sri_max_bands[]
static
Initial value:
= {
8, 8, 12, 12, 12, 18, 18, 18, 8, 8, 12, 12, 12, 16, 16, 16,
}

Definition at line 112 of file atrac9tab.h.

Referenced by atrac9_decode_block().

◆ at9_tab_samplerates

const int at9_tab_samplerates[]
static
Initial value:
= {
11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 44100, 48000,
64000, 88200, 96000, 128000, 176400, 192000,
}

Definition at line 116 of file atrac9tab.h.

Referenced by atrac9_decode_init().

◆ at9_tab_band_ext_cnt

const uint8_t at9_tab_band_ext_cnt[][6]
static
Initial value:
= {
{ 0, 0, 0, 4, 4, 2 },
{ 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 2, 2, 1 },
{ 0, 0, 0, 2, 2, 2 },
{ 1, 1, 1, 0, 0, 0 },
}

Definition at line 121 of file atrac9tab.h.

Referenced by parse_band_ext().

◆ at9_tab_band_ext_group

const uint8_t at9_tab_band_ext_group[][3]
static
Initial value:
= {
{ 16, 21, 0 },
{ 18, 22, 1 },
{ 20, 22, 2 },
{ 21, 22, 3 },
{ 21, 22, 3 },
{ 23, 24, 4 },
{ 23, 24, 4 },
{ 24, 24, 5 },
}

Definition at line 130 of file atrac9tab.h.

Referenced by apply_band_extension(), and parse_band_ext().

◆ at9_tab_band_ext_lengths

const uint8_t at9_tab_band_ext_lengths[][6][4]
static

Definition at line 141 of file atrac9tab.h.

Referenced by parse_band_ext().

◆ at9_band_ext_scales_m0

const float at9_band_ext_scales_m0[][5][32]
static

Definition at line 184 of file atrac9tab.h.

Referenced by apply_band_extension().

◆ at9_band_ext_scales_m2

const float at9_band_ext_scales_m2[]
static
Initial value:
= {
4.272461e-4f, 1.312256e-3f, 2.441406e-3f, 3.692627e-3f,
4.913330e-3f, 6.134033e-3f, 7.507324e-3f, 8.972168e-3f,
1.049805e-2f, 1.223755e-2f, 1.406860e-2f, 1.599121e-2f,
1.800537e-2f, 2.026367e-2f, 2.264404e-2f, 2.517700e-2f,
2.792358e-2f, 3.073120e-2f, 3.344727e-2f, 3.631592e-2f,
3.952026e-2f, 4.275513e-2f, 4.608154e-2f, 4.968262e-2f,
5.355835e-2f, 5.783081e-2f, 6.195068e-2f, 6.677246e-2f,
7.196045e-2f, 7.745361e-2f, 8.319092e-2f, 8.993530e-2f,
9.759521e-2f, 1.056213e-1f, 1.138916e-1f, 1.236267e-1f,
1.348267e-1f, 1.470337e-1f, 1.603394e-1f, 1.755676e-1f,
1.905823e-1f, 2.071228e-1f, 2.245178e-1f, 2.444153e-1f,
2.658997e-1f, 2.897644e-1f, 3.146057e-1f, 3.450012e-1f,
3.766174e-1f, 4.122620e-1f, 4.505615e-1f, 4.893799e-1f,
5.305481e-1f, 5.731201e-1f, 6.157837e-1f, 6.580811e-1f,
6.985168e-1f, 7.435303e-1f, 7.865906e-1f, 8.302612e-1f,
8.718567e-1f, 9.125671e-1f, 9.575806e-1f, 9.996643e-1f,
}

Definition at line 271 of file atrac9tab.h.

Referenced by apply_band_extension().

◆ at9_band_ext_scales_m3

const float at9_band_ext_scales_m3[][2]
static
Initial value:
= {
{ 3.491211e-1f, -2.913818e-1f, }, { 5.371094e-1f, -2.541504e-1f, },
{ 6.782227e-1f, -1.664429e-1f, }, { 7.910156e-1f, -1.476440e-1f, },
{ 9.057617e-1f, -1.342163e-1f, }, { 1.024902e+0f, -1.220703e-1f, },
{ 1.156250e+0f, -1.117554e-1f, }, { 1.290527e+0f, -1.026611e-1f, },
{ 1.458984e+0f, -9.436035e-2f, }, { 1.664551e+0f, -8.483887e-2f, },
{ 1.929688e+0f, -7.476807e-2f, }, { 2.278320e+0f, -6.304932e-2f, },
{ 2.831543e+0f, -4.492188e-2f, }, { 3.659180e+0f, -2.447510e-2f, },
{ 5.257813e+0f, +1.831055e-4f, }, { 8.373047e+0f, +4.174805e-2f, },
}

Definition at line 290 of file atrac9tab.h.

Referenced by apply_band_extension().

◆ at9_band_ext_scales_m4

const float at9_band_ext_scales_m4[]
static
Initial value:
= {
3.610229e-2f, 1.260681e-1f, 2.227478e-1f, 3.338318e-1f,
4.662170e-1f, 6.221313e-1f, 7.989197e-1f, 9.939575e-1f,
}

Definition at line 301 of file atrac9tab.h.

Referenced by apply_band_extension().

◆ at9_quant_step_coarse

const float at9_quant_step_coarse[]
static
Initial value:
= {
2.0000000000000000e+0f, 6.6666666666666663e-1f, 2.8571428571428570e-1f,
1.3333333333333333e-1f, 6.4516129032258063e-2f, 3.1746031746031744e-2f,
1.5748031496062992e-2f, 7.8431372549019607e-3f, 3.9138943248532287e-3f,
1.9550342130987292e-3f, 9.7703957010258913e-4f, 4.8840048840048840e-4f,
2.4417043096081065e-4f, 1.2207776353537203e-4f, 6.1037018951994385e-5f,
3.0518043793392844e-5f,
}

Definition at line 306 of file atrac9tab.h.

Referenced by dequantize().

◆ at9_quant_step_fine

const float at9_quant_step_fine[]
static
Initial value:
= {
3.0518043793392844e-05f, 1.0172681264464281e-05f, 4.3597205419132631e-06f,
2.0345362528928561e-06f, 9.8445302559331759e-07f, 4.8441339354591809e-07f,
2.4029955742829012e-07f, 1.1967860311134448e-07f, 5.9722199204291275e-08f,
2.9831909866464167e-08f, 1.4908668194134265e-08f, 7.4525137468602791e-09f,
3.7258019525568114e-09f, 1.8627872668859698e-09f, 9.3136520869755679e-10f,
4.6567549848772173e-10f,
}

Definition at line 315 of file atrac9tab.h.

Referenced by dequantize().

◆ at9_scalefactor_c

const float at9_scalefactor_c[]
static
Initial value:
= {
3.0517578125e-5f, 6.1035156250e-5f, 1.2207031250e-4f, 2.4414062500e-4f,
4.8828125000e-4f, 9.7656250000e-4f, 1.9531250000e-3f, 3.9062500000e-3f,
7.8125000000e-3f, 1.5625000000e-2f, 3.1250000000e-2f, 6.2500000000e-2f,
1.2500000000e-1f, 2.5000000000e-1f, 5.0000000000e-1f, 1.0000000000e+0f,
2.0000000000e+0f, 4.0000000000e+0f, 8.0000000000e+0f, 1.6000000000e+1f,
3.2000000000e+1f, 6.4000000000e+1f, 1.2800000000e+2f, 2.5600000000e+2f,
5.1200000000e+2f, 1.0240000000e+3f, 2.0480000000e+3f, 4.0960000000e+3f,
8.1920000000e+3f, 1.6384000000e+4f, 3.2768000000e+4f, 6.5536000000e+4f,
}

Definition at line 324 of file atrac9tab.h.

Referenced by apply_band_extension(), and apply_scalefactors().

◆ at9_tab_sf_weights

const uint8_t at9_tab_sf_weights[][32]
static

Definition at line 335 of file atrac9tab.h.

Referenced by read_scalefactors().

◆ at9_tab_b_dist

const uint8_t at9_tab_b_dist[]
static
Initial value:
= {
1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6, 7, 8,
9, 10, 11, 12, 13, 15, 6, 18, 19, 20, 21, 22, 23, 24, 25, 26, 26, 27,
27, 28, 28, 28, 29, 29, 29, 29, 30, 30, 30, 30,
}

Definition at line 370 of file atrac9tab.h.

Referenced by atrac9_decode_init().

◆ at9_sfb_a_tab

const uint8_t at9_sfb_a_tab[][2]
static
Initial value:
= {
{ 0, 1 }, { 1, 1 },
{ 0, 1 }, { 3, 2 }, { 1, 3 }, { 2, 3 },
{ 0, 2 }, { 1, 2 }, { 7, 2 }, { 6, 3 }, { 2, 4 }, { 5, 5 }, { 3, 6 },
{ 4, 6 },
{ 2, 4 }, { 14, 4 }, { 11, 8 }, { 10, 8 }, { 9, 8 }, { 6, 8 }, { 7, 8 },
{ 8, 8 }, { 5, 7 }, { 13, 5 }, { 3, 5 }, { 12, 6 }, { 4, 6 }, { 0, 2 },
{ 1, 2 }, { 15, 2 },
{ 31, 3 }, { 1, 3 }, { 26, 7 }, { 7, 7 }, { 20, 8 }, { 21, 8 }, { 23, 8 },
{ 22, 8 }, { 29, 5 }, { 30, 4 }, { 4, 5 }, { 11, 8 }, { 24, 8 }, { 9, 8 },
{ 10, 8 }, { 6, 6 }, { 25, 7 }, { 19, 8 }, { 12, 8 }, { 27, 6 }, { 18, 8 },
{ 13, 8 }, { 16, 8 }, { 17, 8 }, { 14, 8 }, { 15, 8 }, { 8, 7 }, { 0, 2 },
{ 5, 5 }, { 28, 5 }, { 3, 4 }, { 2, 3 },
{ 0, 3 }, { 1, 3 }, { 2, 4 }, { 3, 4 }, { 61, 4 }, { 62, 4 }, { 63, 4 },
{ 4, 5 }, { 5, 5 }, { 58, 5 }, { 59, 5 }, { 60, 5 }, { 6, 6 }, { 7, 6 },
{ 8, 6 }, { 56, 6 }, { 57, 6 }, { 9, 7 }, { 10, 7 }, { 53, 7 }, { 54, 7 },
{ 55, 7 }, { 11, 8 }, { 12, 8 }, { 13, 8 }, { 14, 8 }, { 15, 8 }, { 16, 8 },
{ 17, 8 }, { 18, 8 }, { 19, 8 }, { 20, 8 }, { 21, 8 }, { 22, 8 }, { 23, 8 },
{ 24, 8 }, { 25, 8 }, { 26, 8 }, { 27, 8 }, { 28, 8 }, { 29, 8 }, { 30, 8 },
{ 31, 8 }, { 32, 8 }, { 33, 8 }, { 34, 8 }, { 35, 8 }, { 36, 8 }, { 37, 8 },
{ 38, 8 }, { 39, 8 }, { 40, 8 }, { 41, 8 }, { 42, 8 }, { 43, 8 }, { 44, 8 },
{ 45, 8 }, { 46, 8 }, { 47, 8 }, { 48, 8 }, { 49, 8 }, { 50, 8 }, { 51, 8 },
{ 52, 8 },
}

Definition at line 376 of file atrac9tab.h.

Referenced by atrac9_init_static().

◆ at9_sfb_b_tab

const uint8_t at9_sfb_b_tab[][2]
static
Initial value:
= {
{ 16, 1 }, { 15, 2 }, { 17, 2 },
{ 17, 3 }, { 18, 5 }, { 13, 6 }, { 19, 6 }, { 14, 4 }, { 15, 2 }, { 16, 1 },
{ 15, 3 }, { 17, 3 }, { 18, 4 }, { 13, 6 }, { 12, 6 }, { 21, 7 }, { 22, 8 },
{ 10, 8 }, { 9, 8 }, { 23, 8 }, { 11, 7 }, { 14, 4 }, { 19, 5 }, { 20, 5 },
{ 16, 1 },
{ 16, 3 }, { 21, 4 }, { 22, 4 }, { 20, 4 }, { 23, 4 }, { 30, 8 }, { 1, 8 },
{ 0, 8 }, { 2, 8 }, { 3, 8 }, { 31, 8 }, { 27, 7 }, { 14, 6 }, { 28, 7 },
{ 13, 7 }, { 18, 4 }, { 25, 5 }, { 12, 7 }, { 11, 7 }, { 26, 6 }, { 24, 4 },
{ 17, 3 }, { 19, 4 }, { 9, 7 }, { 10, 7 }, { 8, 7 }, { 7, 7 }, { 6, 7 },
{ 5, 7 }, { 29, 7 }, { 4, 7 }, { 15, 3 },
}

Definition at line 407 of file atrac9tab.h.

Referenced by atrac9_init_static().

◆ at9_huffman_sf_unsigned

const HuffmanCodebook at9_huffman_sf_unsigned[]
static
Initial value:
= {
{ 0 },
{ 2, 1, 0, 1 },
{ 4, 1, 0, 2 },
{ 8, 1, 0, 3 },
{ 16, 1, 0, 4 },
{ 32, 1, 0, 5 },
{ 64, 1, 0, 6 },
}

Definition at line 431 of file atrac9tab.h.

Referenced by atrac9_init_static().

◆ at9_huffman_sf_signed

const HuffmanCodebook at9_huffman_sf_signed[]
static
Initial value:
= {
{ 0 },
{ 0 },
{ 3, 1, 0, 2 },
{ 7, 1, 0, 3 },
{ 15, 1, 0, 4 },
{ 32, 1, 0, 5 },
}

Definition at line 441 of file atrac9tab.h.

Referenced by atrac9_init_static().

◆ at9_coeffs_tab

const uint8_t at9_coeffs_tab[][2]
static

Definition at line 450 of file atrac9tab.h.

Referenced by atrac9_init_static().

◆ at9_huffman_coeffs

const HuffmanCodebook at9_huffman_coeffs[][8][4]
static

Definition at line 1293 of file atrac9tab.h.

Referenced by atrac9_init_static(), and read_coeffs_coarse().

f
f
Definition: af_crystalizer.c:121