Cleanup unused Obj-C VideoFrame constructors
These interfaces were deprecated 6 years ago and have not been functional for a long time. It is safe to remove them. Bug: None Change-Id: Icbc85758551a96b8da10fbf16a1771c3641d1ac3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/366500 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Auto-Submit: Daniel.L (Byoungchan) Lee <daniel.l@hpcnt.com> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43291}
This commit is contained in:
parent
b7abaee819
commit
5f324db7fa
@ -47,29 +47,6 @@ RTC_OBJC_EXPORT
|
|||||||
- (instancetype)init NS_UNAVAILABLE;
|
- (instancetype)init NS_UNAVAILABLE;
|
||||||
- (instancetype)new NS_UNAVAILABLE;
|
- (instancetype)new NS_UNAVAILABLE;
|
||||||
|
|
||||||
/** Initialize an RTCVideoFrame from a pixel buffer, rotation, and timestamp.
|
|
||||||
* Deprecated - initialize with a RTCCVPixelBuffer instead
|
|
||||||
*/
|
|
||||||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
|
|
||||||
rotation:(RTCVideoRotation)rotation
|
|
||||||
timeStampNs:(int64_t)timeStampNs
|
|
||||||
DEPRECATED_MSG_ATTRIBUTE("use initWithBuffer instead");
|
|
||||||
|
|
||||||
/** Initialize an RTCVideoFrame from a pixel buffer combined with cropping and
|
|
||||||
* scaling. Cropping will be applied first on the pixel buffer, followed by
|
|
||||||
* scaling to the final resolution of scaledWidth x scaledHeight.
|
|
||||||
*/
|
|
||||||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
|
|
||||||
scaledWidth:(int)scaledWidth
|
|
||||||
scaledHeight:(int)scaledHeight
|
|
||||||
cropWidth:(int)cropWidth
|
|
||||||
cropHeight:(int)cropHeight
|
|
||||||
cropX:(int)cropX
|
|
||||||
cropY:(int)cropY
|
|
||||||
rotation:(RTCVideoRotation)rotation
|
|
||||||
timeStampNs:(int64_t)timeStampNs
|
|
||||||
DEPRECATED_MSG_ATTRIBUTE("use initWithBuffer instead");
|
|
||||||
|
|
||||||
/** Initialize an RTCVideoFrame from a frame buffer, rotation, and timestamp.
|
/** Initialize an RTCVideoFrame from a frame buffer, rotation, and timestamp.
|
||||||
*/
|
*/
|
||||||
- (instancetype)initWithBuffer:(id<RTC_OBJC_TYPE(RTCVideoFrameBuffer)>)frameBuffer
|
- (instancetype)initWithBuffer:(id<RTC_OBJC_TYPE(RTCVideoFrameBuffer)>)frameBuffer
|
||||||
|
|||||||
@ -43,26 +43,6 @@
|
|||||||
timeStampNs:_timeStampNs];
|
timeStampNs:_timeStampNs];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
|
|
||||||
rotation:(RTCVideoRotation)rotation
|
|
||||||
timeStampNs:(int64_t)timeStampNs {
|
|
||||||
// Deprecated.
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (instancetype)initWithPixelBuffer:(CVPixelBufferRef)pixelBuffer
|
|
||||||
scaledWidth:(int)scaledWidth
|
|
||||||
scaledHeight:(int)scaledHeight
|
|
||||||
cropWidth:(int)cropWidth
|
|
||||||
cropHeight:(int)cropHeight
|
|
||||||
cropX:(int)cropX
|
|
||||||
cropY:(int)cropY
|
|
||||||
rotation:(RTCVideoRotation)rotation
|
|
||||||
timeStampNs:(int64_t)timeStampNs {
|
|
||||||
// Deprecated.
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (instancetype)initWithBuffer:(id<RTC_OBJC_TYPE(RTCVideoFrameBuffer)>)buffer
|
- (instancetype)initWithBuffer:(id<RTC_OBJC_TYPE(RTCVideoFrameBuffer)>)buffer
|
||||||
rotation:(RTCVideoRotation)rotation
|
rotation:(RTCVideoRotation)rotation
|
||||||
timeStampNs:(int64_t)timeStampNs {
|
timeStampNs:(int64_t)timeStampNs {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user