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.c | 12 * entropy_coding.c |
13 * | 13 * |
14 * This file contains all functions used to arithmetically | 14 * This file contains all functions used to arithmetically |
15 * encode the iSAC bistream. | 15 * encode the iSAC bistream. |
16 * | 16 * |
17 */ | 17 */ |
18 | 18 |
19 #include <stddef.h> | 19 #include <stddef.h> |
20 | 20 |
21 #include "arith_routins.h" | 21 #include "arith_routins.h" |
22 #include "spectrum_ar_model_tables.h" | 22 #include "spectrum_ar_model_tables.h" |
23 #include "pitch_gain_tables.h" | 23 #include "pitch_gain_tables.h" |
24 #include "pitch_lag_tables.h" | 24 #include "pitch_lag_tables.h" |
25 #include "entropy_coding.h" | 25 #include "entropy_coding.h" |
26 #include "lpc_tables.h" | 26 #include "lpc_tables.h" |
27 #include "settings.h" | 27 #include "settings.h" |
28 #include "signal_processing_library.h" | 28 #include "signal_processing_library.h" |
29 #include "webrtc/base/sanitizer.h" | 29 #include "webrtc/rtc_base/sanitizer.h" |
30 | 30 |
31 /* | 31 /* |
32 * Eenumerations for arguments to functions WebRtcIsacfix_MatrixProduct1() | 32 * Eenumerations for arguments to functions WebRtcIsacfix_MatrixProduct1() |
33 * and WebRtcIsacfix_MatrixProduct2(). | 33 * and WebRtcIsacfix_MatrixProduct2(). |
34 */ | 34 */ |
35 | 35 |
36 enum matrix_index_factor { | 36 enum matrix_index_factor { |
37 kTIndexFactor1 = 1, | 37 kTIndexFactor1 = 1, |
38 kTIndexFactor2 = 2, | 38 kTIndexFactor2 = 2, |
39 kTIndexFactor3 = SUBFRAMES, | 39 kTIndexFactor3 = SUBFRAMES, |
(...skipping 2007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2047 | 2047 |
2048 index_gQQ[k] = pos2QQ + WebRtcIsacfix_kQuantMinGain[k]; //ATTN: ok? | 2048 index_gQQ[k] = pos2QQ + WebRtcIsacfix_kQuantMinGain[k]; //ATTN: ok? |
2049 if (index_gQQ[k] < 0) { | 2049 if (index_gQQ[k] < 0) { |
2050 index_gQQ[k] = 0; | 2050 index_gQQ[k] = 0; |
2051 } | 2051 } |
2052 else if (index_gQQ[k] > WebRtcIsacfix_kMaxIndGain[k]) { | 2052 else if (index_gQQ[k] > WebRtcIsacfix_kMaxIndGain[k]) { |
2053 index_gQQ[k] = WebRtcIsacfix_kMaxIndGain[k]; | 2053 index_gQQ[k] = WebRtcIsacfix_kMaxIndGain[k]; |
2054 } | 2054 } |
2055 } | 2055 } |
2056 } | 2056 } |
OLD | NEW |