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); |
48 | 49 |
49 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, | 50 void AddOrUpdateSink(rtc::VideoSinkInterface<VideoFrame>* sink, |
50 const rtc::VideoSinkWants& wants) override; | 51 const rtc::VideoSinkWants& wants) override; |
51 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override; | 52 void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink) override; |
52 | 53 |
53 void ForceFrame(); | 54 void ForceFrame(); |
54 void SetFakeRotation(VideoRotation rotation); | 55 void SetFakeRotation(VideoRotation rotation); |
55 | 56 |
56 int64_t first_frame_capture_time() const { return first_frame_capture_time_; } | 57 int64_t first_frame_capture_time() const { return first_frame_capture_time_; } |
57 | 58 |
(...skipping 17 matching lines...) Expand all Loading... |
75 | 76 |
76 int target_fps_; | 77 int target_fps_; |
77 VideoRotation fake_rotation_ = kVideoRotation_0; | 78 VideoRotation fake_rotation_ = kVideoRotation_0; |
78 | 79 |
79 int64_t first_frame_capture_time_; | 80 int64_t first_frame_capture_time_; |
80 }; | 81 }; |
81 } // test | 82 } // test |
82 } // webrtc | 83 } // webrtc |
83 | 84 |
84 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ | 85 #endif // WEBRTC_TEST_FRAME_GENERATOR_CAPTURER_H_ |
OLD | NEW |