chromium/third_party/webrtc/video/video_quality_observer2.cc

/*
 *  Copyright (c) 2020 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 "video/video_quality_observer2.h"

#include <algorithm>
#include <cmath>
#include <cstdint>
#include <string>

#include "rtc_base/logging.h"
#include "rtc_base/strings/string_builder.h"
#include "system_wrappers/include/metrics.h"
#include "video/video_receive_stream2.h"

namespace webrtc {
namespace internal {
const uint32_t VideoQualityObserver::kMinFrameSamplesToDetectFreeze =;
const uint32_t VideoQualityObserver::kMinIncreaseForFreezeMs =;
const uint32_t VideoQualityObserver::kAvgInterframeDelaysWindowSizeFrames =;

namespace {
constexpr int kMinVideoDurationMs =;
constexpr int kMinRequiredSamples =;
constexpr int kPixelsInHighResolution =;  // CPU-adapted HD still counts.
constexpr int kPixelsInMediumResolution =;
constexpr int kBlockyQpThresholdVp8 =;
constexpr int kBlockyQpThresholdVp9 =;
constexpr int kMaxNumCachedBlockyFrames =;
// TODO(ilnik): Add H264/HEVC thresholds.
}  // namespace

VideoQualityObserver::VideoQualityObserver()
    :{}

void VideoQualityObserver::UpdateHistograms(bool screenshare) {}

void VideoQualityObserver::OnRenderedFrame(
    const VideoFrameMetaData& frame_meta) {}

void VideoQualityObserver::OnDecodedFrame(uint32_t rtp_frame_timestamp,
                                          absl::optional<uint8_t> qp,
                                          VideoCodecType codec) {}

void VideoQualityObserver::OnStreamInactive() {}

uint32_t VideoQualityObserver::NumFreezes() const {}

uint32_t VideoQualityObserver::NumPauses() const {}

uint32_t VideoQualityObserver::TotalFreezesDurationMs() const {}

uint32_t VideoQualityObserver::TotalPausesDurationMs() const {}

uint32_t VideoQualityObserver::TotalFramesDurationMs() const {}

double VideoQualityObserver::SumSquaredFrameDurationsSec() const {}

}  // namespace internal
}  // namespace webrtc