Index: webrtc/api/objc/RTCI420Frame.h |
diff --git a/webrtc/api/objc/RTCI420Frame.h b/webrtc/api/objc/RTCI420Frame.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f0085c637e9f9bb3277576512cf26fbcbce50d4d |
--- /dev/null |
+++ b/webrtc/api/objc/RTCI420Frame.h |
@@ -0,0 +1,39 @@ |
+/* |
+ * Copyright 2015 The WebRTC project authors. All Rights Reserved. |
+ * |
+ * Use of this source code is governed by a BSD-style license |
+ * that can be found in the LICENSE file in the root of the source |
+ * tree. An additional intellectual property rights grant can be found |
+ * in the file PATENTS. All contributing project authors may |
+ * be found in the AUTHORS file in the root of the source tree. |
+ */ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+NS_ASSUME_NONNULL_BEGIN |
+ |
+@interface RTCI420Frame : NSObject |
tkchin_webrtc
2016/01/05 17:09:28
can we change this to RTCVideoFrame instead?
hjon
2016/01/05 23:55:35
Done.
|
+ |
+/** Width without rotation applied. */ |
+@property(nonatomic, readonly) NSUInteger width; |
tkchin_webrtc
2016/01/05 17:20:17
I don't remember why we casted this to NSInteger/N
hjon
2016/01/05 23:55:35
Done.
|
+ |
+/** Height without rotation applied. */ |
+@property(nonatomic, readonly) NSUInteger height; |
+@property(nonatomic, readonly) NSUInteger chromaWidth; |
+@property(nonatomic, readonly) NSUInteger chromaHeight; |
+@property(nonatomic, readonly) NSUInteger chromaSize; |
+// These can return NULL if the object is not backed by a buffer. |
+@property(nonatomic, readonly, nullable) const uint8_t *yPlane; |
+@property(nonatomic, readonly, nullable) const uint8_t *uPlane; |
+@property(nonatomic, readonly, nullable) const uint8_t *vPlane; |
+@property(nonatomic, readonly) NSInteger yPitch; |
+@property(nonatomic, readonly) NSInteger uPitch; |
+@property(nonatomic, readonly) NSInteger vPitch; |
+ |
+- (instancetype)init NS_UNAVAILABLE; |
+ |
+- (BOOL)makeExclusive; |
tkchin_webrtc
2016/01/05 17:09:28
don't think we need makeExclusive anymore
hjon
2016/01/05 23:55:35
Done.
|
+ |
+@end |
+ |
+NS_ASSUME_NONNULL_END |