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_CAPTURER_H_ | 10 #ifndef WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name, | 39 static FrameGeneratorCapturer* CreateFromYuvFile(const std::string& file_name, |
40 size_t width, | 40 size_t width, |
41 size_t height, | 41 size_t height, |
42 int target_fps, | 42 int target_fps, |
43 Clock* clock); | 43 Clock* clock); |
44 virtual ~FrameGeneratorCapturer(); | 44 virtual ~FrameGeneratorCapturer(); |
45 | 45 |
46 void Start() override; | 46 void Start() override; |
47 void Stop() override; | 47 void Stop() override; |
48 void ChangeResolution(size_t width, size_t height); | |
49 | 48 |
50 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, | 49 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, |
51 const rtc::VideoSinkWants& wants) override; | 50 const rtc::VideoSinkWants& wants) override; |
52 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override; | 51 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override; |
53 | 52 |
54 void ForceFrame(); | 53 void ForceFrame(); |
55 void SetFakeRotation(VideoRotation rotation); | 54 void SetFakeRotation(VideoRotation rotation); |
56 | 55 |
57 int64_t first_frame_capture_time() const { return first_frame_capture_time_; } | 56 int64_t first_frame_capture_time() const { return first_frame_capture_time_; } |
58 | 57 |
(...skipping 17 matching lines...) Expand all Loading... |
76 | 75 |
77 int target_fps_; | 76 int target_fps_; |
78 VideoRotation fake_rotation_ = kVideoRotation_0; | 77 VideoRotation fake_rotation_ = kVideoRotation_0; |
79 | 78 |
80 int64_t first_frame_capture_time_; | 79 int64_t first_frame_capture_time_; |
81 }; | 80 }; |
82 } // test | 81 } // test |
83 } // webrtc | 82 } // webrtc |
84 | 83 |
85 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 84 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
OLD | NEW |