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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/videoprocessor.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
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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // These (optional) file writers are used for persistently storing the output 291 // These (optional) file writers are used for persistently storing the output
292 // of the coding pipeline at different stages: pre encode (source), post 292 // of the coding pipeline at different stages: pre encode (source), post
293 // encode (encoded), and post decode (decoded). The purpose is to give the 293 // encode (encoded), and post decode (decoded). The purpose is to give the
294 // experimenter an option to subjectively evaluate the quality of the 294 // experimenter an option to subjectively evaluate the quality of the
295 // encoding, given the test settings. Each frame writer is enabled by being 295 // encoding, given the test settings. Each frame writer is enabled by being
296 // non-null. 296 // non-null.
297 FrameWriter* const source_frame_writer_; 297 FrameWriter* const source_frame_writer_;
298 IvfFileWriter* const encoded_frame_writer_; 298 IvfFileWriter* const encoded_frame_writer_;
299 FrameWriter* const decoded_frame_writer_; 299 FrameWriter* const decoded_frame_writer_;
300 300
301 // Multiply frame length with this to get bit rate.
302 const double bit_rate_factor_;
303
301 bool initialized_; 304 bool initialized_;
302 305
303 // Frame metadata for all frames that have been added through a call to 306 // Frame metadata for all frames that have been added through a call to
304 // ProcessFrames(). We need to store this metadata over the course of the 307 // ProcessFrames(). We need to store this metadata over the course of the
305 // test run, to support pipelining HW codecs. 308 // test run, to support pipelining HW codecs.
306 std::vector<FrameInfo> frame_infos_; 309 std::vector<FrameInfo> frame_infos_;
307 int last_encoded_frame_num_; 310 int last_encoded_frame_num_;
308 int last_decoded_frame_num_; 311 int last_decoded_frame_num_;
309 312
310 // Keep track of if we have excluded the first key frame from packet loss. 313 // Keep track of if we have excluded the first key frame from packet loss.
311 bool first_key_frame_has_been_excluded_; 314 bool first_key_frame_has_been_excluded_;
312 315
313 // Keep track of the last successfully decoded frame, since we write that 316 // Keep track of the last successfully decoded frame, since we write that
314 // frame to disk when decoding fails. 317 // frame to disk when decoding fails.
315 rtc::Buffer last_decoded_frame_buffer_; 318 rtc::Buffer last_decoded_frame_buffer_;
316 319
317 // Statistics. 320 // Statistics.
318 Stats* stats_; 321 Stats* stats_;
319 int num_dropped_frames_; 322 int num_dropped_frames_;
320 int num_spatial_resizes_; 323 int num_spatial_resizes_;
321 double bit_rate_factor_; // Multiply frame length with this to get bit rate.
322 }; 324 };
323 325
324 } // namespace test 326 } // namespace test
325 } // namespace webrtc 327 } // namespace webrtc
326 328
327 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_ 329 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEOPROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698