#include "modules/audio_processing/aec3/multi_channel_content_detector.h"
#include <cmath>
#include "rtc_base/checks.h"
#include "system_wrappers/include/metrics.h"
namespace webrtc {
namespace {
constexpr int kNumFramesPerSecond = …;
bool HasStereoContent(const std::vector<std::vector<std::vector<float>>>& frame,
float detection_threshold) { … }
constexpr int kMinNumberOfFramesRequiredToLogMetrics = …;
constexpr int kFramesPer10Seconds = …;
}
MultiChannelContentDetector::MetricsLogger::MetricsLogger() { … }
MultiChannelContentDetector::MetricsLogger::~MetricsLogger() { … }
void MultiChannelContentDetector::MetricsLogger::Update(
bool persistent_multichannel_content_detected) { … }
MultiChannelContentDetector::MultiChannelContentDetector(
bool detect_stereo_content,
int num_render_input_channels,
float detection_threshold,
int stereo_detection_timeout_threshold_seconds,
float stereo_detection_hysteresis_seconds)
: … { … }
bool MultiChannelContentDetector::UpdateDetection(
const std::vector<std::vector<std::vector<float>>>& frame) { … }
}