Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| 50 #endif /* PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_ */ | |
|
brettw
2011/08/02 17:17:44
Can you clean up the whitespace around this?
piman
2011/08/03 00:44:41
Done.
| |
| 51 | |
| 52 | |
| OLD | NEW |