Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: webrtc/sdk/objc/Framework/Headers/WebRTC/RTCVideoFrame.h

Issue 2700113003: Add RTCVideoFrame init function from CVPixelBufferRef (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 @property(nonatomic, readonly) int strideY; 34 @property(nonatomic, readonly) int strideY;
35 @property(nonatomic, readonly) int strideU; 35 @property(nonatomic, readonly) int strideU;
36 @property(nonatomic, readonly) int strideV; 36 @property(nonatomic, readonly) int strideV;
37 37
38 /** Timestamp in nanoseconds. */ 38 /** Timestamp in nanoseconds. */
39 @property(nonatomic, readonly) int64_t timeStampNs; 39 @property(nonatomic, readonly) int64_t timeStampNs;
40 40
41 /** The native handle should be a pixel buffer on iOS. */ 41 /** The native handle should be a pixel buffer on iOS. */
42 @property(nonatomic, readonly) CVPixelBufferRef nativeHandle; 42 @property(nonatomic, readonly) CVPixelBufferRef nativeHandle;
43 43
44 - (instancetype)init NS_UNAVAILABLE; 44 - (instancetype)init NS_UNAVAILABLE;
daniela-webrtc 2017/02/20 12:10:31 Super nit: I know that this is not part of the CL,
magjed_webrtc 2017/02/20 16:59:03 Done.
45 45
46 /** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp.
47 */
48 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
49 rotation:(int)rotation
50 timeStampNs:(int64_t)timeStampNs;
51
52 /** Initialize an RTCVideoFrame from a pixel buffer combined with cropping and
53 * scaling. Cropping will be applied first on the pixel buffer, followed by
54 * scaling to the final resolution of scaledWidth x scaledHeight.
55 */
56 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
57 scaledWidth:(int)scaledWidth
58 scaledHeight:(int)scaledHeight
59 cropWidth:(int)cropWidth
60 cropHeight:(int)cropHeight
61 cropX:(int)cropX
62 cropY:(int)cropY
63 rotation:(int)rotation
64 timeStampNs:(int64_t)timeStampNs;
65
46 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access 66 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access
47 * the YUV data on it. 67 * the YUV data on it.
48 */ 68 */
49 - (RTCVideoFrame*)convertToI420; 69 - (RTCVideoFrame*)convertToI420;
50 70
51 @end 71 @end
52 72
53 NS_ASSUME_NONNULL_END 73 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/RTCVideoFrame.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698