FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
amrwbdata.h File Reference

AMR wideband data and definitions. More...

#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  AMRWBSubFrame
 
struct  AMRWBFrame
 

Macros

#define LP_ORDER   16
 linear predictive coding filter order
 
#define LP_ORDER_16k   20
 lpc filter order at 16kHz
 
#define HB_FIR_SIZE   30
 amount of past data needed by HB filters
 
#define UPS_FIR_SIZE   12
 upsampling filter size
 
#define UPS_MEM_SIZE   (2 * UPS_FIR_SIZE)
 
#define MIN_ISF_SPACING   (128.0 / 32768.0)
 minimum isf gap
 
#define PRED_FACTOR   (1.0 / 3.0)
 
#define MIN_ENERGY   -14.0
 initial innnovation energy (dB)
 
#define ENERGY_MEAN   30.0
 mean innovation energy (dB) in all modes
 
#define PREEMPH_FAC   0.68
 factor used to de-emphasize synthesis
 
#define AMRWB_SFR_SIZE   64
 samples per subframe at 12.8 kHz
 
#define AMRWB_SFR_SIZE_16k   80
 samples per subframe at 16 kHz
 
#define AMRWB_P_DELAY_MAX   231
 maximum pitch delay value
 
#define AMRWB_P_DELAY_MIN   34
 
#define AMR_BIT(field)   (offsetof(AMRWBFrame, field))
 The index of a frame parameter.
 
#define AMR_OF(frame_num, variable)   AMR_BIT(subframe[frame_num].variable)
 The index of a subframe-specific parameter.
 

Enumerations

enum  Mode {
  MODE_4k75 = 0, MODE_5k15, MODE_5k9, MODE_6k7,
  MODE_7k4, MODE_7k95, MODE_10k2, MODE_12k2,
  MODE_DTX, N_MODES, NO_DATA = 15, MODE_6k60 = 0,
  MODE_8k85, MODE_12k65, MODE_14k25, MODE_15k85,
  MODE_18k25, MODE_19k85, MODE_23k05, MODE_23k85,
  MODE_SID, SP_LOST = 14, NO_DATA
}
 

Variables

static const uint16_t order_MODE_6k60 []
 
static const uint16_t order_MODE_8k85 []
 
static const uint16_t order_MODE_12k65 []
 
static const uint16_t order_MODE_14k25 []
 
static const uint16_t order_MODE_15k85 []
 
static const uint16_t order_MODE_18k25 []
 
static const uint16_t order_MODE_19k85 []
 
static const uint16_t order_MODE_23k05 []
 
static const uint16_t order_MODE_23k85 []
 
static const uint16_t * amr_bit_orderings_by_mode []
 Reordering array addresses for each mode.
 
static const int16_t dico1_isf [256][9]
 Indexed tables for retrieval of quantized ISF vectors in Q15.
 
static const int16_t dico2_isf [256][7]
 
static const int16_t dico21_isf [64][3]
 
static const int16_t dico22_isf [128][3]
 
static const int16_t dico23_isf [128][3]
 
static const int16_t dico24_isf [32][3]
 
static const int16_t dico25_isf [32][4]
 
static const int16_t dico21_isf_36b [128][5]
 
static const int16_t dico22_isf_36b [128][4]
 
static const int16_t dico23_isf_36b [64][7]
 
static const int16_t isf_mean [LP_ORDER]
 Means of ISF vectors in Q15.
 
static const int16_t isf_init [LP_ORDER]
 Initialization tables for the processed ISF vector in Q15.
 
static const float isfp_inter [4] = { 0.45, 0.8, 0.96, 1.0 }
 ISF/ISP interpolation coefficients for each subframe.
 
static const float ac_inter [65]
 Coefficients for FIR interpolation of excitation vector at pitch lag resulting the adaptive codebook vector.
 
static const uint8_t pulses_nb_per_mode_tr [][4]
 [i][j] is the number of pulses present in track j at mode i
 
static const int16_t qua_gain_6b [64][2]
 Tables for decoding quantized gains { pitch (Q14), fixed factor (Q11) }.
 
