| OLD | NEW |
| 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 /* From dev/ppb_video_capture_dev.idl modified Wed Dec 05 13:18:10 2012. */ | 6 /* From dev/ppb_video_capture_dev.idl modified Thu Dec 12 15:36:11 2013. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/dev/pp_video_capture_dev.h" | 11 #include "ppapi/c/dev/pp_video_capture_dev.h" |
| 12 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 12 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 13 #include "ppapi/c/pp_array_output.h" | 13 #include "ppapi/c/pp_array_output.h" |
| 14 #include "ppapi/c/pp_bool.h" | 14 #include "ppapi/c/pp_bool.h" |
| 15 #include "ppapi/c/pp_completion_callback.h" | 15 #include "ppapi/c/pp_completion_callback.h" |
| 16 #include "ppapi/c/pp_instance.h" | 16 #include "ppapi/c/pp_instance.h" |
| 17 #include "ppapi/c/pp_macros.h" | 17 #include "ppapi/c/pp_macros.h" |
| 18 #include "ppapi/c/pp_resource.h" | 18 #include "ppapi/c/pp_resource.h" |
| 19 #include "ppapi/c/pp_stdint.h" | 19 #include "ppapi/c/pp_stdint.h" |
| 20 | 20 |
| 21 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2 "PPB_VideoCapture(Dev);0.2" | |
| 22 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3 "PPB_VideoCapture(Dev);0.3" | 21 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3 "PPB_VideoCapture(Dev);0.3" |
| 23 #define PPB_VIDEOCAPTURE_DEV_INTERFACE PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3 | 22 #define PPB_VIDEOCAPTURE_DEV_INTERFACE PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3 |
| 24 | 23 |
| 25 /** | 24 /** |
| 26 * @file | 25 * @file |
| 27 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. | 26 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. |
| 28 */ | 27 */ |
| 29 | 28 |
| 30 | 29 |
| 31 /** | 30 /** |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 /** | 152 /** |
| 154 * Closes the video capture device, and stops capturing if necessary. It is | 153 * Closes the video capture device, and stops capturing if necessary. It is |
| 155 * not valid to call |Open()| again after a call to this method. | 154 * not valid to call |Open()| again after a call to this method. |
| 156 * If a video capture resource is destroyed while a device is still open, then | 155 * If a video capture resource is destroyed while a device is still open, then |
| 157 * it will be implicitly closed, so you are not required to call this method. | 156 * it will be implicitly closed, so you are not required to call this method. |
| 158 */ | 157 */ |
| 159 void (*Close)(PP_Resource video_capture); | 158 void (*Close)(PP_Resource video_capture); |
| 160 }; | 159 }; |
| 161 | 160 |
| 162 typedef struct PPB_VideoCapture_Dev_0_3 PPB_VideoCapture_Dev; | 161 typedef struct PPB_VideoCapture_Dev_0_3 PPB_VideoCapture_Dev; |
| 163 | |
| 164 struct PPB_VideoCapture_Dev_0_2 { | |
| 165 PP_Resource (*Create)(PP_Instance instance); | |
| 166 PP_Bool (*IsVideoCapture)(PP_Resource video_capture); | |
| 167 int32_t (*EnumerateDevices)(PP_Resource video_capture, | |
| 168 PP_Resource* devices, | |
| 169 struct PP_CompletionCallback callback); | |
| 170 int32_t (*Open)(PP_Resource video_capture, | |
| 171 PP_Resource device_ref, | |
| 172 const struct PP_VideoCaptureDeviceInfo_Dev* requested_info, | |
| 173 uint32_t buffer_count, | |
| 174 struct PP_CompletionCallback callback); | |
| 175 int32_t (*StartCapture)(PP_Resource video_capture); | |
| 176 int32_t (*ReuseBuffer)(PP_Resource video_capture, uint32_t buffer); | |
| 177 int32_t (*StopCapture)(PP_Resource video_capture); | |
| 178 void (*Close)(PP_Resource video_capture); | |
| 179 }; | |
| 180 /** | 162 /** |
| 181 * @} | 163 * @} |
| 182 */ | 164 */ |
| 183 | 165 |
| 184 #endif /* PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ */ | 166 #endif /* PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ */ |
| 185 | 167 |
| OLD | NEW |