Pepper_47_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
dev
pp_video_capture_dev.h
Go to the documentation of this file.
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
/* From dev/pp_video_capture_dev.idl modified Tue Nov 15 08:21:15 2016. */
7
8
#ifndef PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_
9
#define PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_
10
11
#include "
ppapi/c/pp_macros.h
"
12
#include "
ppapi/c/pp_stdint.h
"
13
14
/**
15
* @file
16
* Structs for dealing with video capture.
17
*/
18
19
20
/**
21
* @addtogroup Structs
22
* @{
23
*/
24
/**
25
* PP_VideoCaptureDeviceInfo_Dev is a structure that represents a video capture
26
* configuration, such as resolution and frame rate.
27
*/
28
struct
PP_VideoCaptureDeviceInfo_Dev
{
29
/**
30
* Required frame width.
31
*/
32
uint32_t
width
;
33
/**
34
* Required frame height.
35
*/
36
uint32_t
height
;
37
/**
38
* Required frames per second.
39
*/
40
uint32_t
frames_per_second
;
41
};
42
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
(
PP_VideoCaptureDeviceInfo_Dev
, 12);
43
/**
44
* @}
45
*/
46
47
/**
48
* @addtogroup Enums
49
* @{
50
*/
51
/**
52
* PP_VideoCaptureStatus_Dev is an enumeration that defines the various possible
53
* states of a VideoCapture.
54
*/
55
typedef
enum
{
56
/**
57
* Initial state, capture is stopped.
58
*/
59
PP_VIDEO_CAPTURE_STATUS_STOPPED
= 0,
60
/**
61
* StartCapture has been called, but capture hasn't started yet.
62
*/
63
PP_VIDEO_CAPTURE_STATUS_STARTING
= 1,
64
/**
65
* Capture has been started.
66
*/
67
PP_VIDEO_CAPTURE_STATUS_STARTED
= 2,
68
/**
69
* Capture has been started, but is paused because no buffer is available.
70
*/
71
PP_VIDEO_CAPTURE_STATUS_PAUSED
= 3,
72
/**
73
* StopCapture has been called, but capture hasn't stopped yet.
74
*/
75
PP_VIDEO_CAPTURE_STATUS_STOPPING
= 4
76
}
PP_VideoCaptureStatus_Dev
;
77
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_VideoCaptureStatus_Dev
, 4);
78
/**
79
* @}
80
*/
81
82
#endif
/* PPAPI_C_DEV_PP_VIDEO_CAPTURE_DEV_H_ */
83
pp_macros.h
PP_VIDEO_CAPTURE_STATUS_PAUSED
Definition:
pp_video_capture_dev.h:71
PP_VideoCaptureDeviceInfo_Dev::height
uint32_t height
Definition:
pp_video_capture_dev.h:36
PP_VIDEO_CAPTURE_STATUS_STOPPING
Definition:
pp_video_capture_dev.h:75
PP_VIDEO_CAPTURE_STATUS_STARTING
Definition:
pp_video_capture_dev.h:63
PP_VideoCaptureStatus_Dev
PP_VideoCaptureStatus_Dev
Definition:
pp_video_capture_dev.h:55
PP_VIDEO_CAPTURE_STATUS_STARTED
Definition:
pp_video_capture_dev.h:67
PP_VideoCaptureDeviceInfo_Dev::width
uint32_t width
Definition:
pp_video_capture_dev.h:32
pp_stdint.h
PP_VIDEO_CAPTURE_STATUS_STOPPED
Definition:
pp_video_capture_dev.h:59
PP_VideoCaptureDeviceInfo_Dev::frames_per_second
uint32_t frames_per_second
Definition:
pp_video_capture_dev.h:40
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoCaptureDeviceInfo_Dev, 12)
PP_VideoCaptureDeviceInfo_Dev
Definition:
pp_video_capture_dev.h:28
PP_COMPILE_ASSERT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_VideoCaptureStatus_Dev, 4)
Generated on Wed Apr 5 2017 11:09:16 for Pepper_47_C_interfaces by
1.8.6