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.
7 * Structs for dealing with video capture.
11 * PP_VideoCaptureDeviceInfo_Dev is a structure that represent a video capture
12 * configuration, such as resolution and frame rate.
15 struct PP_VideoCaptureDeviceInfo_Dev
{
18 uint32_t frames_per_second
;
22 * PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible
23 * states of a VideoCapture.
26 enum PP_VideoCaptureStatus_Dev
{
28 * Initial state, capture is stopped.
30 PP_VIDEO_CAPTURE_STATUS_STOPPED
= 0,
32 * StartCapture has been called, but capture hasn't started yet.
34 PP_VIDEO_CAPTURE_STATUS_STARTING
= 1,
36 * Capture has been started.
38 PP_VIDEO_CAPTURE_STATUS_STARTED
= 2,
40 * Capture has been started, but is paused because no buffer is available.
42 PP_VIDEO_CAPTURE_STATUS_PAUSED
= 3,
44 * StopCapture has been called, but capture hasn't stopped yet.
46 PP_VIDEO_CAPTURE_STATUS_STOPPING
= 4