static const int16_t qua_gain_7b [128][2]
 
static const float energy_pred_fac [4] = { 0.2, 0.3, 0.4, 0.5 }
 4-tap moving average prediction coefficients in reverse order
 
static const float ir_filter_str [64]
 impulse response filter tables converted to float from Q15 used for anti-sparseness processing
 
static const float ir_filter_mid [64]
 
static const float *const ir_filters_lookup [2]
 
static const float hpf_zeros [2] = { -2.0, 1.0 }
 High-pass filters coefficients for 31 Hz and 400 Hz cutoff.
 
static const float hpf_31_poles [2] = { -1.978881836, 0.979125977 }
 
static const float hpf_31_gain = 0.989501953
 
static const float hpf_400_poles [2] = { -1.787109375, 0.864257812 }
 
static const float hpf_400_gain = 0.893554687
 
static const float upsample_fir [4][24]
 Interpolation coefficients for 5/4 signal upsampling Table from the reference source was reordered for efficiency.
 
static const uint16_t qua_hb_gain [16]
 High band quantized gains for 23k85 in Q14.
 
static const float bpf_6_7_coef [31]
 High-band post-processing FIR filters coefficients from Q15.
 
static const float lpf_7_coef [31]
 
static const uint16_t cf_sizes_wb []
 Core frame sizes in each mode.
 

Detailed Description

AMR wideband data and definitions.

Definition in file amrwbdata.h.

Macro Definition Documentation

#define LP_ORDER   16
#define LP_ORDER_16k   20

lpc filter order at 16kHz

Definition at line 34 of file amrwbdata.h.

Referenced by amrwb_decode_frame(), hb_synthesis(), and update_sub_state().

#define HB_FIR_SIZE   30

amount of past data needed by HB filters

Definition at line 35 of file amrwbdata.h.

Referenced by hb_fir_filter().

#define UPS_FIR_SIZE   12

upsampling filter size

Definition at line 36 of file amrwbdata.h.

Referenced by amrwb_decode_frame(), and upsample_5_4().

#define UPS_MEM_SIZE   (2 * UPS_FIR_SIZE)

Definition at line 37 of file amrwbdata.h.

Referenced by amrwb_decode_frame(), update_sub_state(), and upsample_5_4().

#define MIN_ISF_SPACING   (128.0 / 32768.0)

minimum isf gap

Definition at line 39 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

#define PRED_FACTOR   (1.0 / 3.0)

Definition at line 40 of file amrwbdata.h.

Referenced by isf_add_mean_and_past().

#define MIN_ENERGY   -14.0

initial innnovation energy (dB)

Definition at line 41 of file amrwbdata.h.

#define ENERGY_MEAN   30.0

mean innovation energy (dB) in all modes

Definition at line 42 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

#define PREEMPH_FAC   0.68

factor used to de-emphasize synthesis

Definition at line 43 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

#define AMRWB_SFR_SIZE   64
#define AMRWB_SFR_SIZE_16k   80

samples per subframe at 16 kHz

Definition at line 46 of file amrwbdata.h.

Referenced by amrwb_decode_frame(), hb_fir_filter(), hb_synthesis(), scaled_hb_excitation(), and update_sub_state().

#define AMRWB_P_DELAY_MAX   231

maximum pitch delay value

Definition at line 47 of file amrwbdata.h.

Referenced by amrwb_decode_init(), decode_pitch_lag_high(), decode_pitch_lag_low(), and update_sub_state().

#define AMRWB_P_DELAY_MIN   34

Definition at line 48 of file amrwbdata.h.

Referenced by decode_pitch_lag_high(), and decode_pitch_lag_low().

#define AMR_BIT (   field)    (offsetof(AMRWBFrame, field))

The index of a frame parameter.

Definition at line 85 of file amrwbdata.h.

#define AMR_OF (   frame_num,
  variable 
)    AMR_BIT(subframe[frame_num].variable)

The index of a subframe-specific parameter.

Definition at line 87 of file amrwbdata.h.

Enumeration Type Documentation

