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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 @property(nonatomic, readonly) int strideU; | 43 @property(nonatomic, readonly) int strideU; |
44 @property(nonatomic, readonly) int strideV; | 44 @property(nonatomic, readonly) int strideV; |
45 | 45 |
46 /** Timestamp in nanoseconds. */ | 46 /** Timestamp in nanoseconds. */ |
47 @property(nonatomic, readonly) int64_t timeStampNs; | 47 @property(nonatomic, readonly) int64_t timeStampNs; |
48 | 48 |
49 /** The native handle should be a pixel buffer on iOS. */ | 49 /** The native handle should be a pixel buffer on iOS. */ |
50 @property(nonatomic, readonly) CVPixelBufferRef nativeHandle; | 50 @property(nonatomic, readonly) CVPixelBufferRef nativeHandle; |
51 | 51 |
52 - (instancetype)init NS_UNAVAILABLE; | 52 - (instancetype)init NS_UNAVAILABLE; |
53 - (instancetype)new NS_UNAVAILABLE; | |
tkchin_webrtc
2017/02/22 00:01:18
Did you mean + ?
Personally I don't think we need
| |
54 | |
55 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp. | |
56 */ | |
57 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer | |
58 rotation:(RTCVideoRotation)rotation | |
59 timeStampNs:(int64_t)timeStampNs; | |
60 | |
61 /** Initialize an RTCVideoFrame from a pixel buffer combined with cropping and | |
62 * scaling. Cropping will be applied first on the pixel buffer, followed by | |
63 * scaling to the final resolution of scaledWidth x scaledHeight. | |
64 */ | |
65 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer | |
66 scaledWidth:(int)scaledWidth | |
67 scaledHeight:(int)scaledHeight | |
68 cropWidth:(int)cropWidth | |
69 cropHeight:(int)cropHeight | |
70 cropX:(int)cropX | |
71 cropY:(int)cropY | |
72 rotation:(RTCVideoRotation)rotation | |
73 timeStampNs:(int64_t)timeStampNs; | |
53 | 74 |
54 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access | 75 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access |
55 * the YUV data on it. | 76 * the YUV data on it. |
56 */ | 77 */ |
57 - (RTCVideoFrame *)newI420VideoFrame; | 78 - (RTCVideoFrame *)newI420VideoFrame; |
tkchin_webrtc
2017/02/22 00:01:18
there shouldn't be anything prefixed with "new" in
| |
58 | 79 |
59 @end | 80 @end |
60 | 81 |
61 NS_ASSUME_NONNULL_END | 82 NS_ASSUME_NONNULL_END |
OLD | NEW |