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 "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
18 #include "webrtc/system_wrappers/interface/clock.h" | 18 #include "webrtc/system_wrappers/include/clock.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 namespace test { | 21 namespace test { |
22 namespace { | 22 namespace { |
23 | 23 |
24 class ChromaGenerator : public FrameGenerator { | 24 class ChromaGenerator : public FrameGenerator { |
25 public: | 25 public: |
26 ChromaGenerator(size_t width, size_t height) | 26 ChromaGenerator(size_t width, size_t height) |
27 : angle_(0.0), width_(width), height_(height) { | 27 : angle_(0.0), width_(width), height_(height) { |
28 assert(width > 0); | 28 assert(width > 0); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 files.push_back(file); | 271 files.push_back(file); |
272 } | 272 } |
273 | 273 |
274 return new ScrollingImageFrameGenerator( | 274 return new ScrollingImageFrameGenerator( |
275 clock, files, source_width, source_height, target_width, target_height, | 275 clock, files, source_width, source_height, target_width, target_height, |
276 scroll_time_ms, pause_time_ms); | 276 scroll_time_ms, pause_time_ms); |
277 } | 277 } |
278 | 278 |
279 } // namespace test | 279 } // namespace test |
280 } // namespace webrtc | 280 } // namespace webrtc |
OLD | NEW |