enum Mode
Enumerator:
MODE_4k75 

4.75 kbit/s

MODE_5k15 

5.15 kbit/s

MODE_5k9 

5.90 kbit/s

MODE_6k7 

6.70 kbit/s

MODE_7k4 

7.40 kbit/s

MODE_7k95 

7.95 kbit/s

MODE_10k2 

10.2 kbit/s

MODE_12k2 

12.2 kbit/s

MODE_DTX 

silent frame

N_MODES 

number of modes

NO_DATA 

no transmission

MODE_6k60 

6.60 kbit/s

MODE_8k85 

8.85 kbit/s

MODE_12k65 

12.65 kbit/s

MODE_14k25 

14.25 kbit/s

MODE_15k85 

15.85 kbit/s

MODE_18k25 

18.25 kbit/s

MODE_19k85 

19.85 kbit/s

MODE_23k05 

23.05 kbit/s

MODE_23k85 

23.85 kbit/s

MODE_SID 

comfort noise frame

SP_LOST 

speech lost

NO_DATA 

no transmission

Definition at line 51 of file amrwbdata.h.

Variable Documentation

const uint16_t order_MODE_6k60[]
static
Initial value:
= {
1, AMR_BIT(vad), 7,
8, AMR_BIT(isp_id[0]), 24, 33, 39, 12, 6, 5, 4, 13,
8, AMR_BIT(isp_id[1]), 65, 79, 64, 78, 51, 61, 71, 70,
7, AMR_BIT(isp_id[2]), 52, 55, 44, 54, 53, 43, 42,
7, AMR_BIT(isp_id[3]), 60, 59, 58, 57, 56, 75, 74,
6, AMR_BIT(isp_id[4]), 73, 72, 86, 87, 85, 84,
8, AMR_OF(0, adap), 11, 10, 9, 8, 28, 27, 49, 69,
6, AMR_OF(0, pul_il[0]), 83, 91, 99, 107, 115, 123,
6, AMR_OF(0, pul_il[1]), 82, 103, 111, 119, 127, 135,
6, AMR_OF(0, vq_gain), 38, 23, 34, 19, 3, 15,
5, AMR_OF(1, adap), 32, 41, 63, 67, 77,
6, AMR_OF(1, pul_il[0]), 81, 90, 98, 106, 114, 122,
6, AMR_OF(1, pul_il[1]), 80, 102, 110, 118, 126, 134,
6, AMR_OF(1, vq_gain), 26, 22, 36, 18, 2, 14,
5, AMR_OF(2, adap), 45, 40, 50, 48, 68,
6, AMR_OF(2, pul_il[0]), 95, 89, 97, 105, 113, 121,
6, AMR_OF(2, pul_il[1]), 94, 101, 109, 117, 125, 133,
6, AMR_OF(2, vq_gain), 37, 21, 35, 17, 1, 31,
5, AMR_OF(3, adap), 47, 46, 62, 66, 76,
6, AMR_OF(3, pul_il[0]), 93, 88, 96, 104, 112, 120,
6, AMR_OF(3, pul_il[1]), 92, 100, 108, 116, 124, 132,
6, AMR_OF(3, vq_gain), 25, 20, 29, 16, 0, 30,
0
}

Definition at line 99 of file amrwbdata.h.

const uint16_t order_MODE_8k85[]
static

Definition at line 125 of file amrwbdata.h.

const uint16_t order_MODE_12k65[]
static

Definition at line 161 of file amrwbdata.h.

const uint16_t order_MODE_14k25[]
static

Definition at line 219 of file amrwbdata.h.

const uint16_t order_MODE_15k85[]
static

Definition at line 277 of file amrwbdata.h.

const uint16_t order_MODE_18k25[]
static

Definition at line 335 of file amrwbdata.h.

const uint16_t order_MODE_19k85[]
static

Definition at line 409 of file amrwbdata.h.

const uint16_t order_MODE_23k05[]
static

Definition at line 491 of file amrwbdata.h.

const uint16_t order_MODE_23k85[]
static

