Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 case kExcludeOnlyFirstKeyFrame: | 92 case kExcludeOnlyFirstKeyFrame: |
| 93 return "ExcludeOnlyFirstKeyFrame"; | 93 return "ExcludeOnlyFirstKeyFrame"; |
| 94 case kExcludeAllKeyFrames: | 94 case kExcludeAllKeyFrames: |
| 95 return "ExcludeAllKeyFrames"; | 95 return "ExcludeAllKeyFrames"; |
| 96 default: | 96 default: |
| 97 RTC_NOTREACHED(); | 97 RTC_NOTREACHED(); |
| 98 return "Unknown"; | 98 return "Unknown"; |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 TestConfig::TestConfig() | 102 TestConfig::TestConfig() {} |
|
brandtr
2017/06/29 09:04:04
Might as well remove ctor and dtor, since this is
åsapersson
2017/06/29 10:32:15
Done.
| |
| 103 : name(""), | |
| 104 description(""), | |
| 105 test_number(0), | |
| 106 input_filename(""), | |
| 107 output_filename(""), | |
| 108 output_dir("out"), | |
| 109 networking_config(), | |
| 110 exclude_frame_types(kExcludeOnlyFirstKeyFrame), | |
| 111 frame_length_in_bytes(0), | |
| 112 use_single_core(false), | |
| 113 keyframe_interval(0), | |
| 114 codec_settings(nullptr), | |
| 115 verbose(true) {} | |
| 116 | 103 |
| 117 TestConfig::~TestConfig() {} | 104 TestConfig::~TestConfig() {} |
| 118 | 105 |
| 119 VideoProcessorImpl::VideoProcessorImpl(webrtc::VideoEncoder* encoder, | 106 VideoProcessorImpl::VideoProcessorImpl(webrtc::VideoEncoder* encoder, |
| 120 webrtc::VideoDecoder* decoder, | 107 webrtc::VideoDecoder* decoder, |
| 121 FrameReader* analysis_frame_reader, | 108 FrameReader* analysis_frame_reader, |
| 122 FrameWriter* analysis_frame_writer, | 109 FrameWriter* analysis_frame_writer, |
| 123 PacketManipulator* packet_manipulator, | 110 PacketManipulator* packet_manipulator, |
| 124 const TestConfig& config, | 111 const TestConfig& config, |
| 125 Stats* stats, | 112 Stats* stats, |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 499 if (decoded_frame_writer_) { | 486 if (decoded_frame_writer_) { |
| 500 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); | 487 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); |
| 501 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); | 488 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); |
| 502 } | 489 } |
| 503 | 490 |
| 504 last_decoded_frame_buffer_ = std::move(extracted_buffer); | 491 last_decoded_frame_buffer_ = std::move(extracted_buffer); |
| 505 } | 492 } |
| 506 | 493 |
| 507 } // namespace test | 494 } // namespace test |
| 508 } // namespace webrtc | 495 } // namespace webrtc |
| OLD | NEW |