| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 * Structs for dealing with video capture. | 7 * Structs for dealing with video capture. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * PP_VideoCaptureDeviceInfo_Dev is a structure that represent a video capture | 11 * PP_VideoCaptureDeviceInfo_Dev is a structure that represent a video capture |
| 12 * configuration, such as resolution and frame rate. | 12 * configuration, such as resolution and frame rate. |
| 13 */ | 13 */ |
| 14 [assert_size(12)] | 14 [assert_size(12)] |
| 15 struct PP_VideoCaptureDeviceInfo_Dev { | 15 struct PP_VideoCaptureDeviceInfo_Dev { |
| 16 uint32_t width; | 16 uint32_t width; |
| 17 uint32_t height; | 17 uint32_t height; |
| 18 uint32_t frames_per_second; | 18 uint32_t frames_per_second; |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible | 22 * PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible |
| 23 * states of a VideoCapture. | 23 * states of a VideoCapture. |
| 24 */ | 24 */ |
| 25 [assert_size(4)] | 25 [assert_size(4)] |
| 26 enum PP_VideoCaptureStatus_Dev { | 26 enum PP_VideoCaptureStatus_Dev { |
| 27 /** | 27 /** |
| 28 * Initial state, capture is stopped. | 28 * Initial state, capture is stopped. |
| 29 */ | 29 */ |
| 30 PP_VIDEO_CAPTURE_STATUS_STOPPED, | 30 PP_VIDEO_CAPTURE_STATUS_STOPPED = 0, |
| 31 /** | 31 /** |
| 32 * StartCapture has been called, but capture hasn't started yet. | 32 * StartCapture has been called, but capture hasn't started yet. |
| 33 */ | 33 */ |
| 34 PP_VIDEO_CAPTURE_STATUS_STARTING, | 34 PP_VIDEO_CAPTURE_STATUS_STARTING = 1, |
| 35 /** | 35 /** |
| 36 * Capture is started. | 36 * Capture has been started. |
| 37 */ | 37 */ |
| 38 PP_VIDEO_CAPTURE_STATUS_STARTED, | 38 PP_VIDEO_CAPTURE_STATUS_STARTED = 2, |
| 39 /** | 39 /** |
| 40 * Capture has been started, but is paused because no buffer is available. | 40 * Capture has been started, but is paused because no buffer is available. |
| 41 */ | 41 */ |
| 42 PP_VIDEO_CAPTURE_STATUS_PAUSED, | 42 PP_VIDEO_CAPTURE_STATUS_PAUSED = 3, |
| 43 /** | 43 /** |
| 44 * StopCapture has been called, but capture hasn't stopped yet. | 44 * StopCapture has been called, but capture hasn't stopped yet. |
| 45 */ | 45 */ |
| 46 PP_VIDEO_CAPTURE_STATUS_STOPPING | 46 PP_VIDEO_CAPTURE_STATUS_STOPPING = 4 |
| 47 }; | 47 }; |
| OLD | NEW |