Definition at line 581 of file amrwbdata.h.

const uint16_t* amr_bit_orderings_by_mode[]
static
Initial value:

Reordering array addresses for each mode.

Definition at line 676 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const int16_t dico1_isf[256][9]
static

Indexed tables for retrieval of quantized ISF vectors in Q15.

Definition at line 692 of file amrwbdata.h.

Referenced by decode_isf_indices_36b(), and decode_isf_indices_46b().

const int16_t dico2_isf[256][7]
static

Definition at line 951 of file amrwbdata.h.

Referenced by decode_isf_indices_36b(), and decode_isf_indices_46b().

const int16_t dico21_isf[64][3]
static

Definition at line 1210 of file amrwbdata.h.

Referenced by decode_isf_indices_46b().

const int16_t dico22_isf[128][3]
static

Definition at line 1245 of file amrwbdata.h.

Referenced by decode_isf_indices_46b().

const int16_t dico23_isf[128][3]
static

Definition at line 1312 of file amrwbdata.h.

Referenced by decode_isf_indices_46b().

const int16_t dico24_isf[32][3]
static
Initial value:
= {
{ -79, -89, -4}, { -171, 77, -211},
{ 160, -193, 98}, { 120, -103, 323},
{ 32, -22, -129}, { 72, 78, -268},
{ 182, -76, -66}, { 309, 99, -145},
{ -229, -157, -84}, { -383, 98, -71},
{ -90, -352, 12}, { -284, -178, 178},
{ -65, -125, -166}, { -87, -175, -351},
{ 42, -198, -48}, { 154, -140, -243},
{ -77, 18, 108}, { -39, 355, 91},
{ 87, 8, 155}, { -4, 158, 239},
{ 128, 95, -54}, { 7, 246, -124},
{ 258, 15, 89}, { 206, 216, 98},
{ -201, 9, 18}, { -312, 233, 204},
{ -39, -174, 155}, { -144, -9, 284},
{ -57, 70, -69}, { -157, 187, 18},
{ 54, -30, 23}, { 24, 135, 55}
}

Definition at line 1379 of file amrwbdata.h.

Referenced by decode_isf_indices_46b().

const int16_t dico25_isf[32][4]
static
Initial value:
= {
{ 169, 142, -119, 115}, { 206, -20, 94, 226},
{ -106, 313, -21, 16}, { -62, 161, 71, 255},
{ -89, 101, -185, 125}, { 72, -30, -201, 344},
{ -258, 33, -8, 81}, { -104, -154, 72, 296},
{ 144, -68, -268, -25}, { 81, -78, -87, 106},
{ 22, 155, -186, -119}, { -46, -28, 27, 91},
{ -114, -37, -175, -33}, { -94, -222, -189, 122},
{ -132, -119, -191, -270}, { -172, -173, 18, -43},
{ 279, 135, -42, -128}, { 187, -86, 229, -138},
{ 159, 240, 140, 46}, { 69, 25, 227, 77},
{ 21, 115, 13, 8}, { 68, -248, 126, 81},
{ -150, 137, 207, -9}, { -154, -133, 289, 67},
{ 143, -37, -86, -326}, { 180, -32, 19, -23},
{ 26, 168, 116, -233}, { -32, -26, 118, -78},
{ 3, -8, -45, -115}, { 57, -215, -54, -83},
{ -209, 112, -22, -167}, { -91, -151, 168, -262}
}

Definition at line 1398 of file amrwbdata.h.

Referenced by decode_isf_indices_46b().

const int16_t dico21_isf_36b[128][5]
static

Definition at line 1417 of file amrwbdata.h.

Referenced by decode_isf_indices_36b().

const int16_t dico22_isf_36b[128][4]
static

Definition at line 1484 of file amrwbdata.h.

Referenced by decode_isf_indices_36b().

const int16_t dico23_isf_36b[64][7]
static

Definition at line 1551 of file amrwbdata.h.

Referenced by decode_isf_indices_36b().

