| 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 Feb 15 12:15:46 2012. */ | 6 /* From dev/ppb_video_capture_dev.idl modified Tue Oct 30 17:39:32 2012. */ |
| 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/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 18 | 18 |
| 19 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_1 "PPB_VideoCapture(Dev);0.1" | |
| 20 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2 "PPB_VideoCapture(Dev);0.2" | 19 #define PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2 "PPB_VideoCapture(Dev);0.2" |
| 21 #define PPB_VIDEOCAPTURE_DEV_INTERFACE PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2 | 20 #define PPB_VIDEOCAPTURE_DEV_INTERFACE PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2 |
| 22 | 21 |
| 23 /** | 22 /** |
| 24 * @file | 23 * @file |
| 25 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. | 24 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. |
| 26 */ | 25 */ |
| 27 | 26 |
| 28 | 27 |
| 29 /** | 28 /** |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 /** | 128 /** |
| 130 * Closes the video capture device, and stops capturing if necessary. It is | 129 * Closes the video capture device, and stops capturing if necessary. It is |
| 131 * not valid to call |Open()| again after a call to this method. | 130 * not valid to call |Open()| again after a call to this method. |
| 132 * If a video capture resource is destroyed while a device is still open, then | 131 * If a video capture resource is destroyed while a device is still open, then |
| 133 * it will be implicitly closed, so you are not required to call this method. | 132 * it will be implicitly closed, so you are not required to call this method. |
| 134 */ | 133 */ |
| 135 void (*Close)(PP_Resource video_capture); | 134 void (*Close)(PP_Resource video_capture); |
| 136 }; | 135 }; |
| 137 | 136 |
| 138 typedef struct PPB_VideoCapture_Dev_0_2 PPB_VideoCapture_Dev; | 137 typedef struct PPB_VideoCapture_Dev_0_2 PPB_VideoCapture_Dev; |
| 139 | |
| 140 struct PPB_VideoCapture_Dev_0_1 { | |
| 141 PP_Resource (*Create)(PP_Instance instance); | |
| 142 PP_Bool (*IsVideoCapture)(PP_Resource video_capture); | |
| 143 int32_t (*StartCapture)( | |
| 144 PP_Resource video_capture, | |
| 145 const struct PP_VideoCaptureDeviceInfo_Dev* requested_info, | |
| 146 uint32_t buffer_count); | |
| 147 int32_t (*ReuseBuffer)(PP_Resource video_capture, uint32_t buffer); | |
| 148 int32_t (*StopCapture)(PP_Resource video_capture); | |
| 149 }; | |
| 150 /** | 138 /** |
| 151 * @} | 139 * @} |
| 152 */ | 140 */ |
| 153 | 141 |
| 154 #endif /* PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ */ | 142 #endif /* PPAPI_C_DEV_PPB_VIDEO_CAPTURE_DEV_H_ */ |
| 155 | 143 |
| OLD | NEW |