#include "modules/audio_processing/utility/delay_estimator_wrapper.h"
#include <stdlib.h>
#include <string.h>
#include "modules/audio_processing/utility/delay_estimator.h"
#include "modules/audio_processing/utility/delay_estimator_internal.h"
#include "rtc_base/checks.h"
namespace webrtc {
constexpr int kBandFirst = …;
constexpr int kBandLast = …;
static __inline uint32_t SetBit(uint32_t in, int pos) { … }
static void MeanEstimatorFloat(float new_value,
float scale,
float* mean_value) { … }
static uint32_t BinarySpectrumFix(const uint16_t* spectrum,
SpectrumType* threshold_spectrum,
int q_domain,
int* threshold_initialized) { … }
static uint32_t BinarySpectrumFloat(const float* spectrum,
SpectrumType* threshold_spectrum,
int* threshold_initialized) { … }
void WebRtc_FreeDelayEstimatorFarend(void* handle) { … }
void* WebRtc_CreateDelayEstimatorFarend(int spectrum_size, int history_size) { … }
int WebRtc_InitDelayEstimatorFarend(void* handle) { … }
void WebRtc_SoftResetDelayEstimatorFarend(void* handle, int delay_shift) { … }
int WebRtc_AddFarSpectrumFix(void* handle,
const uint16_t* far_spectrum,
int spectrum_size,
int far_q) { … }
int WebRtc_AddFarSpectrumFloat(void* handle,
const float* far_spectrum,
int spectrum_size) { … }
void WebRtc_FreeDelayEstimator(void* handle) { … }
void* WebRtc_CreateDelayEstimator(void* farend_handle, int max_lookahead) { … }
int WebRtc_InitDelayEstimator(void* handle) { … }
int WebRtc_SoftResetDelayEstimator(void* handle, int delay_shift) { … }
int WebRtc_set_history_size(void* handle, int history_size) { … }
int WebRtc_history_size(const void* handle) { … }
int WebRtc_set_lookahead(void* handle, int lookahead) { … }
int WebRtc_lookahead(void* handle) { … }
int WebRtc_set_allowed_offset(void* handle, int allowed_offset) { … }
int WebRtc_get_allowed_offset(const void* handle) { … }
int WebRtc_enable_robust_validation(void* handle, int enable) { … }
int WebRtc_is_robust_validation_enabled(const void* handle) { … }
int WebRtc_DelayEstimatorProcessFix(void* handle,
const uint16_t* near_spectrum,
int spectrum_size,
int near_q) { … }
int WebRtc_DelayEstimatorProcessFloat(void* handle,
const float* near_spectrum,
int spectrum_size) { … }
int WebRtc_last_delay(void* handle) { … }
float WebRtc_last_delay_quality(void* handle) { … }
}