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 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator.h" | 11 #include "webrtc/modules/audio_coding/codecs/isac/fix/source/pitch_estimator.h" |
12 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 12 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
13 #include "webrtc/system_wrappers/include/compile_assert_c.h" | 13 #include "webrtc/base/compile_assert_c.h" |
14 | 14 |
15 /* log2[0.2, 0.5, 0.98] in Q8 */ | 15 /* log2[0.2, 0.5, 0.98] in Q8 */ |
16 static const int16_t kLogLagWinQ8[3] = { | 16 static const int16_t kLogLagWinQ8[3] = { |
17 -594, -256, -7 | 17 -594, -256, -7 |
18 }; | 18 }; |
19 | 19 |
20 /* [1 -0.75 0.25] in Q12 */ | 20 /* [1 -0.75 0.25] in Q12 */ |
21 static const int16_t kACoefQ12[3] = { | 21 static const int16_t kACoefQ12[3] = { |
22 4096, -3072, 1024 | 22 4096, -3072, 1024 |
23 }; | 23 }; |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 | 426 |
427 /* lookahead pitch filtering for masking analysis */ | 427 /* lookahead pitch filtering for masking analysis */ |
428 WebRtcIsacfix_PitchFilter(inbufQ0, outQ0, &(State->PFstr), PitchLags_Q7,PitchG
ains_Q12, 2); | 428 WebRtcIsacfix_PitchFilter(inbufQ0, outQ0, &(State->PFstr), PitchLags_Q7,PitchG
ains_Q12, 2); |
429 | 429 |
430 | 430 |
431 /* store last part of input */ | 431 /* store last part of input */ |
432 for (k = 0; k < QLOOKAHEAD; k++) { | 432 for (k = 0; k < QLOOKAHEAD; k++) { |
433 State->inbuf[k] = inbufQ0[k + PITCH_FRAME_LEN]; | 433 State->inbuf[k] = inbufQ0[k + PITCH_FRAME_LEN]; |
434 } | 434 } |
435 } | 435 } |
OLD | NEW |