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 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 * | 200 * |
201 * This function initializes function pointers for ARM Neon platform. | 201 * This function initializes function pointers for ARM Neon platform. |
202 */ | 202 */ |
203 | 203 |
204 #if defined(WEBRTC_DETECT_NEON) || defined(WEBRTC_HAS_NEON) | 204 #if defined(WEBRTC_DETECT_NEON) || defined(WEBRTC_HAS_NEON) |
205 static void WebRtcIsacfix_InitNeon(void) { | 205 static void WebRtcIsacfix_InitNeon(void) { |
206 WebRtcIsacfix_AutocorrFix = WebRtcIsacfix_AutocorrNeon; | 206 WebRtcIsacfix_AutocorrFix = WebRtcIsacfix_AutocorrNeon; |
207 WebRtcIsacfix_FilterMaLoopFix = WebRtcIsacfix_FilterMaLoopNeon; | 207 WebRtcIsacfix_FilterMaLoopFix = WebRtcIsacfix_FilterMaLoopNeon; |
208 WebRtcIsacfix_Spec2Time = WebRtcIsacfix_Spec2TimeNeon; | 208 WebRtcIsacfix_Spec2Time = WebRtcIsacfix_Spec2TimeNeon; |
209 WebRtcIsacfix_Time2Spec = WebRtcIsacfix_Time2SpecNeon; | 209 WebRtcIsacfix_Time2Spec = WebRtcIsacfix_Time2SpecNeon; |
210 // Disable AllpassFilter2FixDec16Neon function due to a clang bug. | |
211 // Refer more details at: | |
212 // https://code.google.com/p/webrtc/issues/detail?id=4567 | |
213 #if !defined(__clang__) || !defined(WEBRTC_ARCH_ARM64) | |
214 WebRtcIsacfix_AllpassFilter2FixDec16 = | 210 WebRtcIsacfix_AllpassFilter2FixDec16 = |
215 WebRtcIsacfix_AllpassFilter2FixDec16Neon; | 211 WebRtcIsacfix_AllpassFilter2FixDec16Neon; |
216 #endif | |
217 WebRtcIsacfix_MatrixProduct1 = WebRtcIsacfix_MatrixProduct1Neon; | 212 WebRtcIsacfix_MatrixProduct1 = WebRtcIsacfix_MatrixProduct1Neon; |
218 WebRtcIsacfix_MatrixProduct2 = WebRtcIsacfix_MatrixProduct2Neon; | 213 WebRtcIsacfix_MatrixProduct2 = WebRtcIsacfix_MatrixProduct2Neon; |
219 } | 214 } |
220 #endif | 215 #endif |
221 | 216 |
222 /**************************************************************************** | 217 /**************************************************************************** |
223 * WebRtcIsacfix_InitMIPS(...) | 218 * WebRtcIsacfix_InitMIPS(...) |
224 * | 219 * |
225 * This function initializes function pointers for MIPS platform. | 220 * This function initializes function pointers for MIPS platform. |
226 */ | 221 */ |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 assert(inst->initflag & 1); // Decoder initialized. | 1545 assert(inst->initflag & 1); // Decoder initialized. |
1551 WebRtcIsacfixBw_GetBandwidthInfo(&inst->bwestimator_obj, bwinfo); | 1546 WebRtcIsacfixBw_GetBandwidthInfo(&inst->bwestimator_obj, bwinfo); |
1552 } | 1547 } |
1553 | 1548 |
1554 void WebRtcIsacfix_SetBandwidthInfo(ISACFIX_MainStruct* ISAC_main_inst, | 1549 void WebRtcIsacfix_SetBandwidthInfo(ISACFIX_MainStruct* ISAC_main_inst, |
1555 const IsacBandwidthInfo* bwinfo) { | 1550 const IsacBandwidthInfo* bwinfo) { |
1556 ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; | 1551 ISACFIX_SubStruct* inst = (ISACFIX_SubStruct*)ISAC_main_inst; |
1557 assert(inst->initflag & 2); // Encoder initialized. | 1552 assert(inst->initflag & 2); // Encoder initialized. |
1558 WebRtcIsacfixBw_SetBandwidthInfo(&inst->bwestimator_obj, bwinfo); | 1553 WebRtcIsacfixBw_SetBandwidthInfo(&inst->bwestimator_obj, bwinfo); |
1559 } | 1554 } |
OLD | NEW |