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