[DVQA] Return a copy of the frames counters.
Return a copy of the frames counters to be able to get DVQA stats while it is running. Bug: b/213863770 Change-Id: I04755117cf363e1f160caa11dbe52fb30324fdf5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/259867 Reviewed-by: Andrey Logvin <landrey@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36638}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
a30aef3dea
commit
c66d45a809
@ -711,7 +711,7 @@ VideoStreamsInfo DefaultVideoQualityAnalyzer::GetKnownStreams() const {
|
|||||||
std::move(stream_to_receivers));
|
std::move(stream_to_receivers));
|
||||||
}
|
}
|
||||||
|
|
||||||
const FrameCounters& DefaultVideoQualityAnalyzer::GetGlobalCounters() const {
|
FrameCounters DefaultVideoQualityAnalyzer::GetGlobalCounters() const {
|
||||||
MutexLock lock(&mutex_);
|
MutexLock lock(&mutex_);
|
||||||
return frame_counters_;
|
return frame_counters_;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ class DefaultVideoQualityAnalyzer : public VideoQualityAnalyzerInterface {
|
|||||||
// Returns set of stream labels, that were met during test call.
|
// Returns set of stream labels, that were met during test call.
|
||||||
std::set<StatsKey> GetKnownVideoStreams() const;
|
std::set<StatsKey> GetKnownVideoStreams() const;
|
||||||
VideoStreamsInfo GetKnownStreams() const;
|
VideoStreamsInfo GetKnownStreams() const;
|
||||||
const FrameCounters& GetGlobalCounters() const;
|
FrameCounters GetGlobalCounters() const;
|
||||||
// Returns frame counter per stream label. Valid stream labels can be obtained
|
// Returns frame counter per stream label. Valid stream labels can be obtained
|
||||||
// by calling GetKnownVideoStreams()
|
// by calling GetKnownVideoStreams()
|
||||||
std::map<StatsKey, FrameCounters> GetPerStreamCounters() const;
|
std::map<StatsKey, FrameCounters> GetPerStreamCounters() const;
|
||||||
|
Reference in New Issue
Block a user