const int16_t isf_mean[LP_ORDER]
static
Initial value:
= {
738, 1326, 2336, 3578, 4596, 5662, 6711, 7730,
8750, 9753, 10705, 11728, 12833, 13971, 15043, 4037
}

Means of ISF vectors in Q15.

Definition at line 1619 of file amrwbdata.h.

Referenced by isf_add_mean_and_past().

const int16_t isf_init[LP_ORDER]
static
Initial value:
= {
1024, 2048, 3072, 4096, 5120, 6144, 7168, 8192,
9216, 10240, 11264, 12288, 13312, 14336, 15360, 3840
}

Initialization tables for the processed ISF vector in Q15.

Definition at line 1625 of file amrwbdata.h.

Referenced by amrwb_decode_init().

const float isfp_inter[4] = { 0.45, 0.8, 0.96, 1.0 }
static

ISF/ISP interpolation coefficients for each subframe.

Definition at line 1631 of file amrwbdata.h.

Referenced by hb_synthesis(), and interpolate_isp().

const float ac_inter[65]
static
Initial value:
= {
9.400024e-01,
8.563843e-01, 6.322632e-01, 3.375854e-01, 5.908203e-02,
-1.310425e-01, -1.994019e-01, -1.585693e-01, -5.633545e-02,
4.760742e-02, 1.067505e-01, 1.036987e-01, 5.206299e-02,
-1.519775e-02, -6.372070e-02, -7.366943e-02, -4.650879e-02,
-9.765625e-04, 3.820801e-02, 5.316162e-02, 4.003906e-02,
9.338379e-03, -2.166748e-02, -3.778076e-02, -3.320312e-02,
-1.300049e-02, 1.068115e-02, 2.587891e-02, 2.630615e-02,
1.379395e-02, -3.662109e-03, -1.678467e-02, -1.983643e-02,
-1.275635e-02, -5.493164e-04, 1.007080e-02, 1.409912e-02,
1.068115e-02, 2.624512e-03, -5.371094e-03, -9.338379e-03,
-8.117676e-03, -3.173828e-03, 2.319336e-03, 5.615234e-03,
5.554199e-03, 2.868652e-03, -6.103516e-04, -2.990723e-03,
-3.356934e-03, -2.014160e-03, -1.220703e-04, 1.342773e-03,
1.708984e-03, 1.159668e-03, 2.441406e-04, -4.272461e-04,
-6.103516e-04, -4.272461e-04, -1.220703e-04, 6.103516e-05,
1.220703e-04, 6.103516e-05, 0.000000e+00, 0.000000e+00
}

Coefficients for FIR interpolation of excitation vector at pitch lag resulting the adaptive codebook vector.

Definition at line 1635 of file amrwbdata.h.

Referenced by decode_pitch_vector().

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

[i][j] is the number of pulses present in track j at mode i

Definition at line 1656 of file amrwbdata.h.

Referenced by decode_fixed_vector().

const int16_t qua_gain_6b[64][2]
static

Tables for decoding quantized gains { pitch (Q14), fixed factor (Q11) }.

Definition at line 1663 of file amrwbdata.h.

Referenced by decode_gains().

const int16_t qua_gain_7b[128][2]
static

Definition at line 1698 of file amrwbdata.h.

Referenced by decode_gains().

const float energy_pred_fac[4] = { 0.2, 0.3, 0.4, 0.5 }
static

4-tap moving average prediction coefficients in reverse order

Definition at line 1766 of file amrwbdata.h.

