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

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

Issue 2997453002: ObjC: Remove RTCVideoFrame I420 functions (Closed)
Patch Set: Created 3 years, 4 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/PeerConnection/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 16 matching lines...) Expand all
27 // RTCVideoFrame is an ObjectiveC version of webrtc::VideoFrame. 27 // RTCVideoFrame is an ObjectiveC version of webrtc::VideoFrame.
28 RTC_EXPORT 28 RTC_EXPORT
29 @interface RTCVideoFrame : NSObject 29 @interface RTCVideoFrame : NSObject
30 30
31 /** Width without rotation applied. */ 31 /** Width without rotation applied. */
32 @property(nonatomic, readonly) int width; 32 @property(nonatomic, readonly) int width;
33 33
34 /** Height without rotation applied. */ 34 /** Height without rotation applied. */
35 @property(nonatomic, readonly) int height; 35 @property(nonatomic, readonly) int height;
36 @property(nonatomic, readonly) RTCVideoRotation rotation; 36 @property(nonatomic, readonly) RTCVideoRotation rotation;
37 /** Accessing YUV data should only be done for I420 frames, i.e. if nativeHandle
38 * is null. It is always possible to get such a frame by calling
39 * newI420VideoFrame.
40 */
41 @property(nonatomic, readonly, nullable)
42 const uint8_t *dataY DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]");
43 @property(nonatomic, readonly, nullable)
44 const uint8_t *dataU DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]");
45 @property(nonatomic, readonly, nullable)
46 const uint8_t *dataV 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]");
49 @property(nonatomic, readonly) int strideV DEPRECATED_MSG_ATTRIBUTE("use [buffer toI420]");
50 37
51 /** Timestamp in nanoseconds. */ 38 /** Timestamp in nanoseconds. */
52 @property(nonatomic, readonly) int64_t timeStampNs; 39 @property(nonatomic, readonly) int64_t timeStampNs;
53 40
54 /** Timestamp 90 kHz. */ 41 /** Timestamp 90 kHz. */
55 @property(nonatomic, assign) int32_t timeStamp; 42 @property(nonatomic, assign) int32_t timeStamp;
56 43
57 /** The native handle should be a pixel buffer on iOS. */ 44 /** The native handle should be a pixel buffer on iOS. */
58 @property(nonatomic, readonly) 45 @property(nonatomic, readonly)
59 CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead") ; 46 CVPixelBufferRef nativeHandle DEPRECATED_MSG_ATTRIBUTE("use buffer instead") ;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 timeStampNs:(int64_t)timeStampNs; 80 timeStampNs:(int64_t)timeStampNs;
94 81
95 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access 82 /** Return a frame that is guaranteed to be I420, i.e. it is possible to access
96 * the YUV data on it. 83 * the YUV data on it.
97 */ 84 */
98 - (RTCVideoFrame *)newI420VideoFrame; 85 - (RTCVideoFrame *)newI420VideoFrame;
99 86
100 @end 87 @end
101 88
102 NS_ASSUME_NONNULL_END 89 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « webrtc/sdk/objc/Framework/Classes/PeerConnection/RTCVideoFrame.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698