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 #ifndef WEBRTC_TEST_FRAME_GENERATOR_H_ | 10 #ifndef WEBRTC_TEST_FRAME_GENERATOR_H_ |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // and then this will be repeated with the next file from the input set. | 82 // and then this will be repeated with the next file from the input set. |
83 static std::unique_ptr<FrameGenerator> CreateScrollingInputFromYuvFiles( | 83 static std::unique_ptr<FrameGenerator> CreateScrollingInputFromYuvFiles( |
84 Clock* clock, | 84 Clock* clock, |
85 std::vector<std::string> filenames, | 85 std::vector<std::string> filenames, |
86 size_t source_width, | 86 size_t source_width, |
87 size_t source_height, | 87 size_t source_height, |
88 size_t target_width, | 88 size_t target_width, |
89 size_t target_height, | 89 size_t target_height, |
90 int64_t scroll_time_ms, | 90 int64_t scroll_time_ms, |
91 int64_t pause_time_ms); | 91 int64_t pause_time_ms); |
| 92 |
| 93 // Creates a frame generator that produces randomly generated slides. |
| 94 // frame_repeat_count determines how many times each slide is shown. |
| 95 static std::unique_ptr<FrameGenerator> CreateSlideGenerator( |
| 96 int width, int height, int frame_repeat_count); |
92 }; | 97 }; |
93 } // namespace test | 98 } // namespace test |
94 } // namespace webrtc | 99 } // namespace webrtc |
95 | 100 |
96 #endif // WEBRTC_TEST_FRAME_GENERATOR_H_ | 101 #endif // WEBRTC_TEST_FRAME_GENERATOR_H_ |
OLD | NEW |