Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1057)

Side by Side Diff: webrtc/test/frame_generator_capturer.h

Issue 3003193002: Add a new frame generator that cycles through randomly generated slides. (Closed)
Patch Set: Patchset 3C. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CAPTURER_H_ 10 #ifndef WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 static FrameGeneratorCapturer* Create(int width, 43 static FrameGeneratorCapturer* Create(int width,
44 int height, 44 int height,
45 int target_fps, 45 int target_fps,
46 Clock* clock); 46 Clock* clock);
47 47
48 static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name, 48 static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name,
49 size_t width, 49 size_t width,
50 size_t height, 50 size_t height,
51 int target_fps, 51 int target_fps,
52 Clock* clock); 52 Clock* clock);
53
54 static FrameGeneratorCapturer* CreateSlideGenerator(int width,
55 int height,
56 int frame_repeat_count,
57 int target_fps,
58 Clock* clock);
53 virtual ~FrameGeneratorCapturer(); 59 virtual ~FrameGeneratorCapturer();
54 60
55 void Start() override; 61 void Start() override;
56 void Stop() override; 62 void Stop() override;
57 void ChangeResolution(size_t width, size_t height); 63 void ChangeResolution(size_t width, size_t height);
58 64
59 void SetSinkWantsObserver(SinkWantsObserver* observer); 65 void SetSinkWantsObserver(SinkWantsObserver* observer);
60 66
61 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, 67 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink,
62 const rtc::VideoSinkWants& wants) override; 68 const rtc::VideoSinkWants& wants) override;
(...skipping 30 matching lines...) Expand all
93 99
94 int64_t first_frame_capture_time_; 100 int64_t first_frame_capture_time_;
95 // Must be the last field, so it will be deconstructed first as tasks 101 // Must be the last field, so it will be deconstructed first as tasks
96 // in the TaskQueue access other fields of the instance of this class. 102 // in the TaskQueue access other fields of the instance of this class.
97 rtc::TaskQueue task_queue_; 103 rtc::TaskQueue task_queue_;
98 }; 104 };
99 } // namespace test 105 } // namespace test
100 } // namespace webrtc 106 } // namespace webrtc
101 107
102 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ 108 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698