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

Unified Diff: examples/unityplugin/video_observer.cc

Issue 3015663002: [Experiment] Alpha Channel Support
Patch Set: Remove Frame Matching On Sender Side Created 3 years, 3 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
« no previous file with comments | « examples/unityplugin/unity_plugin_apis.h ('k') | media/base/codec.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/unityplugin/video_observer.cc
diff --git a/examples/unityplugin/video_observer.cc b/examples/unityplugin/video_observer.cc
index 821acd66aaaedeaa627e33ebaab36e9b5fa08a6a..aa04d6ca08617924b5d8837d1ac629feffbfa04e 100644
--- a/examples/unityplugin/video_observer.cc
+++ b/examples/unityplugin/video_observer.cc
@@ -17,11 +17,12 @@ void VideoObserver::SetVideoCallback(I420FRAMEREADY_CALLBACK callback) {
void VideoObserver::OnFrame(const webrtc::VideoFrame& frame) {
std::unique_lock<std::mutex> lock(mutex);
- rtc::scoped_refptr<webrtc::PlanarYuvBuffer> buffer(
+ rtc::scoped_refptr<webrtc::I420BufferInterface> buffer(
frame.video_frame_buffer()->ToI420());
if (OnI420FrameReady) {
OnI420FrameReady(buffer->DataY(), buffer->DataU(), buffer->DataV(),
- buffer->StrideY(), buffer->StrideU(), buffer->StrideV(),
- frame.width(), frame.height());
+ buffer->DataA(), buffer->StrideY(), buffer->StrideU(),
+ buffer->StrideV(), buffer->StrideA(), frame.width(),
+ frame.height());
}
}
« no previous file with comments | « examples/unityplugin/unity_plugin_apis.h ('k') | media/base/codec.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698