chromium/third_party/webrtc/modules/audio_processing/utility/delay_estimator_wrapper.cc

/*
 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#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 {

// Only bit `kBandFirst` through bit `kBandLast` are processed and
// `kBandFirst` - `kBandLast` must be < 32.
constexpr int kBandFirst =;
constexpr int kBandLast =;

static __inline uint32_t SetBit(uint32_t in, int pos) {}

// Calculates the mean recursively. Same version as WebRtc_MeanEstimatorFix(),
// but for float.
//
// Inputs:
//    - new_value             : New additional value.
//    - scale                 : Scale for smoothing (should be less than 1.0).
//
// Input/Output:
//    - mean_value            : Pointer to the mean value for updating.
//
static void MeanEstimatorFloat(float new_value,
                               float scale,
                               float* mean_value) {}

// Computes the binary spectrum by comparing the input `spectrum` with a
// `threshold_spectrum`. Float and fixed point versions.
//
// Inputs:
//      - spectrum            : Spectrum of which the binary spectrum should be
//                              calculated.
//      - threshold_spectrum  : Threshold spectrum with which the input
//                              spectrum is compared.
// Return:
//      - out                 : Binary spectrum.
//
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) {}

}  // namespace webrtc