FFmpeg
Data Structures | Variables
atrac3plus_data.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  Atrac3pSpecCodeTab
 Tables for spectrum coding. More...
 

Variables

static const uint8_t atrac3p_wl_cbs [][12]
 VLC tables for wordlen. More...
 
static const uint8_t atrac3p_ct_cbs [][12]
 VLC tables for code table indexes. More...
 
static const uint8_t atrac3p_wl_ct_xlats []
 
static const uint8_t atrac3p_sf_cbs [][12]
 VLC tables for scale factor indexes. More...
 
static const uint8_t atrac3p_sf_xlats []
 
static const int8_t atrac3p_wl_weights [6][32]
 
static const int8_t atrac3p_sf_weights [2][32]
 
static const uint8_t atrac3p_qu_num_to_seg [32]
 Ungroup table for word length segments. More...
 
static const uint8_t atrac3p_qu_to_subband [32]
 Map quant unit number to subband number. More...
 
static const int atrac3p_subband_to_num_powgrps [16]
 Map subband number to number of power compensation groups. More...
 
static const int8_t atrac3p_wl_shapes [8][16][9]
 3D base shape tables. More...
 
static const int8_t atrac3p_sf_shapes [64][9]
 2D base shape tables for scale factor coding. More...
 
static const uint8_t atrac3p_ct_restricted_to_full [2][7][4]
 
static const int8_t atrac3p_spectra_cbs [][12]
 Tables for spectrum coding. More...
 
static const uint8_t atrac3p_spectra_xlats []
 
static const Atrac3pSpecCodeTab atrac3p_spectra_tabs [112]
 
static const uint8_t atrac3p_gain_cbs [][12]
 
static const uint8_t atrac3p_gain_xlats []
 
static const uint8_t atrac3p_tone_cbs [][12]
 
static const uint8_t atrac3p_tone_xlats []
 

Variable Documentation

◆ atrac3p_wl_cbs

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

VLC tables for wordlen.

Definition at line 30 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_ct_cbs

const uint8_t atrac3p_ct_cbs[][12]
static
Initial value:
= {
{ 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 1, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 1, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 1, 0, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0 },
}

VLC tables for code table indexes.

Definition at line 38 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_wl_ct_xlats

const uint8_t atrac3p_wl_ct_xlats[]
static
Initial value:
= {
0, 1, 7,
0, 1, 2, 3,
0, 1, 2, 6, 7,
0, 1, 2, 3, 4, 5, 6, 7,
0, 1, 7, 2, 5, 6, 3, 4,
0, 1, 2, 3, 6, 7, 4, 5,
0, 1, 7, 2, 3, 6, 4, 5,
0, 1, 2, 3, 4, 5, 6, 7,
}

Definition at line 45 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_sf_cbs

const uint8_t atrac3p_sf_cbs[][12]
static
Initial value:
= {
{ 0, 1, 4, 2, 0, 0, 0, 7, 50, 0, 0, 0 },
{ 0, 1, 4, 2, 0, 0, 0, 7, 50, 0, 0, 0 },
{ 1, 0, 2, 0, 4, 0, 2, 1, 54, 0, 0, 0 },
{ 0, 1, 4, 0, 4, 0, 3, 0, 52, 0, 0, 0 },
{ 0, 1, 4, 2, 0, 8, 0, 0, 0, 0, 0, 0 },
{ 0, 1, 4, 2, 0, 8, 0, 0, 0, 0, 0, 0 },
{ 1, 0, 2, 2, 2, 0, 8, 0, 0, 0, 0, 0 },
{ 0, 1, 4, 2, 2, 2, 4, 0, 0, 0, 0, 0 },
}

VLC tables for scale factor indexes.

Definition at line 65 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_sf_xlats

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

Definition at line 76 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_wl_weights

