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

Unified Diff: talk/app/webrtc/objc/RTCI420Frame.mm

Issue 1901973002: Delete cricket::VideoFrame methods GetYPlane and GetYPitch. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix typo in objc code. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: talk/app/webrtc/objc/RTCI420Frame.mm
diff --git a/talk/app/webrtc/objc/RTCI420Frame.mm b/talk/app/webrtc/objc/RTCI420Frame.mm
index aacdfe33b22fb387a659425c7208d8a2b78c3191..5167e0741a35fd43e9faec4ea113833d9cb4aa01 100644
--- a/talk/app/webrtc/objc/RTCI420Frame.mm
+++ b/talk/app/webrtc/objc/RTCI420Frame.mm
@@ -56,29 +56,29 @@
- (const uint8_t*)yPlane {
const cricket::VideoFrame* const_frame = _videoFrame.get();
- return const_frame->GetYPlane();
+ return const_frame->video_frame_buffer()->DataY();
magjed_webrtc 2016/04/19 11:50:52 This changes the behavior of this function, it use
nisse-webrtc 2016/04/20 07:21:53 Don't really know, but webrtc/api/objc version, RT
}
- (const uint8_t*)uPlane {
const cricket::VideoFrame* const_frame = _videoFrame.get();
- return const_frame->GetUPlane();
+ return const_frame->video_frame_buffer()->DataU();
}
- (const uint8_t*)vPlane {
const cricket::VideoFrame* const_frame = _videoFrame.get();
- return const_frame->GetVPlane();
+ return const_frame->video_frame_buffer()->DataV();
}
- (NSInteger)yPitch {
- return _videoFrame->GetYPitch();
+ return _videoFrame->video_frame_buffer()->StrideY();
}
- (NSInteger)uPitch {
- return _videoFrame->GetUPitch();
+ return _videoFrame->video_frame_buffer()->StrideU();
}
- (NSInteger)vPitch {
- return _videoFrame->GetVPitch();
+ return _videoFrame->video_frame_buffer()->StrideV();
}
@end
« no previous file with comments | « no previous file | talk/app/webrtc/objc/public/RTCI420Frame.h » ('j') | talk/app/webrtc/objc/public/RTCI420Frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698