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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 11274036: Refactor video capture to new design (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: export Created 8 years, 1 month 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
« no previous file with comments | « ppapi/examples/video_capture/video_capture.html ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1;
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 } 1790 }
1792 1791
1793 static __attribute__((pnaclcall)) 1792 static __attribute__((pnaclcall))
1794 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) { 1793 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) {
1795 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface; 1794 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface;
1796 return iface->GetPluginInstanceURL(instance, components); 1795 return iface->GetPluginInstanceURL(instance, components);
1797 } 1796 }
1798 1797
1799 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ 1798 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */
1800 1799
1801 /* Not generating wrapper methods for PPB_VideoCapture_Dev_0_1 */
1802
1803 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ 1800 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */
1804 1801
1805 static __attribute__((pnaclcall)) 1802 static __attribute__((pnaclcall))
1806 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 1803 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) {
1807 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface; 1804 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface;
1808 return iface->Create(instance); 1805 return iface->Create(instance);
1809 } 1806 }
1810 1807
1811 static __attribute__((pnaclcall)) 1808 static __attribute__((pnaclcall))
1812 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) { 1809 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) {
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
3841 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, 3838 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize,
3842 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL, 3839 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL,
3843 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument, 3840 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument,
3844 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, 3841 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin,
3845 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, 3842 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest,
3846 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, 3843 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument,
3847 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, 3844 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL,
3848 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL 3845 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL
3849 }; 3846 };
3850 3847
3851 /* Not generating wrapper interface for PPB_VideoCapture_Dev_0_1 */
3852
3853 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { 3848 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = {
3854 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create, 3849 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create,
3855 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture, 3850 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture,
3856 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices, 3851 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices,
3857 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Open, 3852 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Open,
3858 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture, 3853 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture,
3859 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, 3854 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer,
3860 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture, 3855 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture,
3861 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close 3856 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close
3862 }; 3857 };
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
4673 .wrapped_iface = NULL /* Still need slot for real_iface */, 4668 .wrapped_iface = NULL /* Still need slot for real_iface */,
4674 .real_iface = NULL 4669 .real_iface = NULL
4675 }; 4670 };
4676 4671
4677 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { 4672 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = {
4678 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, 4673 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6,
4679 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 4674 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
4680 .real_iface = NULL 4675 .real_iface = NULL
4681 }; 4676 };
4682 4677
4683 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1 = {
4684 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_1,
4685 .wrapped_iface = NULL /* Still need slot for real_iface */,
4686 .real_iface = NULL
4687 };
4688
4689 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { 4678 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = {
4690 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, 4679 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2,
4691 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, 4680 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2,
4692 .real_iface = NULL 4681 .real_iface = NULL
4693 }; 4682 };
4694 4683
4695 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 4684 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
4696 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 4685 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
4697 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 4686 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
4698 .real_iface = NULL 4687 .real_iface = NULL
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5078 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5067 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5079 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, 5068 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1,
5080 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, 5069 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5,
5081 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, 5070 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7,
5082 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, 5071 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8,
5083 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5072 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5084 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5073 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5085 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, 5074 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1,
5086 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, 5075 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2,
5087 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5076 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5088 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1,
5089 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, 5077 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2,
5090 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5078 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5091 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, 5079 &Pnacl_WrapperInfo_PPB_View_Dev_0_1,
5092 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, 5080 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3,
5093 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, 5081 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4,
5094 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, 5082 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2,
5095 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6, 5083 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6,
5096 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5084 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5097 &Pnacl_WrapperInfo_PPB_Flash_12_0, 5085 &Pnacl_WrapperInfo_PPB_Flash_12_0,
5098 &Pnacl_WrapperInfo_PPB_Flash_12_1, 5086 &Pnacl_WrapperInfo_PPB_Flash_12_1,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5225 } 5213 }
5226 5214
5227 if (wrapper->wrapped_iface) { 5215 if (wrapper->wrapped_iface) {
5228 return wrapper->wrapped_iface; 5216 return wrapper->wrapped_iface;
5229 } else { 5217 } else {
5230 return wrapper->real_iface; 5218 return wrapper->real_iface;
5231 } 5219 }
5232 } 5220 }
5233 5221
5234 #endif 5222 #endif
OLDNEW
« no previous file with comments | « ppapi/examples/video_capture/video_capture.html ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698