chromium/third_party/webrtc/modules/audio_processing/agc/loudness_histogram.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/agc/loudness_histogram.h"

#include <string.h>

#include <cmath>

#include "rtc_base/checks.h"

namespace webrtc {

static const double kHistBinCenters[] =;

static const double kProbQDomain =;
// Loudness of -15 dB (smallest expected loudness) in log domain,
// loudness_db = 13.5 * log10(rms);
static const double kLogDomainMinBinCenter =;
// Loudness step of 1 dB in log domain
static const double kLogDomainStepSizeInverse =;

static const int kTransientWidthThreshold =;
static const double kLowProbabilityThreshold =;

static const int kLowProbThresholdQ10 =;

LoudnessHistogram::LoudnessHistogram()
    :{}

LoudnessHistogram::LoudnessHistogram(int window_size)
    :{}

LoudnessHistogram::~LoudnessHistogram() {}

void LoudnessHistogram::Update(double rms, double activity_probaility) {}

// Doing nothing if buffer is not full, yet.
void LoudnessHistogram::RemoveOldestEntryAndUpdate() {}

void LoudnessHistogram::RemoveTransient() {}

void LoudnessHistogram::InsertNewestEntryAndUpdate(int activity_prob_q10,
                                                   int hist_index) {}

void LoudnessHistogram::UpdateHist(int activity_prob_q10, int hist_index) {}

double LoudnessHistogram::AudioContent() const {}

LoudnessHistogram* LoudnessHistogram::Create() {}

LoudnessHistogram* LoudnessHistogram::Create(int window_size) {}

void LoudnessHistogram::Reset() {}

int LoudnessHistogram::GetBinIndex(double rms) {}

double LoudnessHistogram::CurrentRms() const {}

}  // namespace webrtc