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

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

Issue 2961293002: Properly export the symbols of video frame-buffer classes for link-time (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | 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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 /** Protocol for RTCYUVPlanarBuffers containing I420 data */ 59 /** Protocol for RTCYUVPlanarBuffers containing I420 data */
60 @protocol RTCI420Buffer <RTCYUVPlanarBuffer> 60 @protocol RTCI420Buffer <RTCYUVPlanarBuffer>
61 @end 61 @end
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 @interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer> 69 @interface RTCCVPixelBuffer : NSObject <RTCVideoFrameBuffer>
69 70
70 @property(nonatomic, readonly) CVPixelBufferRef pixelBuffer; 71 @property(nonatomic, readonly) CVPixelBufferRef pixelBuffer;
71 72
72 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer; 73 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer;
73 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer 74 - (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
74 adaptedWidth:(int)adaptedWidth 75 adaptedWidth:(int)adaptedWidth
75 adaptedHeight:(int)adaptedHeight 76 adaptedHeight:(int)adaptedHeight
76 cropWidth:(int)cropWidth 77 cropWidth:(int)cropWidth
77 cropHeight:(int)cropHeight 78 cropHeight:(int)cropHeight
78 cropX:(int)cropX 79 cropX:(int)cropX
79 cropY:(int)cropY; 80 cropY:(int)cropY;
80 81
81 - (BOOL)requiresCropping; 82 - (BOOL)requiresCropping;
82 - (BOOL)requiresScalingToWidth:(int)width height:(int)height; 83 - (BOOL)requiresScalingToWidth:(int)width height:(int)height;
83 - (int)bufferSizeForCroppingAndScalingToWidth:(int)width height:(int)height; 84 - (int)bufferSizeForCroppingAndScalingToWidth:(int)width height:(int)height;
84 /** The minimum size of the |tmpBuffer| must be the number of bytes returned fro m the 85 /** The minimum size of the |tmpBuffer| must be the number of bytes returned fro m the
85 * bufferSizeForCroppingAndScalingToWidth:height: method. 86 * bufferSizeForCroppingAndScalingToWidth:height: method.
86 */ 87 */
87 - (BOOL)cropAndScaleTo:(CVPixelBufferRef)outputPixelBuffer withTempBuffer:(uint8 _t *)tmpBuffer; 88 - (BOOL)cropAndScaleTo:(CVPixelBufferRef)outputPixelBuffer withTempBuffer:(uint8 _t *)tmpBuffer;
88 89
89 @end 90 @end
90 91
91 /** RTCI420Buffer implements the RTCI420Buffer protocol */ 92 /** RTCI420Buffer implements the RTCI420Buffer protocol */
93 RTC_EXPORT
92 @interface RTCI420Buffer : NSObject <RTCI420Buffer> 94 @interface RTCI420Buffer : NSObject <RTCI420Buffer>
93 @end 95 @end
94 96
95 /** Mutable version of RTCI420Buffer */ 97 /** Mutable version of RTCI420Buffer */
98 RTC_EXPORT
96 @interface RTCMutableI420Buffer : RTCI420Buffer <RTCMutableI420Buffer> 99 @interface RTCMutableI420Buffer : RTCI420Buffer <RTCMutableI420Buffer>
97 @end 100 @end
98 101
99 NS_ASSUME_NONNULL_END 102 NS_ASSUME_NONNULL_END
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698