Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(827)

Unified Diff: webrtc/video/send_statistics_proxy.h

Issue 1264693003: Add QP stats for sent video streams to StatsReport. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add unit tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/send_statistics_proxy.h
diff --git a/webrtc/video/send_statistics_proxy.h b/webrtc/video/send_statistics_proxy.h
index 7209094fe68a70342de60992ea2acc6e4528ef47..53923e58c5d8684989f5144f0db94c7ee9657a38 100644
--- a/webrtc/video/send_statistics_proxy.h
+++ b/webrtc/video/send_statistics_proxy.h
@@ -116,6 +116,13 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver,
int64_t resolution_update_ms;
int64_t bitrate_update_ms;
};
+ struct QpCounters {
+ SampleCounter vp8;
+ };
+ struct QpFilter {
+ QpFilter() : qp(0.97f) {} // Weight factor.
+ rtc::ExpFilter qp;
+ };
void PurgeOldStats() EXCLUSIVE_LOCKS_REQUIRED(crit_);
VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc)
EXCLUSIVE_LOCKS_REQUIRED(crit_);
@@ -144,6 +151,10 @@ class SendStatisticsProxy : public CpuOveruseMetricsObserver,
SampleCounter bw_resolutions_disabled_counter_ GUARDED_BY(crit_);
SampleCounter delay_counter_ GUARDED_BY(crit_);
SampleCounter max_delay_counter_ GUARDED_BY(crit_);
+ // QP counters mapped by SSRC.
+ std::map<uint32_t, QpCounters> qp_counters_ GUARDED_BY(crit_);
+ // QP filter mapped by SSRC.
+ std::map<uint32_t, QpFilter> qp_filters_ GUARDED_BY(crit_);
};
} // namespace webrtc
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698