Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 168 CaptureState capture_state() const { | 168 CaptureState capture_state() const { |
| 169 return capture_state_; | 169 return capture_state_; |
| 170 } | 170 } |
| 171 | 171 |
| 172 virtual bool apply_rotation() { return apply_rotation_; } | 172 virtual bool apply_rotation() { return apply_rotation_; } |
| 173 | 173 |
| 174 // Returns true if the capturer is screencasting. This can be used to | 174 // Returns true if the capturer is screencasting. This can be used to |
| 175 // implement screencast specific behavior. | 175 // implement screencast specific behavior. |
| 176 virtual bool IsScreencast() const = 0; | 176 virtual bool IsScreencast() const = 0; |
| 177 | 177 |
| 178 // Returns denoising preference. Unset means use encoder-specific default. | |
|
perkj_webrtc
2016/09/14 13:08:27
This should not have anything todo with an encoder
nisse-webrtc
2016/09/14 13:20:23
Behavior if unset depends on the encoder. I think
perkj_webrtc
2016/09/14 13:28:22
Can you elaborate on this. To me- the whole thing
| |
| 179 virtual rtc::Optional<bool> NeedsDenoising() const { | |
|
perkj_webrtc
2016/09/14 13:08:27
Also - I think this api should be identical to IsS
nisse-webrtc
2016/09/14 13:20:23
I'm afraid it has to be three-state, it's passed o
perkj_webrtc
2016/09/14 13:28:22
Acknowledged.
| |
| 180 return rtc::Optional<bool>(); | |
| 181 } | |
| 182 | |
| 178 // Caps the VideoCapturer's format according to max_format. It can e.g. be | 183 // Caps the VideoCapturer's format according to max_format. It can e.g. be |
| 179 // used to prevent cameras from capturing at a resolution or framerate that | 184 // used to prevent cameras from capturing at a resolution or framerate that |
| 180 // the capturer is capable of but not performing satisfactorily at. | 185 // the capturer is capable of but not performing satisfactorily at. |
| 181 // The capping is an upper bound for each component of the capturing format. | 186 // The capping is an upper bound for each component of the capturing format. |
| 182 // The fourcc component is ignored. | 187 // The fourcc component is ignored. |
| 183 void ConstrainSupportedFormats(const VideoFormat& max_format); | 188 void ConstrainSupportedFormats(const VideoFormat& max_format); |
| 184 | 189 |
| 185 void set_enable_camera_list(bool enable_camera_list) { | 190 void set_enable_camera_list(bool enable_camera_list) { |
| 186 enable_camera_list_ = enable_camera_list; | 191 enable_camera_list_ = enable_camera_list; |
| 187 } | 192 } |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 bool apply_rotation_; | 332 bool apply_rotation_; |
| 328 | 333 |
| 329 // State for the timestamp translation. | 334 // State for the timestamp translation. |
| 330 rtc::TimestampAligner timestamp_aligner_; | 335 rtc::TimestampAligner timestamp_aligner_; |
| 331 RTC_DISALLOW_COPY_AND_ASSIGN(VideoCapturer); | 336 RTC_DISALLOW_COPY_AND_ASSIGN(VideoCapturer); |
| 332 }; | 337 }; |
| 333 | 338 |
| 334 } // namespace cricket | 339 } // namespace cricket |
| 335 | 340 |
| 336 #endif // WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_ | 341 #endif // WEBRTC_MEDIA_BASE_VIDEOCAPTURER_H_ |
| OLD | NEW |