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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/plot_webrtc_test_logs.py

Issue 2709613005: Add QP statistics to VideoProcessorIntegrationTest. (Closed)
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/stats.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 """Plots statistics from WebRTC integration test logs. 9 """Plots statistics from WebRTC integration test logs.
10 10
(...skipping 16 matching lines...) Expand all
27 HEIGHT = ('Height', 'height') 27 HEIGHT = ('Height', 'height')
28 FILENAME = ('Filename', 'clip') 28 FILENAME = ('Filename', 'clip')
29 CODEC_TYPE = ('Codec type', 'Codec') 29 CODEC_TYPE = ('Codec type', 'Codec')
30 ENCODER_IMPLEMENTATION_NAME = ('Encoder implementation name', 'enc name') 30 ENCODER_IMPLEMENTATION_NAME = ('Encoder implementation name', 'enc name')
31 DECODER_IMPLEMENTATION_NAME = ('Decoder implementation name', 'dec name') 31 DECODER_IMPLEMENTATION_NAME = ('Decoder implementation name', 'dec name')
32 NUM_FRAMES = ('Total # of frames', 'num frames') 32 NUM_FRAMES = ('Total # of frames', 'num frames')
33 CORES = ('#CPU cores used', 'CPU cores used') 33 CORES = ('#CPU cores used', 'CPU cores used')
34 DENOISING = ('Denoising', 'denoising') 34 DENOISING = ('Denoising', 'denoising')
35 RESILIENCE = ('Resilience', 'resilience') 35 RESILIENCE = ('Resilience', 'resilience')
36 ERROR_CONCEALMENT = ('Error concealment', 'error concealment') 36 ERROR_CONCEALMENT = ('Error concealment', 'error concealment')
37 QP = ('Average QP', 'avg QP')
37 PSNR = ('PSNR avg', 'PSNR (dB)') 38 PSNR = ('PSNR avg', 'PSNR (dB)')
38 SSIM = ('SSIM avg', 'SSIM') 39 SSIM = ('SSIM avg', 'SSIM')
39 ENC_BITRATE = ('Encoding bitrate', 'encoded bitrate (kbps)') 40 ENC_BITRATE = ('Encoding bitrate', 'encoded bitrate (kbps)')
40 FRAMERATE = ('Frame rate', 'fps') 41 FRAMERATE = ('Frame rate', 'fps')
41 NUM_DROPPED_FRAMES = ('Number of dropped frames', 'num dropped frames') 42 NUM_DROPPED_FRAMES = ('Number of dropped frames', 'num dropped frames')
42 NUM_FRAMES_TO_TARGET = ('Number of frames to approach target rate', 43 NUM_FRAMES_TO_TARGET = ('Number of frames to approach target rate',
43 'frames to reach target rate') 44 'frames to reach target rate')
44 ENCODE_TIME = ('Encoding time', 'encode time (us)') 45 ENCODE_TIME = ('Encoding time', 'encode time (us)')
45 ENCODE_TIME_AVG = ('Encoding time', 'encode time (us) avg') 46 ENCODE_TIME_AVG = ('Encoding time', 'encode time (us) avg')
46 DECODE_TIME = ('Decoding time', 'decode time (us)') 47 DECODE_TIME = ('Decoding time', 'decode time (us)')
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 82
82 # Results. 83 # Results.
83 RESULTS = [ 84 RESULTS = [
84 PSNR, 85 PSNR,
85 SSIM, 86 SSIM,
86 ENC_BITRATE, 87 ENC_BITRATE,
87 NUM_DROPPED_FRAMES, 88 NUM_DROPPED_FRAMES,
88 NUM_FRAMES_TO_TARGET, 89 NUM_FRAMES_TO_TARGET,
89 ENCODE_TIME_AVG, 90 ENCODE_TIME_AVG,
90 DECODE_TIME_AVG, 91 DECODE_TIME_AVG,
92 QP,
91 AVG_KEY_FRAME_SIZE, 93 AVG_KEY_FRAME_SIZE,
92 AVG_NON_KEY_FRAME_SIZE, 94 AVG_NON_KEY_FRAME_SIZE,
93 ] 95 ]
94 96
95 METRICS_TO_PARSE = SETTINGS + SUBPLOT_SETTINGS + RESULTS 97 METRICS_TO_PARSE = SETTINGS + SUBPLOT_SETTINGS + RESULTS
96 98
97 Y_METRICS = [res[1] for res in RESULTS] 99 Y_METRICS = [res[1] for res in RESULTS]
98 100
99 # Parameters for plotting. 101 # Parameters for plotting.
100 FIG_SIZE_SCALE_FACTOR_X = 2 102 FIG_SIZE_SCALE_FACTOR_X = 2
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 figsize[1] *= FIG_SIZE_SCALE_FACTOR_Y 430 figsize[1] *= FIG_SIZE_SCALE_FACTOR_Y
429 plt.rcParams["figure.figsize"] = figsize 431 plt.rcParams["figure.figsize"] = figsize
430 432
431 PlotFigure(sub_keys, y_metrics, x_metric, metrics, GetTitle(filename)) 433 PlotFigure(sub_keys, y_metrics, x_metric, metrics, GetTitle(filename))
432 434
433 plt.show() 435 plt.show()
434 436
435 437
436 if __name__ == '__main__': 438 if __name__ == '__main__':
437 main() 439 main()
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/stats.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698