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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h

Issue 2890223002: Update plot_webrtc_test_logs.py: (Closed)
Patch Set: Created 3 years, 7 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 | « webrtc/modules/video_coding/codecs/test/videoprocessor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 const RateControlThresholds& rc_expected) { 424 const RateControlThresholds& rc_expected) {
425 int num_dropped_frames = processor_->NumberDroppedFrames(); 425 int num_dropped_frames = processor_->NumberDroppedFrames();
426 int num_resize_actions = processor_->NumberSpatialResizes(); 426 int num_resize_actions = processor_->NumberSpatialResizes();
427 printf( 427 printf(
428 "For update #: %d,\n" 428 "For update #: %d,\n"
429 " Target Bitrate: %d,\n" 429 " Target Bitrate: %d,\n"
430 " Encoding bitrate: %f,\n" 430 " Encoding bitrate: %f,\n"
431 " Frame rate: %d \n", 431 " Frame rate: %d \n",
432 update_index, bit_rate_, encoding_bitrate_total_, frame_rate_); 432 update_index, bit_rate_, encoding_bitrate_total_, frame_rate_);
433 printf( 433 printf(
434 " Number of processed frames: %d, \n"
434 " Number of frames to approach target rate: %d, \n" 435 " Number of frames to approach target rate: %d, \n"
435 " Number of dropped frames: %d, \n" 436 " Number of dropped frames: %d, \n"
436 " Number of spatial resizes: %d, \n", 437 " Number of spatial resizes: %d, \n",
437 num_frames_to_hit_target_, num_dropped_frames, num_resize_actions); 438 num_frames_total_, num_frames_to_hit_target_, num_dropped_frames,
439 num_resize_actions);
438 EXPECT_LE(perc_encoding_rate_mismatch_, 440 EXPECT_LE(perc_encoding_rate_mismatch_,
439 rc_expected.max_encoding_rate_mismatch); 441 rc_expected.max_encoding_rate_mismatch);
440 if (num_key_frames_ > 0) { 442 if (num_key_frames_ > 0) {
441 int perc_key_frame_size_mismatch = 443 int perc_key_frame_size_mismatch =
442 100 * sum_key_frame_size_mismatch_ / num_key_frames_; 444 100 * sum_key_frame_size_mismatch_ / num_key_frames_;
443 printf( 445 printf(
444 " Number of Key frames: %d \n" 446 " Number of Key frames: %d \n"
445 " Key frame rate mismatch: %d \n", 447 " Key frame rate mismatch: %d \n",
446 num_key_frames_, perc_key_frame_size_mismatch); 448 num_key_frames_, perc_key_frame_size_mismatch);
447 EXPECT_LE(perc_key_frame_size_mismatch, 449 EXPECT_LE(perc_key_frame_size_mismatch,
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 819
818 // Codec and network settings. 820 // Codec and network settings.
819 float packet_loss_probability_; 821 float packet_loss_probability_;
820 int num_temporal_layers_; 822 int num_temporal_layers_;
821 }; 823 };
822 824
823 } // namespace test 825 } // namespace test
824 } // namespace webrtc 826 } // namespace webrtc
825 827
826 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES T_H_ 828 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_INTEGRATIONTES T_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698