OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 fourccs->push_back(cricket::FOURCC_MJPG); | 144 fourccs->push_back(cricket::FOURCC_MJPG); |
145 return true; | 145 return true; |
146 } | 146 } |
147 | 147 |
148 void SetRotation(webrtc::VideoRotation rotation) { | 148 void SetRotation(webrtc::VideoRotation rotation) { |
149 rotation_ = rotation; | 149 rotation_ = rotation; |
150 } | 150 } |
151 | 151 |
152 webrtc::VideoRotation GetRotation() { return rotation_; } | 152 webrtc::VideoRotation GetRotation() { return rotation_; } |
153 | 153 |
| 154 // Expose as public, for testing. |
| 155 using VideoCapturer::AdaptFrame; |
| 156 |
154 private: | 157 private: |
155 bool running_; | 158 bool running_; |
156 int64_t initial_timestamp_; | 159 int64_t initial_timestamp_; |
157 int64_t next_timestamp_; | 160 int64_t next_timestamp_; |
158 const bool is_screencast_; | 161 const bool is_screencast_; |
159 webrtc::VideoRotation rotation_; | 162 webrtc::VideoRotation rotation_; |
160 }; | 163 }; |
161 | 164 |
162 } // namespace cricket | 165 } // namespace cricket |
163 | 166 |
164 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ | 167 #endif // WEBRTC_MEDIA_BASE_FAKEVIDEOCAPTURER_H_ |
OLD | NEW |