Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: ppapi/c/dev/pp_video_capture_dev.h

Issue 7553003: Video Capture Pepper API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make Clang happy Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/dev/ppb_video_capture_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 */
5 #ifndef PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_
6 #define PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_
7
8 #include "ppapi/c/pp_stdint.h"
9
10 /**
11 * PP_VideoCaptureDeviceInfo_Dev is a structure that represent a video capture
12 * configuration, such as resolution and frame rate.
13 */
14 struct PP_VideoCaptureDeviceInfo_Dev {
15 uint32_t width;
16 uint32_t height;
17 uint32_t frames_per_second;
18 };
19 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoCaptureDeviceInfo_Dev, 12);
20
21 /**
22 * PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible
23 * states of a VideoCapture.
24 */
25 typedef enum {
26 /**
27 * Initial state, capture is stopped.
28 */
29 PP_VIDEO_CAPTURE_STATUS_STOPPED,
30 /**
31 * StartCapture has been called, but capture hasn't started yet.
32 */
33 PP_VIDEO_CAPTURE_STATUS_STARTING,
34 /**
35 * Capture is started.
36 */
37 PP_VIDEO_CAPTURE_STATUS_STARTED,
38 /**
39 * Capture has been started, but is paused because no buffer is available.
40 */
41 PP_VIDEO_CAPTURE_STATUS_PAUSED,
42 /**
43 * StopCapture has been called, but capture hasn't stopped yet.
44 */
45 PP_VIDEO_CAPTURE_STATUS_STOPPING
46 } PP_VideoCaptureStatus_Dev;
47 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoCaptureStatus_Dev, 4);
48
49 #endif /* PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_ */
OLDNEW
« no previous file with comments | « content/renderer/pepper_plugin_delegate_impl.cc ('k') | ppapi/c/dev/ppb_video_capture_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698