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