| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 return apply_rotation_; | 72 return apply_rotation_; |
| 73 } | 73 } |
| 74 | 74 |
| 75 virtual void EnableFrameRateCallback(const bool enable); | 75 virtual void EnableFrameRateCallback(const bool enable); |
| 76 virtual void EnableNoPictureAlarm(const bool enable); | 76 virtual void EnableNoPictureAlarm(const bool enable); |
| 77 | 77 |
| 78 virtual const char* CurrentDeviceName() const; | 78 virtual const char* CurrentDeviceName() const; |
| 79 | 79 |
| 80 // Module handling | 80 // Module handling |
| 81 virtual int64_t TimeUntilNextProcess(); | 81 virtual int64_t TimeUntilNextProcess(); |
| 82 virtual void Process(); | 82 virtual int32_t Process(); |
| 83 | 83 |
| 84 // Implement VideoCaptureExternal | 84 // Implement VideoCaptureExternal |
| 85 // |capture_time| must be specified in NTP time format in milliseconds. | 85 // |capture_time| must be specified in NTP time format in milliseconds. |
| 86 virtual int32_t IncomingFrame(uint8_t* videoFrame, | 86 virtual int32_t IncomingFrame(uint8_t* videoFrame, |
| 87 size_t videoFrameLength, | 87 size_t videoFrameLength, |
| 88 const VideoCaptureCapability& frameInfo, | 88 const VideoCaptureCapability& frameInfo, |
| 89 int64_t captureTime = 0); | 89 int64_t captureTime = 0); |
| 90 | 90 |
| 91 // Platform dependent | 91 // Platform dependent |
| 92 virtual int32_t StartCapture(const VideoCaptureCapability& capability) | 92 virtual int32_t StartCapture(const VideoCaptureCapability& capability) |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // capture module. | 133 // capture module. |
| 134 | 134 |
| 135 VideoFrame _captureFrame; | 135 VideoFrame _captureFrame; |
| 136 | 136 |
| 137 // Indicate whether rotation should be applied before delivered externally. | 137 // Indicate whether rotation should be applied before delivered externally. |
| 138 bool apply_rotation_; | 138 bool apply_rotation_; |
| 139 }; | 139 }; |
| 140 } // namespace videocapturemodule | 140 } // namespace videocapturemodule |
| 141 } // namespace webrtc | 141 } // namespace webrtc |
| 142 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ | 142 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_MAIN_SOURCE_VIDEO_CAPTURE_IMPL_H_ |
| OLD | NEW |