| 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() | |
| 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 | |
| 117 TestConfig::~TestConfig() {} | |
| 118 | |
| 119 VideoProcessorImpl::VideoProcessorImpl(webrtc::VideoEncoder* encoder, | 102 VideoProcessorImpl::VideoProcessorImpl(webrtc::VideoEncoder* encoder, |
| 120 webrtc::VideoDecoder* decoder, | 103 webrtc::VideoDecoder* decoder, |
| 121 FrameReader* analysis_frame_reader, | 104 FrameReader* analysis_frame_reader, |
| 122 FrameWriter* analysis_frame_writer, | 105 FrameWriter* analysis_frame_writer, |
| 123 PacketManipulator* packet_manipulator, | 106 PacketManipulator* packet_manipulator, |
| 124 const TestConfig& config, | 107 const TestConfig& config, |
| 125 Stats* stats, | 108 Stats* stats, |
| 126 FrameWriter* source_frame_writer, | 109 FrameWriter* source_frame_writer, |
| 127 IvfFileWriter* encoded_frame_writer, | 110 IvfFileWriter* encoded_frame_writer, |
| 128 FrameWriter* decoded_frame_writer) | 111 FrameWriter* decoded_frame_writer) |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 if (decoded_frame_writer_) { | 482 if (decoded_frame_writer_) { |
| 500 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); | 483 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); |
| 501 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); | 484 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); |
| 502 } | 485 } |
| 503 | 486 |
| 504 last_decoded_frame_buffer_ = std::move(extracted_buffer); | 487 last_decoded_frame_buffer_ = std::move(extracted_buffer); |
| 505 } | 488 } |
| 506 | 489 |
| 507 } // namespace test | 490 } // namespace test |
| 508 } // namespace webrtc | 491 } // namespace webrtc |
| OLD | NEW |