My Project
mmal_parameters_common.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2012, Broadcom Europe Ltd
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the copyright holder nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef MMAL_PARAMETERS_COMMON_H
29 #define MMAL_PARAMETERS_COMMON_H
30 
43 #define MMAL_PARAMETER_GROUP_COMMON (0<<16)
44 
45 #define MMAL_PARAMETER_GROUP_CAMERA (1<<16)
46 
47 #define MMAL_PARAMETER_GROUP_VIDEO (2<<16)
48 
49 #define MMAL_PARAMETER_GROUP_AUDIO (3<<16)
50 
51 #define MMAL_PARAMETER_GROUP_CLOCK (4<<16)
52 
53 #define MMAL_PARAMETER_GROUP_MIRACAST (5<<16)
54 
55 
60 enum {
78 };
79 
87 {
88  uint32_t id;
89  uint32_t size;
91 
97 {
99 
100  uint32_t change_id;
103 
107 {
109 
110  uint32_t buffer_num_min;
111  uint32_t buffer_size_min;
119 
123 typedef struct MMAL_PARAMETER_SEEK_T
124 {
126 
127  int64_t offset;
128  uint32_t flags;
130 #define MMAL_PARAM_SEEK_FLAG_PRECISE 0x1
131 #define MMAL_PARAM_SEEK_FLAG_FORWARD 0x2
133 } MMAL_PARAMETER_SEEK_T;
134 
140 {
142 
143  uint32_t buffer_count;
144  uint32_t frame_count;
145  uint32_t frames_skipped;
146  uint32_t frames_discarded;
147  uint32_t eos_seen;
149  int64_t total_bytes;
152 
153 typedef enum
154 {
157  MMAL_CORE_STATS_MAX = 0x7fffffff /* Force 32 bit size for this enum */
159 
163 {
169 
174 {
179 
184 {
186  uint32_t set;
187  uint32_t clear;
189 
190 #endif /* MMAL_PARAMETERS_COMMON_H */
191 
struct MMAL_PARAMETER_BUFFER_REQUIREMENTS_T MMAL_PARAMETER_BUFFER_REQUIREMENTS_T
struct MMAL_PARAMETER_LOGGING_T MMAL_PARAMETER_LOGGING_T
struct MMAL_PARAMETER_CORE_STATISTICS_T MMAL_PARAMETER_CORE_STATISTICS_T
struct MMAL_PARAMETER_HEADER_T MMAL_PARAMETER_HEADER_T
struct MMAL_PARAMETER_MEM_USAGE_T MMAL_PARAMETER_MEM_USAGE_T
MMAL_PARAMETER_HEADER_T hdr
struct MMAL_PARAMETER_CHANGE_EVENT_REQUEST_T MMAL_PARAMETER_CHANGE_EVENT_REQUEST_T
MMAL_PARAMETER_HEADER_T hdr
struct MMAL_PARAMETER_STATISTICS_T MMAL_PARAMETER_STATISTICS_T
#define MMAL_PARAMETER_GROUP_COMMON
int32_t MMAL_BOOL_T
Definition: mmal_common.h:60