| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include "webrtc/test/frame_generator.h" | 10 #include "webrtc/test/frame_generator.h" |
| 11 | 11 |
| 12 #include <math.h> | 12 #include <math.h> |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 | 15 |
| 16 #include <memory> | 16 #include <memory> |
| 17 | 17 |
| 18 #include "webrtc/api/video/i420_buffer.h" | 18 #include "webrtc/api/video/i420_buffer.h" |
| 19 #include "webrtc/base/checks.h" | |
| 20 #include "webrtc/base/keep_ref_until_done.h" | |
| 21 #include "webrtc/base/random.h" | |
| 22 #include "webrtc/common_video/include/video_frame_buffer.h" | 19 #include "webrtc/common_video/include/video_frame_buffer.h" |
| 23 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 21 #include "webrtc/rtc_base/checks.h" |
| 22 #include "webrtc/rtc_base/keep_ref_until_done.h" |
| 23 #include "webrtc/rtc_base/random.h" |
| 24 #include "webrtc/system_wrappers/include/clock.h" | 24 #include "webrtc/system_wrappers/include/clock.h" |
| 25 #include "webrtc/test/frame_utils.h" | 25 #include "webrtc/test/frame_utils.h" |
| 26 | 26 |
| 27 namespace webrtc { | 27 namespace webrtc { |
| 28 namespace test { | 28 namespace test { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 // SquareGenerator is a FrameGenerator that draws 10 randomly sized and colored | 31 // SquareGenerator is a FrameGenerator that draws 10 randomly sized and colored |
| 32 // squares. Between each new generated frame, the squares are moved slightly | 32 // squares. Between each new generated frame, the squares are moved slightly |
| 33 // towards the lower right corner. | 33 // towards the lower right corner. |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 files.push_back(file); | 356 files.push_back(file); |
| 357 } | 357 } |
| 358 | 358 |
| 359 return std::unique_ptr<FrameGenerator>(new ScrollingImageFrameGenerator( | 359 return std::unique_ptr<FrameGenerator>(new ScrollingImageFrameGenerator( |
| 360 clock, files, source_width, source_height, target_width, target_height, | 360 clock, files, source_width, source_height, target_width, target_height, |
| 361 scroll_time_ms, pause_time_ms)); | 361 scroll_time_ms, pause_time_ms)); |
| 362 } | 362 } |
| 363 | 363 |
| 364 } // namespace test | 364 } // namespace test |
| 365 } // namespace webrtc | 365 } // namespace webrtc |
| OLD | NEW |