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

Unified Diff: webrtc/api/objc/RTCVideoFrame.mm

Issue 1838353004: cricket::VideoFrame cleanup. New width() and height(). Deleted GetChroma* methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix int vs size_t comparison. Created 4 years, 9 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: webrtc/api/objc/RTCVideoFrame.mm
diff --git a/webrtc/api/objc/RTCVideoFrame.mm b/webrtc/api/objc/RTCVideoFrame.mm
index db2d07ba31a82a1e8371529cc5ff22592a42034e..843db273a8c6253416008352079186be03c2cf4a 100644
--- a/webrtc/api/objc/RTCVideoFrame.mm
+++ b/webrtc/api/objc/RTCVideoFrame.mm
@@ -19,23 +19,23 @@
}
- (size_t)width {
- return _videoFrame->GetWidth();
+ return _videoFrame->width();
}
- (size_t)height {
- return _videoFrame->GetHeight();
+ return _videoFrame->height();
}
- (size_t)chromaWidth {
- return _videoFrame->GetChromaWidth();
+ return ([self width] + 1) / 2;
tkchin_webrtc 2016/03/30 17:35:06 ditto
}
- (size_t)chromaHeight {
- return _videoFrame->GetChromaHeight();
+ return ([self height] + 1) / 2;
}
- (size_t)chromaSize {
- return _videoFrame->GetChromaSize();
+ return [self chromaWidth] * [self chromaHeight];
}
- (const uint8_t *)yPlane {

Powered by Google App Engine
This is Rietveld 408576698