OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 @property(nonatomic, readonly) int strideY DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); | 47 @property(nonatomic, readonly) int strideY DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); |
48 @property(nonatomic, readonly) int strideU DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); | 48 @property(nonatomic, readonly) int strideU DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); |
49 @property(nonatomic, readonly) int strideV DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); | 49 @property(nonatomic, readonly) int strideV DEPRECATED_MSG_ATTRIBUTE("use [buffer
toI420]"); |
50 | 50 |
51 /** Timestamp in nanoseconds. */ | 51 /** Timestamp in nanoseconds. */ |
52 @property(nonatomic, readonly) int64_t timeStampNs; | 52 @property(nonatomic, readonly) int64_t timeStampNs; |
53 | 53 |
54 /** Timestamp 90 kHz. */ | 54 /** Timestamp 90 kHz. */ |
55 @property(nonatomic, assign) int32_t timeStamp; | 55 @property(nonatomic, assign) int32_t timeStamp; |
56 | 56 |
57 /** The native handle should be a pixel buffer on iOS. */ | |
58 @property(nonatomic, readonly) | |
59 CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead")
; | |
60 | |
61 @property(nonatomic, readonly) id<RTCVideoFrameBuffer> buffer; | 57 @property(nonatomic, readonly) id<RTCVideoFrameBuffer> buffer; |
62 | 58 |
63 - (instancetype)init NS_UNAVAILABLE; | 59 - (instancetype)init NS_UNAVAILABLE; |
64 - (instancetype)new NS_UNAVAILABLE; | 60 - (instancetype)new NS_UNAVAILABLE; |
65 | 61 |
66 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp. | 62 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp. |
67 * Deprecated - initialize with a RTCCVPixelBuffer instead | 63 * Deprecated - initialize with a RTCCVPixelBuffer instead |
68 */ | 64 */ |
69 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer | 65 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer |
70 rotation:(RTCVideoRotation)rotation | 66 rotation:(RTCVideoRotation)rotation |
(...skipping 22 matching lines...) Expand all Loading... |
93 timeStampNs:(int64_t)timeStampNs; | 89 timeStampNs:(int64_t)timeStampNs; |
94 | 90 |
95 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access | 91 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access |
96 * the YUV data on it. | 92 * the YUV data on it. |
97 */ | 93 */ |
98 - (RTCVideoFrame *)newI420VideoFrame; | 94 - (RTCVideoFrame *)newI420VideoFrame; |
99 | 95 |
100 @end | 96 @end |
101 | 97 |
102 NS_ASSUME_NONNULL_END | 98 NS_ASSUME_NONNULL_END |
OLD | NEW |