OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 /* | 11 /* |
12 * entropy_coding.h | 12 * entropy_coding.h |
13 * | 13 * |
14 * This header file contains all of the functions used to arithmetically | 14 * This header file contains all of the functions used to arithmetically |
15 * encode the iSAC bistream | 15 * encode the iSAC bistream |
16 * | 16 * |
17 */ | 17 */ |
18 | 18 |
19 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ | 19 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ |
20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ | 20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ |
21 | 21 |
22 #include "structs.h" | 22 #include "structs.h" |
23 | 23 |
24 /* decode complex spectrum (return number of bytes in stream) */ | 24 /* decode complex spectrum (return number of bytes in stream) */ |
25 int16_t WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata, | 25 int WebRtcIsacfix_DecodeSpec(Bitstr_dec *streamdata, |
26 int16_t *frQ7, | 26 int16_t *frQ7, |
27 int16_t *fiQ7, | 27 int16_t *fiQ7, |
28 int16_t AvgPitchGain_Q12); | 28 int16_t AvgPitchGain_Q12); |
29 | 29 |
30 /* encode complex spectrum */ | 30 /* encode complex spectrum */ |
31 int WebRtcIsacfix_EncodeSpec(const int16_t *fr, | 31 int WebRtcIsacfix_EncodeSpec(const int16_t *fr, |
32 const int16_t *fi, | 32 const int16_t *fi, |
33 Bitstr_enc *streamdata, | 33 Bitstr_enc *streamdata, |
34 int16_t AvgPitchGain_Q12); | 34 int16_t AvgPitchGain_Q12); |
35 | 35 |
36 | 36 |
37 /* decode & dequantize LPC Coef */ | 37 /* decode & dequantize LPC Coef */ |
38 int WebRtcIsacfix_DecodeLpcCoef(Bitstr_dec *streamdata, | 38 int WebRtcIsacfix_DecodeLpcCoef(Bitstr_dec *streamdata, |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 const int shift); | 180 const int shift); |
181 | 181 |
182 void WebRtcIsacfix_MatrixProduct2MIPS(const int16_t matrix0[], | 182 void WebRtcIsacfix_MatrixProduct2MIPS(const int16_t matrix0[], |
183 const int32_t matrix1[], | 183 const int32_t matrix1[], |
184 int32_t matrix_product[], | 184 int32_t matrix_product[], |
185 const int matrix0_index_factor, | 185 const int matrix0_index_factor, |
186 const int matrix0_index_step); | 186 const int matrix0_index_step); |
187 #endif | 187 #endif |
188 | 188 |
189 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ | 189 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ENTROPY_CODING_H_ |
OLD | NEW |