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 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 11 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 #include <string.h> | 15 #include <string.h> |
16 | 16 |
17 #include "webrtc/modules/audio_processing/utility/delay_estimator.h" | 17 #include "webrtc/modules/audio_processing/utility/delay_estimator.h" |
18 #include "webrtc/modules/audio_processing/utility/delay_estimator_internal.h" | 18 #include "webrtc/modules/audio_processing/utility/delay_estimator_internal.h" |
19 #include "webrtc/system_wrappers/interface/compile_assert_c.h" | 19 #include "webrtc/system_wrappers/include/compile_assert_c.h" |
20 | 20 |
21 // Only bit |kBandFirst| through bit |kBandLast| are processed and | 21 // Only bit |kBandFirst| through bit |kBandLast| are processed and |
22 // |kBandFirst| - |kBandLast| must be < 32. | 22 // |kBandFirst| - |kBandLast| must be < 32. |
23 enum { kBandFirst = 12 }; | 23 enum { kBandFirst = 12 }; |
24 enum { kBandLast = 43 }; | 24 enum { kBandLast = 43 }; |
25 | 25 |
26 static __inline uint32_t SetBit(uint32_t in, int pos) { | 26 static __inline uint32_t SetBit(uint32_t in, int pos) { |
27 uint32_t mask = (1 << pos); | 27 uint32_t mask = (1 << pos); |
28 uint32_t out = (in | mask); | 28 uint32_t out = (in | mask); |
29 | 29 |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 } | 476 } |
477 | 477 |
478 return WebRtc_binary_last_delay(self->binary_handle); | 478 return WebRtc_binary_last_delay(self->binary_handle); |
479 } | 479 } |
480 | 480 |
481 float WebRtc_last_delay_quality(void* handle) { | 481 float WebRtc_last_delay_quality(void* handle) { |
482 DelayEstimator* self = (DelayEstimator*) handle; | 482 DelayEstimator* self = (DelayEstimator*) handle; |
483 assert(self != NULL); | 483 assert(self != NULL); |
484 return WebRtc_binary_last_delay_quality(self->binary_handle); | 484 return WebRtc_binary_last_delay_quality(self->binary_handle); |
485 } | 485 } |
OLD | NEW |