| 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 |
| 11 #import <AVFoundation/AVFoundation.h> | 11 #import <AVFoundation/AVFoundation.h> |
| 12 #import <Foundation/Foundation.h> | 12 #import <Foundation/Foundation.h> |
| 13 | 13 |
| 14 #import "webrtc/base/objc/RTCMacros.h" |
| 15 |
| 14 NS_ASSUME_NONNULL_BEGIN | 16 NS_ASSUME_NONNULL_BEGIN |
| 15 | 17 |
| 16 // RTCVideoFrame is an ObjectiveC version of cricket::VideoFrame. | 18 // RTCVideoFrame is an ObjectiveC version of cricket::VideoFrame. |
| 19 RTC_EXPORT |
| 17 @interface RTCVideoFrame : NSObject | 20 @interface RTCVideoFrame : NSObject |
| 18 | 21 |
| 19 /** Width without rotation applied. */ | 22 /** Width without rotation applied. */ |
| 20 @property(nonatomic, readonly) size_t width; | 23 @property(nonatomic, readonly) size_t width; |
| 21 | 24 |
| 22 /** Height without rotation applied. */ | 25 /** Height without rotation applied. */ |
| 23 @property(nonatomic, readonly) size_t height; | 26 @property(nonatomic, readonly) size_t height; |
| 24 @property(nonatomic, readonly) size_t chromaWidth; | 27 @property(nonatomic, readonly) size_t chromaWidth; |
| 25 @property(nonatomic, readonly) size_t chromaHeight; | 28 @property(nonatomic, readonly) size_t chromaHeight; |
| 26 // These can return NULL if the object is not backed by a buffer. | 29 // These can return NULL if the object is not backed by a buffer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 40 - (instancetype)init NS_UNAVAILABLE; | 43 - (instancetype)init NS_UNAVAILABLE; |
| 41 | 44 |
| 42 /** If the frame is backed by a CVPixelBuffer, creates a backing i420 frame. | 45 /** If the frame is backed by a CVPixelBuffer, creates a backing i420 frame. |
| 43 * Calling the yuv plane properties will call this method if needed. | 46 * Calling the yuv plane properties will call this method if needed. |
| 44 */ | 47 */ |
| 45 - (void)convertBufferIfNeeded; | 48 - (void)convertBufferIfNeeded; |
| 46 | 49 |
| 47 @end | 50 @end |
| 48 | 51 |
| 49 NS_ASSUME_NONNULL_END | 52 NS_ASSUME_NONNULL_END |
| OLD | NEW |