const float ir_filter_str[64]
static
Initial value:
= {
6.159058e-01, 2.958069e-01, 9.979248e-02, -1.048889e-01,
8.740234e-02, -1.599121e-01, 4.849243e-02, -4.141235e-02,
1.831055e-02, 1.188049e-01, -4.568481e-02, -2.130127e-02,
3.671265e-02, -1.601868e-01, 3.659058e-02, 1.639099e-01,
-4.541016e-02, -2.151489e-02, -8.810425e-02, 6.030273e-02,
2.740479e-02, 2.200317e-02, -1.182861e-01, 1.289978e-01,
-1.560059e-01, 1.953125e-01, -3.149414e-02, -1.441956e-01,
1.249084e-01, -1.328125e-01, 9.780884e-02, 6.500244e-02,
-6.091309e-02, -5.599976e-02, 8.081055e-02, -5.450439e-02,
-1.239014e-02, 1.748657e-02, 7.580566e-02, -1.101074e-01,
9.579468e-02, -4.159546e-02, -7.830811e-02, 1.162109e-01,
-1.950073e-02, -6.259155e-02, -1.651001e-02, 7.250977e-02,
1.199951e-01, -1.911011e-01, 4.370117e-02, -1.098938e-01,
1.492004e-01, 1.129150e-02, 1.730347e-02, -3.549194e-02,
-8.709717e-02, 5.841064e-02, 1.190186e-03, -7.379150e-02,
1.054077e-01, 9.078979e-02, -1.227112e-01, 1.047058e-01
}

impulse response filter tables converted to float from Q15 used for anti-sparseness processing

Definition at line 1770 of file amrwbdata.h.

const float ir_filter_mid[64]
static
Initial value:
= {
7.354126e-01, 3.192139e-01, -1.606140e-01, -2.328491e-02,
6.250000e-02, -2.828979e-02, 5.349731e-02, -1.014099e-01,
6.750488e-02, 1.989746e-02, -6.549072e-02, 7.589722e-02,
-1.080017e-01, 1.253967e-01, -6.430054e-02, -1.141357e-02,
-1.910400e-02, 1.303101e-01, -1.673889e-01, 6.820679e-02,
5.670166e-02, -8.450317e-02, 2.270508e-02, 3.479004e-02,
-2.328491e-02, -4.928589e-02, 1.239014e-01, -1.395874e-01,
9.100342e-02, -3.549194e-02, 2.230835e-02, -3.350830e-02,
2.450562e-02, 5.096436e-03, -2.178955e-02, 1.849365e-02,
-1.708984e-02, 1.950073e-02, 1.312256e-03, -5.389404e-02,
9.851074e-02, -8.489990e-02, 2.029419e-02, 2.328491e-02,
7.110596e-03, -6.109619e-02, 3.939819e-02, 5.709839e-02,
-1.058960e-01, 3.149414e-02, 8.270264e-02, -1.232910e-01,
1.105957e-01, -1.286011e-01, 1.614990e-01, -1.303101e-01,
4.769897e-02, 3.295898e-03, -1.770020e-02, 5.010986e-02,
-7.501221e-02, 2.920532e-02, 1.660156e-02, 7.751465e-02
}

Definition at line 1789 of file amrwbdata.h.

const float* const ir_filters_lookup[2]
static
Initial value:

Definition at line 1808 of file amrwbdata.h.

const float hpf_zeros[2] = { -2.0, 1.0 }
static

High-pass filters coefficients for 31 Hz and 400 Hz cutoff.

Definition at line 1813 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float hpf_31_poles[2] = { -1.978881836, 0.979125977 }
static

Definition at line 1814 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float hpf_31_gain = 0.989501953
static

Definition at line 1815 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float hpf_400_poles[2] = { -1.787109375, 0.864257812 }
static

Definition at line 1817 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float hpf_400_gain = 0.893554687
static

