tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

delay_estimator_internal.h (1525B)


      1 /*
      2 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
      3 *
      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
      6 *  tree. An additional intellectual property rights grant can be found
      7 *  in the file PATENTS.  All contributing project authors may
      8 *  be found in the AUTHORS file in the root of the source tree.
      9 */
     10 
     11 // Header file including the delay estimator handle used for testing.
     12 
     13 #ifndef MODULES_AUDIO_PROCESSING_UTILITY_DELAY_ESTIMATOR_INTERNAL_H_
     14 #define MODULES_AUDIO_PROCESSING_UTILITY_DELAY_ESTIMATOR_INTERNAL_H_
     15 
     16 #include <cstdint>
     17 
     18 #include "modules/audio_processing/utility/delay_estimator.h"
     19 
     20 namespace webrtc {
     21 
     22 typedef union {
     23  float float_;
     24  int32_t int32_;
     25 } SpectrumType;
     26 
     27 typedef struct {
     28  // Pointers to mean values of spectrum.
     29  SpectrumType* mean_far_spectrum;
     30  // `mean_far_spectrum` initialization indicator.
     31  int far_spectrum_initialized;
     32 
     33  int spectrum_size;
     34 
     35  // Far-end part of binary spectrum based delay estimation.
     36  BinaryDelayEstimatorFarend* binary_farend;
     37 } DelayEstimatorFarend;
     38 
     39 typedef struct {
     40  // Pointers to mean values of spectrum.
     41  SpectrumType* mean_near_spectrum;
     42  // `mean_near_spectrum` initialization indicator.
     43  int near_spectrum_initialized;
     44 
     45  int spectrum_size;
     46 
     47  // Binary spectrum based delay estimator
     48  BinaryDelayEstimator* binary_handle;
     49 } DelayEstimator;
     50 
     51 }  // namespace webrtc
     52 
     53 #endif  // MODULES_AUDIO_PROCESSING_UTILITY_DELAY_ESTIMATOR_INTERNAL_H_