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/base/checks.h" | 19 #include "webrtc/base/checks.h" |
19 #include "webrtc/base/keep_ref_until_done.h" | 20 #include "webrtc/base/keep_ref_until_done.h" |
| 21 #include "webrtc/common_video/include/video_frame_buffer.h" |
20 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 22 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
21 #include "webrtc/system_wrappers/include/clock.h" | 23 #include "webrtc/system_wrappers/include/clock.h" |
22 #include "webrtc/test/frame_utils.h" | 24 #include "webrtc/test/frame_utils.h" |
23 | 25 |
24 namespace webrtc { | 26 namespace webrtc { |
25 namespace test { | 27 namespace test { |
26 namespace { | 28 namespace { |
27 | 29 |
28 class ChromaGenerator : public FrameGenerator { | 30 class ChromaGenerator : public FrameGenerator { |
29 public: | 31 public: |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 files.push_back(file); | 317 files.push_back(file); |
316 } | 318 } |
317 | 319 |
318 return new ScrollingImageFrameGenerator( | 320 return new ScrollingImageFrameGenerator( |
319 clock, files, source_width, source_height, target_width, target_height, | 321 clock, files, source_width, source_height, target_width, target_height, |
320 scroll_time_ms, pause_time_ms); | 322 scroll_time_ms, pause_time_ms); |
321 } | 323 } |
322 | 324 |
323 } // namespace test | 325 } // namespace test |
324 } // namespace webrtc | 326 } // namespace webrtc |
OLD | NEW |