Definition at line 1818 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float upsample_fir[4][24]
static
Initial value:
= {
{ -6.103516e-05, 7.324219e-04, -2.014160e-03, 4.150391e-03,
-7.263184e-03, 1.165771e-02, -1.776123e-02, 2.624512e-02,
-3.869629e-02, 5.877686e-02, -9.863281e-02, 2.314453e-01,
9.348755e-01, -1.523438e-01, 7.861328e-02, -4.937744e-02,
3.308105e-02, -2.252197e-02, 1.507568e-02, -9.765625e-03,
5.859375e-03, -3.173828e-03, 1.403809e-03, -3.662109e-04 },
{ -2.441406e-04, 1.464844e-03, -3.784180e-03, 7.568359e-03,
-1.300049e-02, 2.062988e-02, -3.112793e-02, 4.589844e-02,
-6.781006e-02, 1.042480e-01, -1.815186e-01, 5.016479e-01,
7.548828e-01, -2.094727e-01, 1.148071e-01, -7.348633e-02,
4.956055e-02, -3.369141e-02, 2.246094e-02, -1.434326e-02,
8.483887e-03, -4.455566e-03, 1.831055e-03, -4.272461e-04 },
{ -4.272461e-04, 1.831055e-03, -4.455566e-03, 8.483887e-03,
-1.434326e-02, 2.246094e-02, -3.369141e-02, 4.956055e-02,
-7.348633e-02, 1.148071e-01, -2.094727e-01, 7.548828e-01,
5.016479e-01, -1.815186e-01, 1.042480e-01, -6.781006e-02,
4.589844e-02, -3.112793e-02, 2.062988e-02, -1.300049e-02,
7.568359e-03, -3.784180e-03, 1.464844e-03, -2.441406e-04 },
{ -3.662109e-04, 1.403809e-03, -3.173828e-03, 5.859375e-03,
-9.765625e-03, 1.507568e-02, -2.252197e-02, 3.308105e-02,
-4.937744e-02, 7.861328e-02, -1.523438e-01, 9.348755e-01,
2.314453e-01, -9.863281e-02, 5.877686e-02, -3.869629e-02,
2.624512e-02, -1.776123e-02, 1.165771e-02, -7.263184e-03,
4.150391e-03, -2.014160e-03, 7.324219e-04, -6.103516e-05 }
}

Interpolation coefficients for 5/4 signal upsampling Table from the reference source was reordered for efficiency.

Definition at line 1822 of file amrwbdata.h.

Referenced by upsample_5_4().

const uint16_t qua_hb_gain[16]
static
Initial value:
= {
3624, 4673, 5597, 6479, 7425, 8378, 9324, 10264,
11210, 12206, 13391, 14844, 16770, 19655, 24289, 32728
}

High band quantized gains for 23k85 in Q14.

Definition at line 1850 of file amrwbdata.h.

Referenced by find_hb_gain().

const float bpf_6_7_coef[31]
static
Initial value:
= {
-2.441406e-04, 3.585815e-04, 2.441406e-04,
-2.059937e-04, -2.815248e-03, 8.560180e-03,
-1.084137e-02, 0.000000e+00, 2.897645e-02,
-6.774902e-02, 9.421540e-02, -8.380128e-02,
2.706910e-02, 5.924987e-02, -1.373367e-01,
1.687469e-01,
-1.373367e-01, 5.924987e-02, 2.706910e-02,
-8.380128e-02, 9.421540e-02, -6.774902e-02,
2.897645e-02, 0.000000e+00, -1.084137e-02,
8.560180e-03, -2.815248e-03, -2.059937e-04,
2.441406e-04, 3.585815e-04, -2.441406e-04
}

High-band post-processing FIR filters coefficients from Q15.

Definition at line 1856 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const float lpf_7_coef[31]
static
Initial value:
= {
-6.408691e-04, 1.434326e-03, -2.716064e-03,
4.455566e-03, -6.195068e-03, 6.988525e-03,
-5.401611e-03, 0.000000e+00, 1.022339e-02,
-2.560425e-02, 4.531860e-02, -6.747437e-02,
8.944702e-02, -1.080933e-01, 1.206360e-01,
8.753052e-01,
1.206360e-01, -1.080933e-01, 8.944702e-02,
-6.747437e-02, 4.531860e-02, -2.560425e-02,
1.022339e-02, 0.000000e+00, -5.401611e-03,
6.988525e-03, -6.195068e-03, 4.455566e-03,
-2.716064e-03, 1.434326e-03, -6.408691e-04
}

Definition at line 1870 of file amrwbdata.h.

Referenced by amrwb_decode_frame().

const uint16_t cf_sizes_wb[]
static
Initial value:
= {
132, 177, 253, 285, 317, 365, 397, 461, 477,
40
}

Core frame sizes in each mode.

Definition at line 1885 of file amrwbdata.h.

Referenced by amrwb_decode_frame().