const int8_t atrac3p_wl_weights[6][32]
static
Initial value:
= {
{ 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 5, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 6, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 },
{ 5, 5, 4, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 5, 5, 5, 4, 4, 4, 3, 3, 3, 2, 2, 2, 1, 1, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
{ 6, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 2, 2, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
}

Definition at line 108 of file atrac3plus_data.h.

Referenced by add_wordlen_weights().

◆ atrac3p_sf_weights

const int8_t atrac3p_sf_weights[2][32]
static
Initial value:
= {
{ 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7,
8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15 },
{ 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5,
5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10 }
}

Definition at line 126 of file atrac3plus_data.h.

Referenced by subtract_sf_weights().

◆ atrac3p_qu_num_to_seg

const uint8_t atrac3p_qu_num_to_seg[32]
static
Initial value:
= {
0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5,
5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9
}

Ungroup table for word length segments.

Numbers in this table tell which coeff belongs to which segment.

Definition at line 135 of file atrac3plus_data.h.

Referenced by unpack_vq_shape().

◆ atrac3p_qu_to_subband

const uint8_t atrac3p_qu_to_subband[32]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
3, 3, 4, 4, 5, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
}

Map quant unit number to subband number.

Definition at line 141 of file atrac3plus_data.h.

Referenced by ff_atrac3p_decode_channel_unit().

◆ atrac3p_subband_to_num_powgrps

const int atrac3p_subband_to_num_powgrps[16]
static
Initial value:
= {
1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5
}

Map subband number to number of power compensation groups.

Definition at line 147 of file atrac3plus_data.h.

Referenced by decode_spectrum().

◆ atrac3p_wl_shapes

const int8_t atrac3p_wl_shapes[8][16][9]
static

3D base shape tables.

The values are grouped together as follows: [num_start_values = 8][num_shape_tables = 16][num_seg_coeffs = 9] For each of the 8 start values there are 16 different shapes each 9 coefficients long.

Definition at line 155 of file atrac3plus_data.h.

Referenced by decode_channel_wordlen().

◆ atrac3p_sf_shapes

const int8_t atrac3p_sf_shapes[64][9]
static

2D base shape tables for scale factor coding.

The values are grouped together as follows: [num_shape_tables = 64][num_seg_coeffs = 9]

Definition at line 289 of file atrac3plus_data.h.

◆ atrac3p_ct_restricted_to_full

const uint8_t atrac3p_ct_restricted_to_full[2][7][4]
static
Initial value:
= {
{ { 0, 5, 4, 1 },
{ 0, 1, 2, 3 },
{ 3, 0, 4, 2 },
{ 4, 0, 1, 2 },
{ 1, 0, 4, 3 },
{ 3, 0, 2, 1 },
{ 0, 3, 1, 2 } },
{ { 4, 0, 1, 2 },
{ 0, 3, 2, 1 },
{ 0, 1, 2, 3 },
{ 0, 1, 2, 4 },
{ 0, 1, 2, 3 },
{ 1, 4, 2, 0 },
{ 0, 1, 2, 3 } }
}

Definition at line 356 of file atrac3plus_data.h.

Referenced by decode_spectrum().

◆ atrac3p_spectra_cbs

const int8_t atrac3p_spectra_cbs[][12]
static

Tables for spectrum coding.

Definition at line 377 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_spectra_xlats

const uint8_t atrac3p_spectra_xlats[]
static

Definition at line 492 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_spectra_tabs

const Atrac3pSpecCodeTab atrac3p_spectra_tabs[112]
static

Definition at line 1414 of file atrac3plus_data.h.

Referenced by decode_spectrum().

◆ atrac3p_gain_cbs

const uint8_t atrac3p_gain_cbs[][12]
static
Initial value:
= {
{ 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0 },
{ 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0 },
{ 1, 0, 2, 2, 1, 2, 8, 0, 0, 0, 0, 0 },
{ 1, 1, 1, 1, 1, 0, 2, 0, 8, 0, 0, 0 },
{ 1, 0, 3, 1, 1, 0, 2, 0, 8, 0, 0, 0 },
{ 1, 1, 1, 1, 1, 0, 1, 2, 8, 0, 0, 0 },
{ 0, 1, 0, 2, 11, 18, 0, 0, 0, 0, 0, 0 },
{ 0, 1, 2, 4, 4, 4, 0, 16, 0, 0, 0, 0 },
{ 0, 0, 0, 3, 23, 6, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 5, 3, 2, 3, 2, 16, 0, 0, 0, 0 },
{ 1, 0, 0, 3, 2, 6, 20, 0, 0, 0, 0, 0 },
}

Definition at line 1563 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_gain_xlats

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

Definition at line 1577 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_tone_cbs

const uint8_t atrac3p_tone_cbs[][12]
static
Initial value:
= {
{ 1, 0, 1, 2, 4, 8, 0, 0, 0, 0, 0, 0 },
{ 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0 },
{ 1, 1, 1, 1, 0, 4, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 10, 8, 6, 0, 8, 0, 0, 0, 0 },
{ 0, 0, 0, 11, 5, 6, 6, 4, 0, 0, 0, 0 },
{ 0, 1, 3, 3, 1, 4, 4, 16, 0, 0, 0, 0 },
{ 1, 0, 0, 2, 2, 0, 9, 9, 29,104, 100, 0 },
}

Definition at line 1608 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().

◆ atrac3p_tone_xlats

const uint8_t atrac3p_tone_xlats[]
static

Definition at line 1618 of file atrac3plus_data.h.

Referenced by ff_atrac3p_init_vlcs().