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

Unified Diff: webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py

Issue 2688863002: Add possibility to plot statistics from integration tests per codec type/implementation. (Closed)
Patch Set: Created 3 years, 10 months 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/test/plot_videoprocessor_integrationtest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py
diff --git a/webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py b/webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py
index 85f7afb1e56d71a0c0c88ce895a34168683d8be2..46b50ebc8b470ef902e28e6ed141504910444baf 100755
--- a/webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py
+++ b/webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py
@@ -56,10 +56,7 @@ SETTINGS = [
WIDTH,
HEIGHT,
FILENAME,
- CODEC_TYPE,
NUM_FRAMES,
- ENCODER_IMPLEMENTATION_NAME,
- DECODER_IMPLEMENTATION_NAME,
ENCODE_TIME,
DECODE_TIME,
FRAME_SIZE,
@@ -75,6 +72,13 @@ X_SETTINGS = [
BITRATE, # TODO(asapersson): Needs to be last.
]
+# Settings, options for subplots.
+SUBPLOT_SETTINGS = [
+ CODEC_TYPE,
+ ENCODER_IMPLEMENTATION_NAME,
+ DECODER_IMPLEMENTATION_NAME,
+] + X_SETTINGS
+
# Results.
RESULTS = [
PSNR,
@@ -88,7 +92,7 @@ RESULTS = [
AVG_NON_KEY_FRAME_SIZE,
]
-METRICS_TO_PARSE = SETTINGS + X_SETTINGS + RESULTS
+METRICS_TO_PARSE = SETTINGS + SUBPLOT_SETTINGS + RESULTS
Y_METRICS = [res[1] for res in RESULTS]
@@ -393,8 +397,9 @@ def main():
resolutions = ParseSetting(filename, WIDTH[1])
idx = GetIdx("Select metric for x-axis:\n%s" % ToString(X_SETTINGS))
if X_SETTINGS[idx] == BITRATE:
- idx = GetIdx("Plot per:\n%s" % ToStringWithoutMetric(X_SETTINGS, BITRATE))
- idx_setting = METRICS_TO_PARSE.index(X_SETTINGS[idx])
+ idx = GetIdx("Plot per:\n%s" % ToStringWithoutMetric(SUBPLOT_SETTINGS,
+ BITRATE))
+ idx_setting = METRICS_TO_PARSE.index(SUBPLOT_SETTINGS[idx])
# Plot one metric. One subplot for each resolution.
# Per subplot: metric vs bitrate (per setting).
setting1 = WIDTH[1]
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/plot_videoprocessor_integrationtest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698