#include "test/pc/e2e/analyzer/video/example_video_quality_analyzer.h"
#include "api/array_view.h"
#include "rtc_base/logging.h"
namespace webrtc {
ExampleVideoQualityAnalyzer::ExampleVideoQualityAnalyzer() = default;
ExampleVideoQualityAnalyzer::~ExampleVideoQualityAnalyzer() = default;
void ExampleVideoQualityAnalyzer::Start(
std::string test_case_name,
rtc::ArrayView<const std::string> peer_names,
int max_threads_count) { … }
uint16_t ExampleVideoQualityAnalyzer::OnFrameCaptured(
absl::string_view peer_name,
const std::string& stream_label,
const webrtc::VideoFrame& frame) { … }
void ExampleVideoQualityAnalyzer::OnFramePreEncode(
absl::string_view peer_name,
const webrtc::VideoFrame& frame) { … }
void ExampleVideoQualityAnalyzer::OnFrameEncoded(
absl::string_view peer_name,
uint16_t frame_id,
const webrtc::EncodedImage& encoded_image,
const EncoderStats& stats,
bool discarded) { … }
void ExampleVideoQualityAnalyzer::OnFrameDropped(
absl::string_view peer_name,
webrtc::EncodedImageCallback::DropReason reason) { … }
void ExampleVideoQualityAnalyzer::OnFramePreDecode(
absl::string_view peer_name,
uint16_t frame_id,
const webrtc::EncodedImage& encoded_image) { … }
void ExampleVideoQualityAnalyzer::OnFrameDecoded(
absl::string_view peer_name,
const webrtc::VideoFrame& frame,
const DecoderStats& stats) { … }
void ExampleVideoQualityAnalyzer::OnFrameRendered(
absl::string_view peer_name,
const webrtc::VideoFrame& frame) { … }
void ExampleVideoQualityAnalyzer::OnEncoderError(
absl::string_view peer_name,
const webrtc::VideoFrame& frame,
int32_t error_code) { … }
void ExampleVideoQualityAnalyzer::OnDecoderError(absl::string_view peer_name,
uint16_t frame_id,
int32_t error_code,
const DecoderStats& stats) { … }
void ExampleVideoQualityAnalyzer::Stop() { … }
std::string ExampleVideoQualityAnalyzer::GetStreamLabel(uint16_t frame_id) { … }
std::string ExampleVideoQualityAnalyzer::GetSenderPeerName(
uint16_t frame_id) const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_captured() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_pre_encoded() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_encoded() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_received() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_decoded() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_rendered() const { … }
uint64_t ExampleVideoQualityAnalyzer::frames_dropped() const { … }
}