OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 /** Extension of the I420 buffer with mutable data access */ | 63 /** Extension of the I420 buffer with mutable data access */ |
64 @protocol RTCMutableI420Buffer <RTCI420Buffer, RTCMutableYUVPlanarBuffer> | 64 @protocol RTCMutableI420Buffer <RTCI420Buffer, RTCMutableYUVPlanarBuffer> |
65 @end | 65 @end |
66 | 66 |
67 /** RTCVideoFrameBuffer containing a CVPixelBufferRef */ | 67 /** RTCVideoFrameBuffer containing a CVPixelBufferRef */ |
68 RTC_EXPORT | 68 RTC_EXPORT |
69 @interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer> | 69 @interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer> |
70 | 70 |
71 @property(nonatomic, readonly) CVPixelBufferRef pixelBuffer; | 71 @property(nonatomic, readonly) CVPixelBufferRef pixelBuffer; |
| 72 @property(nonatomic, readonly) int cropX; |
| 73 @property(nonatomic, readonly) int cropY; |
72 | 74 |
73 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer; | 75 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer; |
74 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer | 76 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer |
75 adaptedWidth:(int)adaptedWidth | 77 adaptedWidth:(int)adaptedWidth |
76 adaptedHeight:(int)adaptedHeight | 78 adaptedHeight:(int)adaptedHeight |
77 cropWidth:(int)cropWidth | 79 cropWidth:(int)cropWidth |
78 cropHeight:(int)cropHeight | 80 cropHeight:(int)cropHeight |
79 cropX:(int)cropX | 81 cropX:(int)cropX |
80 cropY:(int)cropY; | 82 cropY:(int)cropY; |
81 | 83 |
(...skipping 11 matching lines...) Expand all Loading... |
93 RTC_EXPORT | 95 RTC_EXPORT |
94 @interface RTCI420Buffer : NSObject <RTCI420Buffer> | 96 @interface RTCI420Buffer : NSObject <RTCI420Buffer> |
95 @end | 97 @end |
96 | 98 |
97 /** Mutable version of RTCI420Buffer */ | 99 /** Mutable version of RTCI420Buffer */ |
98 RTC_EXPORT | 100 RTC_EXPORT |
99 @interface RTCMutableI420Buffer : RTCI420Buffer <RTCMutableI420Buffer> | 101 @interface RTCMutableI420Buffer : RTCI420Buffer <RTCMutableI420Buffer> |
100 @end | 102 @end |
101 | 103 |
102 NS_ASSUME_NONNULL_END | 104 NS_ASSUME_NONNULL_END |
OLD | NEW |