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 /** | 6 /** |
7 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. | 7 * This file defines the <code>PPB_VideoCapture_Dev</code> interface. |
8 */ | 8 */ |
9 label Chrome { | 9 label Chrome { |
10 M14 = 0.1, | 10 M14 = 0.1, |
11 M18 = 0.2 | 11 M19 = 0.2 |
12 }; | 12 }; |
13 | 13 |
14 /** | 14 /** |
15 * Video capture interface. It goes hand-in-hand with PPP_VideoCapture_Dev. | 15 * Video capture interface. It goes hand-in-hand with PPP_VideoCapture_Dev. |
16 * | 16 * |
17 * Theory of operation: | 17 * Theory of operation: |
18 * 1- Create a VideoCapture resource using Create. | 18 * 1- Create a VideoCapture resource using Create. |
19 * 2- Find available video capture devices using EnumerateDevices. | 19 * 2- Find available video capture devices using EnumerateDevices. |
20 * 3- Open a video capture device. In addition to a device reference (0 can be | 20 * 3- Open a video capture device. In addition to a device reference (0 can be |
21 * used to indicate the default device), you pass in the requested info | 21 * used to indicate the default device), you pass in the requested info |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 /** | 147 /** |
148 * Closes the video capture device, and stops capturing if necessary. It is | 148 * Closes the video capture device, and stops capturing if necessary. It is |
149 * not valid to call |Open()| again after a call to this method. | 149 * not valid to call |Open()| again after a call to this method. |
150 * If a video capture resource is destroyed while a device is still open, then | 150 * If a video capture resource is destroyed while a device is still open, then |
151 * it will be implicitly closed, so you are not required to call this method. | 151 * it will be implicitly closed, so you are not required to call this method. |
152 */ | 152 */ |
153 [version=0.2] | 153 [version=0.2] |
154 void Close( | 154 void Close( |
155 [in] PP_Resource video_capture); | 155 [in] PP_Resource video_capture); |
156 }; | 156 }; |
OLD | NEW |