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

Side by Side Diff: examples/unityplugin/unity_plugin_apis.h

Issue 3013733002: WebRTC Unity Plugin Rebase
Patch Set: Minor Change 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 // This file provides an example of unity native plugin APIs. 11 // This file provides an example of unity native plugin APIs.
12 12
13 #ifndef EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_ 13 #ifndef EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_
14 #define EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_ 14 #define EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_
15 15
16 #include <stdint.h> 16 #include <stdint.h>
17 17
18 // Definitions of callback functions. 18 // Definitions of callback functions.
19 typedef void (*I420FRAMEREADY_CALLBACK)(const uint8_t* data_y, 19 typedef void (*I420FRAMEREADY_CALLBACK)(const uint8_t* data_y,
20 const uint8_t* data_u, 20 const uint8_t* data_u,
21 const uint8_t* data_v, 21 const uint8_t* data_v,
22 const uint8_t* data_a,
GeorgeZ 2017/09/19 08:21:20 I am not sure whether it makes sense to commit thi
qiangchen 2017/09/19 17:57:45 I just want to make the plugin work well with our
22 int stride_y, 23 int stride_y,
23 int stride_u, 24 int stride_u,
24 int stride_v, 25 int stride_v,
26 int stride_a,
25 uint32_t width, 27 uint32_t width,
26 uint32_t height); 28 uint32_t height);
27 typedef void (*LOCALDATACHANNELREADY_CALLBACK)(); 29 typedef void (*LOCALDATACHANNELREADY_CALLBACK)();
28 typedef void (*DATAFROMEDATECHANNELREADY_CALLBACK)(const char* msg); 30 typedef void (*DATAFROMEDATECHANNELREADY_CALLBACK)(const char* msg);
29 typedef void (*FAILURE_CALLBACK)(const char* msg); 31 typedef void (*FAILURE_CALLBACK)(const char* msg);
30 typedef void (*LOCALSDPREADYTOSEND_CALLBACK)(const char* type, const char* sdp); 32 typedef void (*LOCALSDPREADYTOSEND_CALLBACK)(const char* type, const char* sdp);
31 typedef void (*ICECANDIDATEREADYTOSEND_CALLBACK)(const char* candidate, 33 typedef void (*ICECANDIDATEREADYTOSEND_CALLBACK)(const char* candidate,
32 const int sdp_mline_index, 34 const int sdp_mline_index,
33 const char* sdp_mid); 35 const char* sdp_mid);
34 typedef void (*AUDIOBUSREADY_CALLBACK)(const void* audio_data, 36 typedef void (*AUDIOBUSREADY_CALLBACK)(const void* audio_data,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 AUDIOBUSREADY_CALLBACK callback); 98 AUDIOBUSREADY_CALLBACK callback);
97 WEBRTC_PLUGIN_API bool RegisterOnLocalSdpReadytoSend( 99 WEBRTC_PLUGIN_API bool RegisterOnLocalSdpReadytoSend(
98 int peer_connection_id, 100 int peer_connection_id,
99 LOCALSDPREADYTOSEND_CALLBACK callback); 101 LOCALSDPREADYTOSEND_CALLBACK callback);
100 WEBRTC_PLUGIN_API bool RegisterOnIceCandiateReadytoSend( 102 WEBRTC_PLUGIN_API bool RegisterOnIceCandiateReadytoSend(
101 int peer_connection_id, 103 int peer_connection_id,
102 ICECANDIDATEREADYTOSEND_CALLBACK callback); 104 ICECANDIDATEREADYTOSEND_CALLBACK callback);
103 } 105 }
104 106
105 #endif // EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_ 107 #endif // EXAMPLES_UNITYPLUGIN_UNITY_PLUGIN_APIS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698