FFmpeg
opustab.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 Andrew D'Addesio
3  * Copyright (c) 2013-2014 Mozilla Corporation
4  * Copyright (c) 2016 Rostislav Pehlivanov <atomnuker@gmail.com>
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_OPUSTAB_H
24 #define AVCODEC_OPUSTAB_H
25 
26 #include <stdint.h>
27 
29 
31 extern const uint8_t ff_celt_band_end[];
32 
33 extern const uint8_t ff_opus_default_coupled_streams[];
34 
35 extern const uint16_t ff_silk_model_lbrr_flags_40[];
36 extern const uint16_t ff_silk_model_lbrr_flags_60[];
37 
38 extern const uint16_t ff_silk_model_stereo_s1[];
39 extern const uint16_t ff_silk_model_stereo_s2[];
40 extern const uint16_t ff_silk_model_stereo_s3[];
41 extern const uint16_t ff_silk_model_mid_only[];
42 
43 extern const uint16_t ff_silk_model_frame_type_inactive[];
44 extern const uint16_t ff_silk_model_frame_type_active[];
45 
46 extern const uint16_t ff_silk_model_gain_highbits[3][9];
47 extern const uint16_t ff_silk_model_gain_lowbits[];
48 extern const uint16_t ff_silk_model_gain_delta[];
49 
50 extern const uint16_t ff_silk_model_lsf_s1[2][2][33];
51 extern const uint16_t ff_silk_model_lsf_s2[32][10];
52 extern const uint16_t ff_silk_model_lsf_s2_ext[];
53 extern const uint16_t ff_silk_model_lsf_interpolation_offset[];
54 
55 extern const uint16_t ff_silk_model_pitch_highbits[];
56 extern const uint16_t ff_silk_model_pitch_lowbits_nb[];
57 extern const uint16_t ff_silk_model_pitch_lowbits_mb[];
58 extern const uint16_t ff_silk_model_pitch_lowbits_wb[];
59 extern const uint16_t ff_silk_model_pitch_delta[];
60 extern const uint16_t ff_silk_model_pitch_contour_nb10ms[];
61 extern const uint16_t ff_silk_model_pitch_contour_nb20ms[];
62 extern const uint16_t ff_silk_model_pitch_contour_mbwb10ms[];
63 extern const uint16_t ff_silk_model_pitch_contour_mbwb20ms[];
64 
65 extern const uint16_t ff_silk_model_ltp_filter[];
66 extern const uint16_t ff_silk_model_ltp_filter0_sel[];
67 extern const uint16_t ff_silk_model_ltp_filter1_sel[];
68 extern const uint16_t ff_silk_model_ltp_filter2_sel[];
69 extern const uint16_t ff_silk_model_ltp_scale_index[];
70 
71 extern const uint16_t ff_silk_model_lcg_seed[];
72 
73 extern const uint16_t ff_silk_model_exc_rate[2][10];
74 
75 extern const uint16_t ff_silk_model_pulse_count[11][19];
76 extern const uint16_t ff_silk_model_pulse_location[4][168];
77 
78 extern const uint16_t ff_silk_model_excitation_lsb[];
79 extern const uint16_t ff_silk_model_excitation_sign[3][2][7][3];
80 
81 extern const int16_t ff_silk_stereo_weights[];
82 
83 extern const uint8_t ff_silk_lsf_s2_model_sel_nbmb[32][10];
84 extern const uint8_t ff_silk_lsf_s2_model_sel_wb[32][16];
85 
86 extern const uint8_t ff_silk_lsf_pred_weights_nbmb[2][9];
87 extern const uint8_t ff_silk_lsf_pred_weights_wb[2][15];
88 
89 extern const uint8_t ff_silk_lsf_weight_sel_nbmb[32][9];
90 extern const uint8_t ff_silk_lsf_weight_sel_wb[32][15];
91 
92 extern const uint8_t ff_silk_lsf_codebook_nbmb[32][10];
93 extern const uint8_t ff_silk_lsf_codebook_wb[32][16];
94 
95 extern const uint16_t ff_silk_lsf_min_spacing_nbmb[];
96 extern const uint16_t ff_silk_lsf_min_spacing_wb[];
97 
98 extern const uint8_t ff_silk_lsf_ordering_nbmb[];
99 extern const uint8_t ff_silk_lsf_ordering_wb[];
100 
101 extern const int16_t ff_silk_cosine[];
102 
103 extern const uint16_t ff_silk_pitch_scale[];
104 extern const uint16_t ff_silk_pitch_min_lag[];
105 extern const uint16_t ff_silk_pitch_max_lag[];
106 
107 extern const int8_t ff_silk_pitch_offset_nb10ms[3][2];
108 extern const int8_t ff_silk_pitch_offset_nb20ms[11][4];
109 extern const int8_t ff_silk_pitch_offset_mbwb10ms[12][2];
110 extern const int8_t ff_silk_pitch_offset_mbwb20ms[34][4];
111 
112 extern const int8_t ff_silk_ltp_filter0_taps[8][5];
113 extern const int8_t ff_silk_ltp_filter1_taps[16][5];
114 extern const int8_t ff_silk_ltp_filter2_taps[32][5];
115 
116 extern const uint16_t ff_silk_ltp_scale_factor[];
117 
118 extern const uint8_t ff_silk_shell_blocks[3][2];
119 
120 extern const uint8_t ff_silk_quant_offset[2][2];
121 
122 extern const int ff_silk_stereo_interp_len[3];
123 
124 extern const uint16_t ff_celt_model_tapset[];
125 extern const uint16_t ff_celt_model_spread[];
126 extern const uint16_t ff_celt_model_alloc_trim[];
127 extern const uint16_t ff_celt_model_energy_small[];
128 
129 extern const uint8_t ff_celt_freq_bands[];
130 extern const uint8_t ff_celt_freq_range[];
131 extern const uint8_t ff_celt_log_freq_range[];
132 
133 extern const int8_t ff_celt_tf_select[4][2][2][2];
134 
135 extern const float ff_celt_mean_energy[];
136 
137 extern const float ff_celt_alpha_coef[];
138 extern const float ff_celt_beta_coef[];
139 
140 extern const uint8_t ff_celt_coarse_energy_dist[4][2][42];
141 
142 extern const uint8_t ff_celt_static_alloc[11][21];
143 extern const uint8_t ff_celt_static_caps[4][2][21];
144 
145 extern const uint8_t ff_celt_cache_bits[392];
146 extern const int16_t ff_celt_cache_index[105];
147 
148 extern const uint8_t ff_celt_log2_frac[];
149 
150 extern const uint8_t ff_celt_bit_interleave[];
151 extern const uint8_t ff_celt_bit_deinterleave[];
152 
153 extern const uint8_t ff_celt_hadamard_order[];
154 
155 extern const uint16_t ff_celt_qn_exp2[];
156 
157 extern const float ff_celt_postfilter_taps[3][3];
158 
159 extern const float ff_celt_window2[120];
160 
161 extern const float ff_celt_window_padded[];
162 static const float *const ff_celt_window = &ff_celt_window_padded[8];
163 
164 extern const float ff_opus_deemph_weights[];
165 
166 extern const uint32_t * const ff_celt_pvq_u_row[15];
168 
169 #endif /* AVCODEC_OPUSTAB_H */
ff_silk_pitch_offset_nb10ms
const int8_t ff_silk_pitch_offset_nb10ms[3][2]
Definition: opustab.c:604
FF_VISIBILITY_PUSH_HIDDEN
#define FF_VISIBILITY_PUSH_HIDDEN
Definition: attributes_internal.h:30
ff_celt_cache_bits
const uint8_t ff_celt_cache_bits[392]
Definition: opustab.c:890
ff_celt_pvq_u_row
const uint32_t *const ff_celt_pvq_u_row[15]
Definition: opustab.c:1155
ff_silk_model_pitch_contour_mbwb20ms
const uint16_t ff_silk_model_pitch_contour_mbwb20ms[]
Definition: opustab.c:134
ff_silk_model_lsf_s1
const uint16_t ff_silk_model_lsf_s1[2][2][33]
Definition: opustab.c:62
ff_silk_model_lcg_seed
const uint16_t ff_silk_model_lcg_seed[]
Definition: opustab.c:157
ff_silk_model_lsf_s2
const uint16_t ff_silk_model_lsf_s2[32][10]
Definition: opustab.c:82
ff_celt_log2_frac
const uint8_t ff_celt_log2_frac[]
Definition: opustab.c:930
ff_silk_model_gain_lowbits
const uint16_t ff_silk_model_gain_lowbits[]
Definition: opustab.c:55
ff_silk_model_pitch_contour_nb20ms
const uint16_t ff_silk_model_pitch_contour_nb20ms[]
Definition: opustab.c:126
ff_silk_model_frame_type_active
const uint16_t ff_silk_model_frame_type_active[]
Definition: opustab.c:47
ff_silk_quant_offset
const uint8_t ff_silk_quant_offset[2][2]
Definition: opustab.c:749
ff_silk_lsf_codebook_wb
const uint8_t ff_silk_lsf_codebook_wb[32][16]
Definition: opustab.c:511
ff_silk_lsf_s2_model_sel_wb
const uint8_t ff_silk_lsf_s2_model_sel_wb[32][16]
Definition: opustab.c:361
ff_celt_hadamard_order
const uint8_t ff_celt_hadamard_order[]
Definition: opustab.c:943
ff_silk_ltp_scale_factor
const uint16_t ff_silk_ltp_scale_factor[]
Definition: opustab.c:741
ff_silk_lsf_ordering_nbmb
const uint8_t ff_silk_lsf_ordering_nbmb[]
Definition: opustab.c:554
ff_celt_log_freq_range
const uint8_t ff_celt_log_freq_range[]
Definition: opustab.c:776
ff_silk_ltp_filter2_taps
const int8_t ff_silk_ltp_filter2_taps[32][5]
Definition: opustab.c:706
ff_celt_tf_select
const int8_t ff_celt_tf_select[4][2][2][2]
Definition: opustab.c:782
ff_silk_pitch_offset_mbwb20ms
const int8_t ff_silk_pitch_offset_mbwb20ms[34][4]
Definition: opustab.c:639
ff_silk_model_excitation_lsb
const uint16_t ff_silk_model_excitation_lsb[]
Definition: opustab.c:261
attributes_internal.h
ff_celt_alpha_coef
const float ff_celt_alpha_coef[]
Definition: opustab.c:800
ff_silk_stereo_weights
const int16_t ff_silk_stereo_weights[]
Definition: opustab.c:321
ff_silk_lsf_s2_model_sel_nbmb
const uint8_t ff_silk_lsf_s2_model_sel_nbmb[32][10]
Definition: opustab.c:326
ff_silk_pitch_scale
const uint16_t ff_silk_pitch_scale[]
Definition: opustab.c:598
ff_silk_ltp_filter1_taps
const int8_t ff_silk_ltp_filter1_taps[16][5]
Definition: opustab.c:687
ff_celt_cache_index
const int16_t ff_celt_cache_index[105]
Definition: opustab.c:920
ff_celt_static_caps
const uint8_t ff_celt_static_caps[4][2][21]
Definition: opustab.c:866
ff_silk_model_ltp_filter
const uint16_t ff_silk_model_ltp_filter[]
Definition: opustab.c:140
ff_celt_model_tapset
const uint16_t ff_celt_model_tapset[]
Definition: opustab.c:758
ff_silk_model_stereo_s2
const uint16_t ff_silk_model_stereo_s2[]
Definition: opustab.c:39
ff_celt_freq_range
const uint8_t ff_celt_freq_range[]
Definition: opustab.c:772
ff_silk_model_pitch_lowbits_nb
const uint16_t ff_silk_model_pitch_lowbits_nb[]
Definition: opustab.c:113
ff_silk_model_pitch_delta
const uint16_t ff_silk_model_pitch_delta[]
Definition: opustab.c:119
ff_celt_window
static const float *const ff_celt_window
Definition: opustab.h:162
ff_silk_model_mid_only
const uint16_t ff_silk_model_mid_only[]
Definition: opustab.c:43
ff_silk_lsf_weight_sel_wb
const uint8_t ff_silk_lsf_weight_sel_wb[32][15]
Definition: opustab.c:441
ff_silk_model_exc_rate
const uint16_t ff_silk_model_exc_rate[2][10]
Definition: opustab.c:159
ff_celt_beta_coef
const float ff_celt_beta_coef[]
Definition: opustab.c:804
ff_celt_bit_deinterleave
const uint8_t ff_celt_bit_deinterleave[]
Definition: opustab.c:938
ff_celt_postfilter_taps
const float ff_celt_postfilter_taps[3][3]
Definition: opustab.c:1098
ff_silk_model_lsf_interpolation_offset
const uint16_t ff_silk_model_lsf_interpolation_offset[]
Definition: opustab.c:106
ff_silk_model_stereo_s1
const uint16_t ff_silk_model_stereo_s1[]
Definition: opustab.c:34
ff_celt_model_spread
const uint16_t ff_celt_model_spread[]
Definition: opustab.c:760
ff_celt_freq_bands
const uint8_t ff_celt_freq_bands[]
Definition: opustab.c:768
ff_silk_lsf_ordering_wb
const uint8_t ff_silk_lsf_ordering_wb[]
Definition: opustab.c:558
ff_silk_lsf_pred_weights_wb
const uint8_t ff_silk_lsf_pred_weights_wb[2][15]
Definition: opustab.c:401
ff_opus_deemph_weights
const float ff_opus_deemph_weights[]
Definition: opustab.c:1169
ff_silk_lsf_pred_weights_nbmb
const uint8_t ff_silk_lsf_pred_weights_nbmb[2][9]
Definition: opustab.c:396
ff_silk_pitch_max_lag
const uint16_t ff_silk_pitch_max_lag[]
Definition: opustab.c:602
ff_silk_model_pitch_lowbits_mb
const uint16_t ff_silk_model_pitch_lowbits_mb[]
Definition: opustab.c:115
ff_celt_band_end
const FF_VISIBILITY_PUSH_HIDDEN uint8_t ff_celt_band_end[]
Definition: opustab.c:29
ff_silk_stereo_interp_len
const int ff_silk_stereo_interp_len[3]
Definition: opustab.c:754
ff_silk_pitch_offset_nb20ms
const int8_t ff_silk_pitch_offset_nb20ms[11][4]
Definition: opustab.c:610
ff_celt_window_padded
const float ff_celt_window_padded[]
Definition: opustab.c:1104
ff_silk_lsf_weight_sel_nbmb
const uint8_t ff_silk_lsf_weight_sel_nbmb[32][9]
Definition: opustab.c:406
FF_VISIBILITY_POP_HIDDEN
#define FF_VISIBILITY_POP_HIDDEN
Definition: attributes_internal.h:31
ff_celt_window2
const float ff_celt_window2[120]
Definition: opustab.c:1136
ff_silk_lsf_codebook_nbmb
const uint8_t ff_silk_lsf_codebook_nbmb[32][10]
Definition: opustab.c:476
ff_silk_model_frame_type_inactive
const uint16_t ff_silk_model_frame_type_inactive[]
Definition: opustab.c:45
ff_silk_model_ltp_filter0_sel
const uint16_t ff_silk_model_ltp_filter0_sel[]
Definition: opustab.c:142
ff_silk_model_lsf_s2_ext
const uint16_t ff_silk_model_lsf_s2_ext[]
Definition: opustab.c:104
ff_celt_coarse_energy_dist
const uint8_t ff_celt_coarse_energy_dist[4][2][42]
Definition: opustab.c:808
ff_silk_cosine
const int16_t ff_silk_cosine[]
Definition: opustab.c:562
ff_silk_shell_blocks
const uint8_t ff_silk_shell_blocks[3][2]
Definition: opustab.c:743
ff_silk_pitch_offset_mbwb10ms
const int8_t ff_silk_pitch_offset_mbwb10ms[12][2]
Definition: opustab.c:624
ff_celt_qn_exp2
const uint16_t ff_celt_qn_exp2[]
Definition: opustab.c:951
ff_silk_lsf_min_spacing_wb
const uint16_t ff_silk_lsf_min_spacing_wb[]
Definition: opustab.c:550
ff_silk_model_ltp_scale_index
const uint16_t ff_silk_model_ltp_scale_index[]
Definition: opustab.c:155
ff_silk_model_pitch_highbits
const uint16_t ff_silk_model_pitch_highbits[]
Definition: opustab.c:108
ff_silk_model_pitch_contour_nb10ms
const uint16_t ff_silk_model_pitch_contour_nb10ms[]
Definition: opustab.c:124
ff_celt_static_alloc
const uint8_t ff_celt_static_alloc[11][21]
Definition: opustab.c:852
ff_celt_bit_interleave
const uint8_t ff_celt_bit_interleave[]
Definition: opustab.c:934
ff_celt_mean_energy
const float ff_celt_mean_energy[]
Definition: opustab.c:792
ff_silk_model_pulse_count
const uint16_t ff_silk_model_pulse_count[11][19]
Definition: opustab.c:164
ff_silk_model_ltp_filter2_sel
const uint16_t ff_silk_model_ltp_filter2_sel[]
Definition: opustab.c:150
ff_silk_model_excitation_sign
const uint16_t ff_silk_model_excitation_sign[3][2][7][3]
Definition: opustab.c:263
ff_silk_model_lbrr_flags_60
const uint16_t ff_silk_model_lbrr_flags_60[]
Definition: opustab.c:32
ff_silk_lsf_min_spacing_nbmb
const uint16_t ff_silk_lsf_min_spacing_nbmb[]
Definition: opustab.c:546
ff_silk_model_gain_delta
const uint16_t ff_silk_model_gain_delta[]
Definition: opustab.c:57
ff_silk_pitch_min_lag
const uint16_t ff_silk_pitch_min_lag[]
Definition: opustab.c:600
ff_silk_model_pitch_lowbits_wb
const uint16_t ff_silk_model_pitch_lowbits_wb[]
Definition: opustab.c:117
ff_celt_model_alloc_trim
const uint16_t ff_celt_model_alloc_trim[]
Definition: opustab.c:762
ff_silk_model_ltp_filter1_sel
const uint16_t ff_silk_model_ltp_filter1_sel[]
Definition: opustab.c:146
ff_opus_default_coupled_streams
const uint8_t ff_opus_default_coupled_streams[]
Definition: opustab.c:27
ff_silk_model_pitch_contour_mbwb10ms
const uint16_t ff_silk_model_pitch_contour_mbwb10ms[]
Definition: opustab.c:130
ff_celt_model_energy_small
const uint16_t ff_celt_model_energy_small[]
Definition: opustab.c:766
ff_silk_model_pulse_location
const uint16_t ff_silk_model_pulse_location[4][168]
Definition: opustab.c:189
ff_silk_model_gain_highbits
const uint16_t ff_silk_model_gain_highbits[3][9]
Definition: opustab.c:49
ff_silk_model_lbrr_flags_40
const uint16_t ff_silk_model_lbrr_flags_40[]
Definition: opustab.c:31
ff_silk_model_stereo_s3
const uint16_t ff_silk_model_stereo_s3[]
Definition: opustab.c:41
ff_silk_ltp_filter0_taps
const int8_t ff_silk_ltp_filter0_taps[8][5]
Definition: opustab.c:676