| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 * codec.h | 12 * codec.h |
| 13 * | 13 * |
| 14 * This header file contains the calls to the internal encoder | 14 * This header file contains the calls to the internal encoder |
| 15 * and decoder functions. | 15 * and decoder functions. |
| 16 * | 16 * |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ | 19 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ |
| 20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ | 20 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ |
| 21 | 21 |
| 22 #include "structs.h" | 22 #include "structs.h" |
| 23 | 23 |
| 24 #ifdef __cplusplus | 24 #ifdef __cplusplus |
| 25 extern "C" { | 25 extern "C" { |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 int WebRtcIsacfix_EstimateBandwidth(BwEstimatorstr* bwest_str, | 28 int WebRtcIsacfix_EstimateBandwidth(BwEstimatorstr* bwest_str, |
| 29 Bitstr_dec* streamdata, | 29 Bitstr_dec* streamdata, |
| 30 int32_t packet_size, | 30 size_t packet_size, |
| 31 uint16_t rtp_seq_number, | 31 uint16_t rtp_seq_number, |
| 32 uint32_t send_ts, | 32 uint32_t send_ts, |
| 33 uint32_t arr_ts); | 33 uint32_t arr_ts); |
| 34 | 34 |
| 35 int WebRtcIsacfix_DecodeImpl(int16_t* signal_out16, | 35 int WebRtcIsacfix_DecodeImpl(int16_t* signal_out16, |
| 36 IsacFixDecoderInstance* ISACdec_obj, | 36 IsacFixDecoderInstance* ISACdec_obj, |
| 37 int16_t* current_framesamples); | 37 size_t* current_framesamples); |
| 38 | 38 |
| 39 void WebRtcIsacfix_DecodePlcImpl(int16_t* decoded, | 39 void WebRtcIsacfix_DecodePlcImpl(int16_t* decoded, |
| 40 IsacFixDecoderInstance* ISACdec_obj, | 40 IsacFixDecoderInstance* ISACdec_obj, |
| 41 int16_t* current_framesample ); | 41 size_t* current_framesample ); |
| 42 | 42 |
| 43 int WebRtcIsacfix_EncodeImpl(int16_t* in, | 43 int WebRtcIsacfix_EncodeImpl(int16_t* in, |
| 44 IsacFixEncoderInstance* ISACenc_obj, | 44 IsacFixEncoderInstance* ISACenc_obj, |
| 45 BwEstimatorstr* bw_estimatordata, | 45 BwEstimatorstr* bw_estimatordata, |
| 46 int16_t CodingMode); | 46 int16_t CodingMode); |
| 47 | 47 |
| 48 int WebRtcIsacfix_EncodeStoredData(IsacFixEncoderInstance* ISACenc_obj, | 48 int WebRtcIsacfix_EncodeStoredData(IsacFixEncoderInstance* ISACenc_obj, |
| 49 int BWnumber, | 49 int BWnumber, |
| 50 float scale); | 50 float scale); |
| 51 | 51 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void WebRtcIsacfix_FilterAndCombine2(int16_t* tempin_ch1, | 134 void WebRtcIsacfix_FilterAndCombine2(int16_t* tempin_ch1, |
| 135 int16_t* tempin_ch2, | 135 int16_t* tempin_ch2, |
| 136 int16_t* out16, | 136 int16_t* out16, |
| 137 PostFiltBankstr* postfiltdata, | 137 PostFiltBankstr* postfiltdata, |
| 138 int16_t len); | 138 int16_t len); |
| 139 | 139 |
| 140 #endif | 140 #endif |
| 141 | 141 |
| 142 /* normalized lattice filters */ | 142 /* normalized lattice filters */ |
| 143 | 143 |
| 144 void WebRtcIsacfix_NormLatticeFilterMa(int16_t orderCoef, | 144 void WebRtcIsacfix_NormLatticeFilterMa(size_t orderCoef, |
| 145 int32_t* stateGQ15, | 145 int32_t* stateGQ15, |
| 146 int16_t* lat_inQ0, | 146 int16_t* lat_inQ0, |
| 147 int16_t* filt_coefQ15, | 147 int16_t* filt_coefQ15, |
| 148 int32_t* gain_lo_hiQ17, | 148 int32_t* gain_lo_hiQ17, |
| 149 int16_t lo_hi, | 149 int16_t lo_hi, |
| 150 int16_t* lat_outQ9); | 150 int16_t* lat_outQ9); |
| 151 | 151 |
| 152 void WebRtcIsacfix_NormLatticeFilterAr(int16_t orderCoef, | 152 void WebRtcIsacfix_NormLatticeFilterAr(size_t orderCoef, |
| 153 int16_t* stateGQ0, | 153 int16_t* stateGQ0, |
| 154 int32_t* lat_inQ25, | 154 int32_t* lat_inQ25, |
| 155 int16_t* filt_coefQ15, | 155 int16_t* filt_coefQ15, |
| 156 int32_t* gain_lo_hiQ17, | 156 int32_t* gain_lo_hiQ17, |
| 157 int16_t lo_hi, | 157 int16_t lo_hi, |
| 158 int16_t* lat_outQ0); | 158 int16_t* lat_outQ0); |
| 159 | 159 |
| 160 /* TODO(kma): Remove the following functions into individual header files. */ | 160 /* TODO(kma): Remove the following functions into individual header files. */ |
| 161 | 161 |
| 162 /* Internal functions in both C and ARM Neon versions */ | 162 /* Internal functions in both C and ARM Neon versions */ |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 int32_t* ptr0, | 219 int32_t* ptr0, |
| 220 int32_t* ptr1, | 220 int32_t* ptr1, |
| 221 int32_t* ptr2); | 221 int32_t* ptr2); |
| 222 extern FilterMaLoopFix WebRtcIsacfix_FilterMaLoopFix; | 222 extern FilterMaLoopFix WebRtcIsacfix_FilterMaLoopFix; |
| 223 | 223 |
| 224 #ifdef __cplusplus | 224 #ifdef __cplusplus |
| 225 } // extern "C" | 225 } // extern "C" |
| 226 #endif | 226 #endif |
| 227 | 227 |
| 228 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ */ | 228 #endif /* WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_CODEC_H_ */ |
| OLD | NEW |