| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 enum {kVideoCaptureUniqueNameLength =1024}; //Max unique capture device name len
ght | 25 enum {kVideoCaptureUniqueNameLength =1024}; //Max unique capture device name len
ght |
| 26 enum {kVideoCaptureDeviceNameLength =256}; //Max capture device name lenght | 26 enum {kVideoCaptureDeviceNameLength =256}; //Max capture device name lenght |
| 27 enum {kVideoCaptureProductIdLength =128}; //Max product id length | 27 enum {kVideoCaptureProductIdLength =128}; //Max product id length |
| 28 | 28 |
| 29 struct VideoCaptureCapability | 29 struct VideoCaptureCapability |
| 30 { | 30 { |
| 31 int32_t width; | 31 int32_t width; |
| 32 int32_t height; | 32 int32_t height; |
| 33 int32_t maxFPS; | 33 int32_t maxFPS; |
| 34 int32_t expectedCaptureDelay; | |
| 35 RawVideoType rawType; | 34 RawVideoType rawType; |
| 36 VideoCodecType codecType; | 35 VideoCodecType codecType; |
| 37 bool interlaced; | 36 bool interlaced; |
| 38 | 37 |
| 39 VideoCaptureCapability() | 38 VideoCaptureCapability() |
| 40 { | 39 { |
| 41 width = 0; | 40 width = 0; |
| 42 height = 0; | 41 height = 0; |
| 43 maxFPS = 0; | 42 maxFPS = 0; |
| 44 expectedCaptureDelay = 0; | |
| 45 rawType = kVideoUnknown; | 43 rawType = kVideoUnknown; |
| 46 codecType = kVideoCodecUnknown; | 44 codecType = kVideoCodecUnknown; |
| 47 interlaced = false; | 45 interlaced = false; |
| 48 } | 46 } |
| 49 ; | 47 ; |
| 50 bool operator!=(const VideoCaptureCapability &other) const | 48 bool operator!=(const VideoCaptureCapability &other) const |
| 51 { | 49 { |
| 52 if (width != other.width) | 50 if (width != other.width) |
| 53 return true; | 51 return true; |
| 54 if (height != other.height) | 52 if (height != other.height) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 80 size_t videoFrameLength, | 78 size_t videoFrameLength, |
| 81 const VideoCaptureCapability& frameInfo, | 79 const VideoCaptureCapability& frameInfo, |
| 82 int64_t captureTime = 0) = 0; | 80 int64_t captureTime = 0) = 0; |
| 83 protected: | 81 protected: |
| 84 ~VideoCaptureExternal() {} | 82 ~VideoCaptureExternal() {} |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 } // namespace webrtc | 85 } // namespace webrtc |
| 88 | 86 |
| 89 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEFINES_H_ | 87 #endif // WEBRTC_MODULES_VIDEO_CAPTURE_VIDEO_CAPTURE_DEFINES_H_ |
| OLD | NEW |