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

Unified Diff: webrtc/api/android/jni/androidvideocapturer_jni.cc

Issue 2278883002: Move MutableDataY{,U,V} methods to I420Buffer only. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Update android capture and decoder code. Created 4 years, 4 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/android/jni/androidvideocapturer_jni.cc
diff --git a/webrtc/api/android/jni/androidvideocapturer_jni.cc b/webrtc/api/android/jni/androidvideocapturer_jni.cc
index d31ce26aabf7126f20ba39ede7fb34c8bafffb32..53b6090917f6b008d233b4f5c42633e8fe8e7a18 100644
--- a/webrtc/api/android/jni/androidvideocapturer_jni.cc
+++ b/webrtc/api/android/jni/androidvideocapturer_jni.cc
@@ -207,7 +207,7 @@ void AndroidVideoCapturerJni::OnMemoryBufferFrame(void* video_frame,
std::swap(rotated_width, rotated_height);
}
- rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer =
+ rtc::scoped_refptr<webrtc::I420Buffer> buffer =
pre_scale_pool_.CreateBuffer(rotated_width, rotated_height);
const uint8_t* y_plane = static_cast<const uint8_t*>(video_frame);

Powered by Google App Engine
This is Rietveld 408576698