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

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: 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
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 /* Last generated from IDL: Thu Nov 8 11:15:32 2012. */ 6 /* Last generated from IDL: Thu Nov 8 11:15:32 2012. */
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_TextInput_Dev_0_1; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1;
201 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1; 200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_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 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after
3895 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, 3892 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize,
3896 .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, 3893 .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,
3897 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument, 3894 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument,
3898 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, 3895 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin,
3899 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, 3896 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest,
3900 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, 3897 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument,
3901 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, 3898 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL,
3902 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL 3899 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL
3903 }; 3900 };
3904 3901
3905 /* Not generating wrapper interface for PPB_VideoCapture_Dev_0_1 */
3906
3907 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { 3902 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = {
3908 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create, 3903 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create,
3909 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture, 3904 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture,
3910 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices, 3905 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices,
3911 .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, 3906 .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,
3912 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture, 3907 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture,
3913 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, 3908 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer,
3914 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture, 3909 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture,
3915 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close 3910 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close
3916 }; 3911 };
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
4736 .wrapped_iface = NULL /* Still need slot for real_iface */, 4731 .wrapped_iface = NULL /* Still need slot for real_iface */,
4737 .real_iface = NULL 4732 .real_iface = NULL
4738 }; 4733 };
4739 4734
4740 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { 4735 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = {
4741 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, 4736 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6,
4742 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 4737 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
4743 .real_iface = NULL 4738 .real_iface = NULL
4744 }; 4739 };
4745 4740
4746 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1 = {
4747 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_1,
4748 .wrapped_iface = NULL /* Still need slot for real_iface */,
4749 .real_iface = NULL
4750 };
4751
4752 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { 4741 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = {
4753 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, 4742 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2,
4754 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, 4743 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2,
4755 .real_iface = NULL 4744 .real_iface = NULL
4756 }; 4745 };
4757 4746
4758 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 4747 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
4759 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 4748 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
4760 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 4749 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
4761 .real_iface = NULL 4750 .real_iface = NULL
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
5141 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5130 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5142 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, 5131 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1,
5143 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, 5132 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5,
5144 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, 5133 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7,
5145 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, 5134 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8,
5146 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5135 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5147 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5136 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5148 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, 5137 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1,
5149 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, 5138 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2,
5150 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5139 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5151 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1,
5152 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, 5140 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2,
5153 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5141 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5154 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, 5142 &Pnacl_WrapperInfo_PPB_View_Dev_0_1,
5155 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, 5143 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3,
5156 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, 5144 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4,
5157 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, 5145 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2,
5158 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6, 5146 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6,
5159 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5147 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5160 &Pnacl_WrapperInfo_PPB_Flash_12_0, 5148 &Pnacl_WrapperInfo_PPB_Flash_12_0,
5161 &Pnacl_WrapperInfo_PPB_Flash_12_1, 5149 &Pnacl_WrapperInfo_PPB_Flash_12_1,
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5288 } 5276 }
5289 5277
5290 if (wrapper->wrapped_iface) { 5278 if (wrapper->wrapped_iface) {
5291 return wrapper->wrapped_iface; 5279 return wrapper->wrapped_iface;
5292 } else { 5280 } else {
5293 return wrapper->real_iface; 5281 return wrapper->real_iface;
5294 } 5282 }
5295 } 5283 }
5296 5284
5297 #endif 5285 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698