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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const uint8_t *dataU DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]"); | 44 const uint8_t *dataU DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]"); |
45 @property(nonatomic, readonly, nullable) | 45 @property(nonatomic, readonly, nullable) |
46 const uint8_t *dataV DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]"); | 46 const uint8_t *dataV DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]"); |
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. */ | |
55 @property(nonatomic, assign) int32_t timeStamp; | |
56 | |
57 /** The native handle should be a pixel buffer on iOS. */ | 54 /** The native handle should be a pixel buffer on iOS. */ |
58 @property(nonatomic, readonly) | 55 @property(nonatomic, readonly) |
59 CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead")
; | 56 CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead")
; |
60 | 57 |
61 @property(nonatomic, readonly) id<RTCVideoFrameBuffer> buffer; | 58 @property(nonatomic, readonly) id<RTCVideoFrameBuffer> buffer; |
62 | 59 |
63 - (instancetype)init NS_UNAVAILABLE; | 60 - (instancetype)init NS_UNAVAILABLE; |
64 - (instancetype)new NS_UNAVAILABLE; | 61 - (instancetype)new NS_UNAVAILABLE; |
65 | 62 |
66 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp. | 63 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp. |
(...skipping 26 matching lines...) Expand all Loading... |
93 timeStampNs:(int64_t)timeStampNs; | 90 timeStampNs:(int64_t)timeStampNs; |
94 | 91 |
95 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access | 92 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access |
96 * the YUV data on it. | 93 * the YUV data on it. |
97 */ | 94 */ |
98 - (RTCVideoFrame *)newI420VideoFrame; | 95 - (RTCVideoFrame *)newI420VideoFrame; |
99 | 96 |
100 @end | 97 @end |
101 | 98 |
102 NS_ASSUME_NONNULL_END | 99 NS_ASSUME_NONNULL_END |
OLD | NEW |