| 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 |
| 11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor.h" | 11 #include "webrtc/modules/video_coding/codecs/test/videoprocessor.h" |
| 12 | 12 |
| 13 #include <string.h> | 13 #include <string.h> |
| 14 | 14 |
| 15 #include <limits> | 15 #include <limits> |
| 16 #include <memory> | 16 #include <memory> |
| 17 #include <utility> | 17 #include <utility> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #include "webrtc/api/video/i420_buffer.h" | 20 #include "webrtc/api/video/i420_buffer.h" |
| 21 #include "webrtc/base/checks.h" | 21 #include "webrtc/base/checks.h" |
| 22 #include "webrtc/base/timeutils.h" | 22 #include "webrtc/base/timeutils.h" |
| 23 #include "webrtc/common_types.h" | 23 #include "webrtc/common_types.h" |
| 24 #include "webrtc/modules/video_coding/include/video_codec_initializer.h" | 24 #include "webrtc/modules/video_coding/include/video_codec_initializer.h" |
| 25 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" |
| 25 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" | 26 #include "webrtc/modules/video_coding/utility/default_video_bitrate_allocator.h" |
| 26 #include "webrtc/modules/video_coding/utility/simulcast_rate_allocator.h" | |
| 27 #include "webrtc/system_wrappers/include/cpu_info.h" | 27 #include "webrtc/system_wrappers/include/cpu_info.h" |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 namespace test { | 30 namespace test { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 // TODO(brandtr): Update this to use the real frame rate. | 34 // TODO(brandtr): Update this to use the real frame rate. |
| 35 const int k90khzTimestampFrameDiff = 3000; // Assuming 30 fps. | 35 const int k90khzTimestampFrameDiff = 3000; // Assuming 30 fps. |
| 36 | 36 |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 if (decoded_frame_writer_) { | 493 if (decoded_frame_writer_) { |
| 494 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); | 494 RTC_DCHECK_EQ(extracted_length, decoded_frame_writer_->FrameLength()); |
| 495 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); | 495 RTC_CHECK(decoded_frame_writer_->WriteFrame(extracted_buffer.data())); |
| 496 } | 496 } |
| 497 | 497 |
| 498 last_decoded_frame_buffer_ = std::move(extracted_buffer); | 498 last_decoded_frame_buffer_ = std::move(extracted_buffer); |
| 499 } | 499 } |
| 500 | 500 |
| 501 } // namespace test | 501 } // namespace test |
| 502 } // namespace webrtc | 502 } // namespace webrtc |
| OLD | NEW |