[DVQA] Add support for processing decoder errors correctly

Bug: b/243855428
Change-Id: I3f1a6fab0aecf0586b97076054a7e46f624397a1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/272966
Reviewed-by: Florent Castelli <orphis@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37930}
This commit is contained in:
Artem Titov
2022-08-29 13:56:06 +02:00
committed by WebRTC LUCI CQ
parent 1a43f2c6c5
commit 7d18a5a4c0
11 changed files with 1138 additions and 28 deletions

View File

@ -131,9 +131,14 @@ class VideoQualityAnalyzerInterface
// All available codes are listed in
// modules/video_coding/include/video_error_codes.h
// `peer_name` is name of the peer on which side error acquired.
// TODO(titovartem): remove this method when downstreams are migrated.
virtual void OnDecoderError(absl::string_view peer_name,
uint16_t frame_id,
int32_t error_code) {}
virtual void OnDecoderError(absl::string_view peer_name,
uint16_t frame_id,
int32_t error_code,
const DecoderStats& stats) {}
// Will be called every time new stats reports are available for the
// Peer Connection identified by `pc_label`.
void OnStatsReports(