ObjC: Remove RTCVideoFrame I420 functions
Access to I420 data should be done on an RTCI420Buffer that can be accessed through the toI420 method, and not on an RTCVideoFrame directly. BUG=webrtc:7785 Review-Url: https://codereview.webrtc.org/2997453002 Cr-Commit-Position: refs/heads/master@{#19431}
This commit is contained in:
@ -31,54 +31,6 @@
|
||||
return _rotation;
|
||||
}
|
||||
|
||||
- (const uint8_t *)dataY {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).dataY;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
- (const uint8_t *)dataU {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).dataU;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
- (const uint8_t *)dataV {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).dataV;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
- (int)strideY {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).strideY;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
- (int)strideU {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).strideU;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
- (int)strideV {
|
||||
if ([_buffer conformsToProtocol:@protocol(RTCI420Buffer)]) {
|
||||
return ((id<RTCI420Buffer>)_buffer).strideV;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
- (int64_t)timeStampNs {
|
||||
return _timeStampNs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user