My Project
|
00001 /* 00002 Copyright (c) 2012, Broadcom Europe Ltd 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without 00006 modification, are permitted provided that the following conditions are met: 00007 * Redistributions of source code must retain the above copyright 00008 notice, this list of conditions and the following disclaimer. 00009 * Redistributions in binary form must reproduce the above copyright 00010 notice, this list of conditions and the following disclaimer in the 00011 documentation and/or other materials provided with the distribution. 00012 * Neither the name of the copyright holder nor the 00013 names of its contributors may be used to endorse or promote products 00014 derived from this software without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 00017 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 00018 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00019 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY 00020 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00021 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00022 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 00023 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00024 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00025 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 */ 00027 00028 #ifndef MMAL_PARAMETERS_COMMON_H 00029 #define MMAL_PARAMETERS_COMMON_H 00030 00043 #define MMAL_PARAMETER_GROUP_COMMON (0<<16) 00044 00045 #define MMAL_PARAMETER_GROUP_CAMERA (1<<16) 00046 00047 #define MMAL_PARAMETER_GROUP_VIDEO (2<<16) 00048 00049 #define MMAL_PARAMETER_GROUP_AUDIO (3<<16) 00050 00051 #define MMAL_PARAMETER_GROUP_CLOCK (4<<16) 00052 00053 #define MMAL_PARAMETER_GROUP_MIRACAST (5<<16) 00054 00055 00060 enum { 00061 MMAL_PARAMETER_UNUSED 00062 = MMAL_PARAMETER_GROUP_COMMON, 00063 MMAL_PARAMETER_SUPPORTED_ENCODINGS, 00064 MMAL_PARAMETER_URI, 00065 MMAL_PARAMETER_CHANGE_EVENT_REQUEST, 00066 MMAL_PARAMETER_ZERO_COPY, 00067 MMAL_PARAMETER_BUFFER_REQUIREMENTS, 00068 MMAL_PARAMETER_STATISTICS, 00069 MMAL_PARAMETER_CORE_STATISTICS, 00070 MMAL_PARAMETER_MEM_USAGE, 00071 MMAL_PARAMETER_BUFFER_FLAG_FILTER, 00072 MMAL_PARAMETER_SEEK, 00073 MMAL_PARAMETER_POWERMON_ENABLE, 00074 MMAL_PARAMETER_LOGGING, 00075 }; 00076 00083 typedef struct MMAL_PARAMETER_HEADER_T 00084 { 00085 uint32_t id; 00086 uint32_t size; 00087 } MMAL_PARAMETER_HEADER_T; 00088 00093 typedef struct MMAL_PARAMETER_CHANGE_EVENT_REQUEST_T 00094 { 00095 MMAL_PARAMETER_HEADER_T hdr; 00096 00097 uint32_t change_id; 00098 MMAL_BOOL_T enable; 00099 } MMAL_PARAMETER_CHANGE_EVENT_REQUEST_T; 00100 00103 typedef struct MMAL_PARAMETER_BUFFER_REQUIREMENTS_T 00104 { 00105 MMAL_PARAMETER_HEADER_T hdr; 00106 00107 uint32_t buffer_num_min; 00108 uint32_t buffer_size_min; 00109 uint32_t buffer_alignment_min; 00111 uint32_t buffer_num_recommended; 00113 uint32_t buffer_size_recommended; 00115 } MMAL_PARAMETER_BUFFER_REQUIREMENTS_T; 00116 00120 typedef struct MMAL_PARAMETER_SEEK_T 00121 { 00122 MMAL_PARAMETER_HEADER_T hdr; 00123 00124 int64_t offset; 00125 uint32_t flags; 00127 #define MMAL_PARAM_SEEK_FLAG_PRECISE 0x1 00128 #define MMAL_PARAM_SEEK_FLAG_FORWARD 0x2 00130 } MMAL_PARAMETER_SEEK_T; 00131 00136 typedef struct MMAL_PARAMETER_STATISTICS_T 00137 { 00138 MMAL_PARAMETER_HEADER_T hdr; 00139 00140 uint32_t buffer_count; 00141 uint32_t frame_count; 00142 uint32_t frames_skipped; 00143 uint32_t frames_discarded; 00144 uint32_t eos_seen; 00145 uint32_t maximum_frame_bytes; 00146 int64_t total_bytes; 00147 uint32_t corrupt_macroblocks; 00148 } MMAL_PARAMETER_STATISTICS_T; 00149 00150 typedef enum 00151 { 00152 MMAL_CORE_STATS_RX, 00153 MMAL_CORE_STATS_TX, 00154 MMAL_CORE_STATS_MAX = 0x7fffffff /* Force 32 bit size for this enum */ 00155 } MMAL_CORE_STATS_DIR; 00156 00159 typedef struct MMAL_PARAMETER_CORE_STATISTICS_T 00160 { 00161 MMAL_PARAMETER_HEADER_T hdr; 00162 MMAL_CORE_STATS_DIR dir; 00163 MMAL_BOOL_T reset; 00164 MMAL_CORE_STATISTICS_T stats; 00165 } MMAL_PARAMETER_CORE_STATISTICS_T; 00166 00170 typedef struct MMAL_PARAMETER_MEM_USAGE_T 00171 { 00172 MMAL_PARAMETER_HEADER_T hdr; 00174 uint32_t pool_mem_alloc_size; 00175 } MMAL_PARAMETER_MEM_USAGE_T; 00176 00180 typedef struct MMAL_PARAMETER_LOGGING_T 00181 { 00182 MMAL_PARAMETER_HEADER_T hdr; 00183 uint32_t set; 00184 uint32_t clear; 00185 } MMAL_PARAMETER_LOGGING_T; 00186 00187 #endif /* MMAL_PARAMETERS_COMMON_H */ 00188