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

Unified Diff: examples/unityplugin/unity_plugin_apis.h

Issue 3013733002: WebRTC Unity Plugin Rebase
Patch Set: Add Comment 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/simple_peer_connection.cc ('k') | examples/unityplugin/video_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/unityplugin/unity_plugin_apis.h
diff --git a/examples/unityplugin/unity_plugin_apis.h b/examples/unityplugin/unity_plugin_apis.h
index 814b9675fb2e3fa75694a1aba026252312dd23e8..fb9ac30f667f7b1a128670d14b6fd034349b75bc 100644
--- a/examples/unityplugin/unity_plugin_apis.h
+++ b/examples/unityplugin/unity_plugin_apis.h
@@ -16,12 +16,18 @@
#include <stdint.h>
// Definitions of callback functions.
+// To support alpha channel, one needs to patch
+// https://codereview.chromium.org/2951033003/. We put it in general
+// interface in order to make this plugin work well with our Unity
+// Demo even without the Alpha Support.
typedef void (*I420FRAMEREADY_CALLBACK)(const uint8_t* data_y,
const uint8_t* data_u,
const uint8_t* data_v,
+ const uint8_t* data_a,
int stride_y,
int stride_u,
int stride_v,
+ int stride_a,
uint32_t width,
uint32_t height);
typedef void (*LOCALDATACHANNELREADY_CALLBACK)();
« no previous file with comments | « examples/unityplugin/simple_peer_connection.cc ('k') | examples/unityplugin/video_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698