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

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: Fri Nov 9 15:24:06 2012. */ 6 /* Last generated from IDL: Fri Nov 9 15:24:06 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_7;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_8;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; 186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_View_Dev_0_1;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_3;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Widget_Dev_0_4;
196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2;
197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_NetworkState_Dev_0_1;
198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6; 197 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Printing_Dev_0_6;
199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1; 198 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_TextInput_Dev_0_1;
200 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1; 199 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_VideoCapture_Dev_0_1;
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 } 1788 }
1790 1789
1791 static __attribute__((pnaclcall)) 1790 static __attribute__((pnaclcall))
1792 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) { 1791 struct PP_Var Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(PP_Instance instanc e, struct PP_URLComponents_Dev* components) {
1793 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface; 1792 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface;
1794 return iface->GetPluginInstanceURL(instance, components); 1793 return iface->GetPluginInstanceURL(instance, components);
1795 } 1794 }
1796 1795
1797 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ 1796 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */
1798 1797
1799 /* Not generating wrapper methods for PPB_VideoCapture_Dev_0_1 */
1800
1801 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ 1798 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */
1802 1799
1803 static __attribute__((pnaclcall)) 1800 static __attribute__((pnaclcall))
1804 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 1801 PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) {
1805 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface; 1802 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface;
1806 return iface->Create(instance); 1803 return iface->Create(instance);
1807 } 1804 }
1808 1805
1809 static __attribute__((pnaclcall)) 1806 static __attribute__((pnaclcall))
1810 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) { 1807 PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_capture) {
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
3829 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, 3826 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize,
3830 .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, 3827 .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,
3831 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument, 3828 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument,
3832 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, 3829 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin,
3833 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, 3830 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest,
3834 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, 3831 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument,
3835 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, 3832 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL,
3836 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL 3833 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL
3837 }; 3834 };
3838 3835
3839 /* Not generating wrapper interface for PPB_VideoCapture_Dev_0_1 */
3840
3841 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { 3836 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = {
3842 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create, 3837 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create,
3843 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture, 3838 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture,
3844 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices, 3839 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices,
3845 .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, 3840 .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,
3846 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture, 3841 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture,
3847 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, 3842 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer,
3848 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture, 3843 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture,
3849 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close 3844 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close
3850 }; 3845 };
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
4657 .wrapped_iface = NULL /* Still need slot for real_iface */, 4652 .wrapped_iface = NULL /* Still need slot for real_iface */,
4658 .real_iface = NULL 4653 .real_iface = NULL
4659 }; 4654 };
4660 4655
4661 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { 4656 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = {
4662 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, 4657 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6,
4663 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 4658 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
4664 .real_iface = NULL 4659 .real_iface = NULL
4665 }; 4660 };
4666 4661
4667 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1 = {
4668 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_1,
4669 .wrapped_iface = NULL /* Still need slot for real_iface */,
4670 .real_iface = NULL
4671 };
4672
4673 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { 4662 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = {
4674 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, 4663 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2,
4675 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, 4664 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2,
4676 .real_iface = NULL 4665 .real_iface = NULL
4677 }; 4666 };
4678 4667
4679 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = { 4668 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16 = {
4680 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16, 4669 .iface_macro = PPB_VIDEODECODER_DEV_INTERFACE_0_16,
4681 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16, 4670 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoDecoder_Dev_0_16,
4682 .real_iface = NULL 4671 .real_iface = NULL
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
5056 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5045 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5057 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1, 5046 &Pnacl_WrapperInfo_PPB_ResourceArray_Dev_0_1,
5058 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5, 5047 &Pnacl_WrapperInfo_PPB_Scrollbar_Dev_0_5,
5059 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7, 5048 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_7,
5060 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8, 5049 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_8,
5061 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5050 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5062 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5051 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5063 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1, 5052 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_1,
5064 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2, 5053 &Pnacl_WrapperInfo_PPB_TextInput_Dev_0_2,
5065 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5054 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5066 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_1,
5067 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, 5055 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2,
5068 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5056 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5069 &Pnacl_WrapperInfo_PPB_View_Dev_0_1, 5057 &Pnacl_WrapperInfo_PPB_View_Dev_0_1,
5070 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3, 5058 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_3,
5071 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4, 5059 &Pnacl_WrapperInfo_PPB_Widget_Dev_0_4,
5072 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2, 5060 &Pnacl_WrapperInfo_PPB_Zoom_Dev_0_2,
5073 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6, 5061 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6,
5074 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5062 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5075 &Pnacl_WrapperInfo_PPB_Flash_12_0, 5063 &Pnacl_WrapperInfo_PPB_Flash_12_0,
5076 &Pnacl_WrapperInfo_PPB_Flash_12_1, 5064 &Pnacl_WrapperInfo_PPB_Flash_12_1,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
5202 } 5190 }
5203 5191
5204 if (wrapper->wrapped_iface) { 5192 if (wrapper->wrapped_iface) {
5205 return wrapper->wrapped_iface; 5193 return wrapper->wrapped_iface;
5206 } else { 5194 } else {
5207 return wrapper->real_iface; 5195 return wrapper->real_iface;
5208 } 5196 }
5209 } 5197 }
5210 5198
5211 #endif 5199 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698