| 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 * decode.c | 12 * decode.c |
| 13 * | 13 * |
| 14 * This C file contains the internal decoding function. | 14 * This C file contains the internal decoding function. |
| 15 * | 15 * |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include <string.h> | 18 #include <string.h> |
| 19 | 19 |
| 20 #include "bandwidth_estimator.h" | 20 #include "bandwidth_estimator.h" |
| 21 #include "codec.h" | 21 #include "codec.h" |
| 22 #include "entropy_coding.h" | 22 #include "entropy_coding.h" |
| 23 #include "pitch_estimator.h" | 23 #include "pitch_estimator.h" |
| 24 #include "settings.h" | 24 #include "settings.h" |
| 25 #include "structs.h" | 25 #include "structs.h" |
| 26 | 26 |
| 27 | 27 |
| 28 | 28 |
| 29 | 29 |
| 30 int WebRtcIsacfix_DecodeImpl(int16_t *signal_out16, | 30 int WebRtcIsacfix_DecodeImpl(int16_t* signal_out16, |
| 31 IsacFixDecoderInstance *ISACdec_obj, | 31 IsacFixDecoderInstance* ISACdec_obj, |
| 32 int16_t *current_framesamples) | 32 int16_t* current_framesamples) |
| 33 { | 33 { |
| 34 int k; | 34 int k; |
| 35 int err; | 35 int err; |
| 36 int16_t BWno; | 36 int16_t BWno; |
| 37 int len = 0; | 37 int len = 0; |
| 38 | 38 |
| 39 int16_t model; | 39 int16_t model; |
| 40 | 40 |
| 41 | 41 |
| 42 int16_t Vector_Word16_1[FRAMESAMPLES/2]; | 42 int16_t Vector_Word16_1[FRAMESAMPLES/2]; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1, | 214 WebRtcIsacfix_FilterAndCombine1(Vector_Word16_1, |
| 215 Vector_Word16_2, | 215 Vector_Word16_2, |
| 216 signal_out16 + frame_nb * kProcessedSamples, | 216 signal_out16 + frame_nb * kProcessedSamples, |
| 217 &ISACdec_obj->postfiltbankstr_obj); | 217 &ISACdec_obj->postfiltbankstr_obj); |
| 218 | 218 |
| 219 } | 219 } |
| 220 return len; | 220 return len; |
| 221 } | 221 } |
| OLD | NEW |