FFmpeg  4.0
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 "libavutil/mem.h"
27 
28 #include <stdint.h>
29 
30 extern const uint8_t ff_celt_band_end[];
31 
33 
34 extern const uint16_t ff_silk_model_stereo_s1[];
35 extern const uint16_t ff_silk_model_stereo_s2[];
36 extern const uint16_t ff_silk_model_stereo_s3[];
37 extern const uint16_t ff_silk_model_mid_only[];
38 
39 extern const uint16_t ff_silk_model_frame_type_inactive[];
40 extern const uint16_t ff_silk_model_frame_type_active[];
41 
42 extern const uint16_t ff_silk_model_gain_highbits[3][9];
43 extern const uint16_t ff_silk_model_gain_lowbits[];
44 extern const uint16_t ff_silk_model_gain_delta[];
45 
46 extern const uint16_t ff_silk_model_lsf_s1[2][2][33];
47 extern const uint16_t ff_silk_model_lsf_s2[32][10];
48 extern const uint16_t ff_silk_model_lsf_s2_ext[];
49 extern const uint16_t ff_silk_model_lsf_interpolation_offset[];
50 
51 extern const uint16_t ff_silk_model_pitch_highbits[];
52 extern const uint16_t ff_silk_model_pitch_lowbits_nb[];
53 extern const uint16_t ff_silk_model_pitch_lowbits_mb[];
54 extern const uint16_t ff_silk_model_pitch_lowbits_wb[];
55 extern const uint16_t ff_silk_model_pitch_delta[];
56 extern const uint16_t ff_silk_model_pitch_contour_nb10ms[];
57 extern const uint16_t ff_silk_model_pitch_contour_nb20ms[];
58 extern const uint16_t ff_silk_model_pitch_contour_mbwb10ms[];
59 extern const uint16_t ff_silk_model_pitch_contour_mbwb20ms[];
60 
61 extern const uint16_t ff_silk_model_ltp_filter[];
62 extern const uint16_t ff_silk_model_ltp_filter0_sel[];
63 extern const uint16_t ff_silk_model_ltp_filter1_sel[];
64 extern const uint16_t ff_silk_model_ltp_filter2_sel[];
65 extern const uint16_t ff_silk_model_ltp_scale_index[];
66 
67 extern const uint16_t ff_silk_model_lcg_seed[];
68 
69 extern const uint16_t ff_silk_model_exc_rate[2][10];
70 
71 extern const uint16_t ff_silk_model_pulse_count[11][19];
72 extern const uint16_t ff_silk_model_pulse_location[4][168];
73 
74 extern const uint16_t ff_silk_model_excitation_lsb[];
75 extern const uint16_t ff_silk_model_excitation_sign[3][2][7][3];
76 
77 extern const int16_t ff_silk_stereo_weights[];
78 
79 extern const uint8_t ff_silk_lsf_s2_model_sel_nbmb[32][10];
80 extern const uint8_t ff_silk_lsf_s2_model_sel_wb[32][16];
81 
82 extern const uint8_t ff_silk_lsf_pred_weights_nbmb[2][9];
83 extern const uint8_t ff_silk_lsf_pred_weights_wb[2][15];
84 
85 extern const uint8_t ff_silk_lsf_weight_sel_nbmb[32][9];
86 extern const uint8_t ff_silk_lsf_weight_sel_wb[32][15];
87 
88 extern const uint8_t ff_silk_lsf_codebook_nbmb[32][10];
89 extern const uint8_t ff_silk_lsf_codebook_wb[32][16];
90 
91 extern const uint16_t ff_silk_lsf_min_spacing_nbmb[];
92 extern const uint16_t ff_silk_lsf_min_spacing_wb[];
93 
94 extern const uint8_t ff_silk_lsf_ordering_nbmb[];
95 extern const uint8_t ff_silk_lsf_ordering_wb[];
96 
97 extern const int16_t ff_silk_cosine[];
98 
99 extern const uint16_t ff_silk_pitch_scale[];
100 extern const uint16_t ff_silk_pitch_min_lag[];
101 extern const uint16_t ff_silk_pitch_max_lag[];
102 
103 extern const int8_t ff_silk_pitch_offset_nb10ms[3][2];
104 extern const int8_t ff_silk_pitch_offset_nb20ms[11][4];
105 extern const int8_t ff_silk_pitch_offset_mbwb10ms[12][2];
106 extern const int8_t ff_silk_pitch_offset_mbwb20ms[34][4];
107 
108 extern const int8_t ff_silk_ltp_filter0_taps[8][5];
109 extern const int8_t ff_silk_ltp_filter1_taps[16][5];
110 extern const int8_t ff_silk_ltp_filter2_taps[32][5];
111 
112 extern const uint16_t ff_silk_ltp_scale_factor[];
113 
114 extern const uint8_t ff_silk_shell_blocks[3][2];
115 
116 extern const uint8_t ff_silk_quant_offset[2][2];
117 
118 extern const int ff_silk_stereo_interp_len[3];
119 
120 extern const uint16_t ff_celt_model_tapset[];
121 extern const uint16_t ff_celt_model_spread[];
122 extern const uint16_t ff_celt_model_alloc_trim[];
123 extern const uint16_t ff_celt_model_energy_small[];
124 
125 extern const uint8_t ff_celt_freq_bands[];
126 extern const uint8_t ff_celt_freq_range[];
127 extern const uint8_t ff_celt_log_freq_range[];
128 
129 extern const int8_t ff_celt_tf_select[4][2][2][2];
130 
131 extern const float ff_celt_mean_energy[];
132 
133 extern const float ff_celt_alpha_coef[];
134 extern const float ff_celt_beta_coef[];
135 
136 extern const uint8_t ff_celt_coarse_energy_dist[4][2][42];
137 
138 extern const uint8_t ff_celt_static_alloc[11][21];
139 extern const uint8_t ff_celt_static_caps[4][2][21];
140 
141 extern const uint8_t ff_celt_cache_bits[392];
142 extern const int16_t ff_celt_cache_index[105];
143 
144 extern const uint8_t ff_celt_log2_frac[];
145 
146 extern const uint8_t ff_celt_bit_interleave[];
147 extern const uint8_t ff_celt_bit_deinterleave[];
148 
149 extern const uint8_t ff_celt_hadamard_order[];
150 
151 extern const uint16_t ff_celt_qn_exp2[];
152 extern const uint32_t ff_celt_pvq_u[1272];
153 
154 extern const float ff_celt_postfilter_taps[3][3];
155 
156 extern const float ff_celt_window2[120];
157 extern const float *ff_celt_window;
158 
159 extern const uint32_t * const ff_celt_pvq_u_row[15];
160 
161 #endif /* AVCODEC_OPUSTAB_H */
const uint16_t ff_silk_model_gain_highbits[3][9]
Definition: opustab.c:44
const uint8_t ff_silk_lsf_codebook_wb[32][16]
Definition: opustab.c:506
const uint16_t ff_silk_model_pitch_lowbits_wb[]
Definition: opustab.c:112
const uint16_t ff_silk_model_ltp_filter1_sel[]
Definition: opustab.c:141
const uint8_t ff_celt_cache_bits[392]
Definition: opustab.c:885
Memory handling functions.
const uint16_t ff_silk_model_gain_lowbits[]
Definition: opustab.c:50
const uint16_t ff_silk_model_lcg_seed[]
Definition: opustab.c:152
const uint8_t ff_silk_quant_offset[2][2]
Definition: opustab.c:744
const uint16_t ff_silk_model_frame_type_active[]
Definition: opustab.c:42
const int8_t ff_celt_tf_select[4][2][2][2]
Definition: opustab.c:777
const uint8_t ff_celt_log_freq_range[]
Definition: opustab.c:771
const uint16_t ff_silk_model_lsf_s1[2][2][33]
Definition: opustab.c:57
const uint16_t ff_silk_ltp_scale_factor[]
Definition: opustab.c:736
const uint16_t ff_silk_model_pitch_contour_nb20ms[]
Definition: opustab.c:121
const uint8_t ff_celt_log2_frac[]
Definition: opustab.c:925
uint8_t
const uint8_t ff_celt_hadamard_order[]
Definition: opustab.c:938
const uint16_t ff_silk_model_lsf_s2[32][10]
Definition: opustab.c:77
const uint16_t ff_silk_model_ltp_filter[]
Definition: opustab.c:135
const int8_t ff_silk_pitch_offset_mbwb20ms[34][4]
Definition: opustab.c:634
const uint16_t ff_celt_model_tapset[]
Definition: opustab.c:753
const int16_t ff_silk_stereo_weights[]
Definition: opustab.c:316
const int16_t ff_celt_cache_index[105]
Definition: opustab.c:915
const uint8_t ff_silk_lsf_s2_model_sel_wb[32][16]
Definition: opustab.c:356
const uint8_t ff_silk_lsf_s2_model_sel_nbmb[32][10]
Definition: opustab.c:321
const uint16_t ff_silk_model_pitch_delta[]
Definition: opustab.c:114
const uint16_t ff_silk_pitch_scale[]
Definition: opustab.c:593
const int8_t ff_silk_ltp_filter2_taps[32][5]
Definition: opustab.c:701
const uint16_t ff_silk_model_stereo_s1[]
Definition: opustab.c:29
const uint16_t ff_silk_model_excitation_lsb[]
Definition: opustab.c:256
const uint8_t ff_silk_lsf_pred_weights_wb[2][15]
Definition: opustab.c:396
const uint8_t ff_silk_lsf_weight_sel_wb[32][15]
Definition: opustab.c:436
const float ff_celt_alpha_coef[]
Definition: opustab.c:795
const uint8_t ff_silk_lsf_ordering_nbmb[]
Definition: opustab.c:549
const uint8_t ff_silk_lsf_weight_sel_nbmb[32][9]
Definition: opustab.c:401
const uint16_t ff_silk_model_stereo_s2[]
Definition: opustab.c:34
const uint16_t ff_silk_model_frame_type_inactive[]
Definition: opustab.c:40
const uint8_t ff_celt_band_end[]
Definition: opustab.c:27
const uint8_t ff_silk_lsf_codebook_nbmb[32][10]
Definition: opustab.c:471
const int8_t ff_silk_ltp_filter1_taps[16][5]
Definition: opustab.c:682
const uint8_t ff_celt_freq_range[]
Definition: opustab.c:767
const uint16_t ff_silk_model_pitch_lowbits_nb[]
Definition: opustab.c:108
const uint8_t ff_silk_shell_blocks[3][2]
Definition: opustab.c:738
const uint16_t ff_silk_model_ltp_scale_index[]
Definition: opustab.c:150
const uint8_t ff_celt_coarse_energy_dist[4][2][42]
Definition: opustab.c:803
const uint16_t ff_silk_lsf_min_spacing_wb[]
Definition: opustab.c:545
const uint16_t ff_silk_pitch_max_lag[]
Definition: opustab.c:597
const uint8_t ff_celt_static_caps[4][2][21]
Definition: opustab.c:861
const uint16_t ff_silk_model_exc_rate[2][10]
Definition: opustab.c:154
const uint8_t ff_celt_freq_bands[]
Definition: opustab.c:763
const uint16_t ff_silk_model_ltp_filter0_sel[]
Definition: opustab.c:137
const uint16_t ff_silk_model_mid_only[]
Definition: opustab.c:38
const float ff_celt_postfilter_taps[3][3]
Definition: opustab.c:1093
const float ff_celt_beta_coef[]
Definition: opustab.c:799
const int ff_silk_stereo_interp_len[3]
Definition: opustab.c:749
const uint8_t ff_silk_lsf_ordering_wb[]
Definition: opustab.c:553
const uint16_t ff_silk_model_pitch_highbits[]
Definition: opustab.c:103
const uint8_t ff_celt_bit_deinterleave[]
Definition: opustab.c:933
const uint16_t ff_silk_model_pulse_count[11][19]
Definition: opustab.c:159
const uint16_t ff_silk_model_lsf_interpolation_offset[]
Definition: opustab.c:101
const uint16_t ff_celt_model_spread[]
Definition: opustab.c:755
const float ff_celt_window2[120]
Definition: opustab.c:1133
const uint8_t ff_opus_default_coupled_streams[]
Definition: opustab.c:25
const uint8_t ff_celt_bit_interleave[]
Definition: opustab.c:929
const float * ff_celt_window
Definition: opustab.c:1130
const int8_t ff_silk_pitch_offset_mbwb10ms[12][2]
Definition: opustab.c:619
const uint8_t ff_silk_lsf_pred_weights_nbmb[2][9]
Definition: opustab.c:391
const uint16_t ff_silk_model_ltp_filter2_sel[]
Definition: opustab.c:145
const uint16_t ff_silk_model_pitch_lowbits_mb[]
Definition: opustab.c:110
const float ff_celt_mean_energy[]
Definition: opustab.c:787
const uint16_t ff_silk_model_excitation_sign[3][2][7][3]
Definition: opustab.c:258
const int8_t ff_silk_pitch_offset_nb20ms[11][4]
Definition: opustab.c:605
const uint16_t ff_silk_lsf_min_spacing_nbmb[]
Definition: opustab.c:541
const uint8_t ff_celt_static_alloc[11][21]
Definition: opustab.c:847
const uint32_t ff_celt_pvq_u[1272]
Definition: opustab.c:950
const int16_t ff_silk_cosine[]
Definition: opustab.c:557
const uint16_t ff_silk_model_lsf_s2_ext[]
Definition: opustab.c:99
const int8_t ff_silk_ltp_filter0_taps[8][5]
Definition: opustab.c:671
const uint16_t ff_celt_qn_exp2[]
Definition: opustab.c:946
const uint16_t ff_silk_model_pitch_contour_nb10ms[]
Definition: opustab.c:119
const uint16_t ff_celt_model_energy_small[]
Definition: opustab.c:761
const uint32_t *const ff_celt_pvq_u_row[15]
Definition: opustab.c:1152
const uint16_t ff_silk_pitch_min_lag[]
Definition: opustab.c:595
const uint16_t ff_silk_model_pulse_location[4][168]
Definition: opustab.c:184
const uint16_t ff_celt_model_alloc_trim[]
Definition: opustab.c:757
const uint16_t ff_silk_model_gain_delta[]
Definition: opustab.c:52
const int8_t ff_silk_pitch_offset_nb10ms[3][2]
Definition: opustab.c:599
const uint16_t ff_silk_model_pitch_contour_mbwb10ms[]
Definition: opustab.c:125
const uint16_t ff_silk_model_pitch_contour_mbwb20ms[]
Definition: opustab.c:129
const uint16_t ff_silk_model_stereo_s3[]
Definition: opustab.c:36