My Project
mmal_util.h File Reference

Go to the source code of this file.

Macros

#define MMAL_OFFSET(TYPE, FIELD)   ((size_t)((uint8_t *)&((TYPE*)0)->FIELD - (uint8_t *)0))
 

Functions

const char * mmal_status_to_string (MMAL_STATUS_T status)
 
uint32_t mmal_encoding_stride_to_width (uint32_t encoding, uint32_t stride)
 
uint32_t mmal_encoding_width_to_stride (uint32_t encoding, uint32_t width)
 
uint32_t mmal_encoding_get_slice_variant (uint32_t encoding)
 
const char * mmal_port_type_to_string (MMAL_PORT_TYPE_T type)
 
MMAL_PARAMETER_HEADER_Tmmal_port_parameter_alloc_get (MMAL_PORT_T *port, uint32_t id, uint32_t size, MMAL_STATUS_T *status)
 
void mmal_port_parameter_free (MMAL_PARAMETER_HEADER_T *param)
 
void mmal_buffer_header_copy_header (MMAL_BUFFER_HEADER_T *dest, const MMAL_BUFFER_HEADER_T *src)
 
MMAL_POOL_Tmmal_port_pool_create (MMAL_PORT_T *port, unsigned int headers, uint32_t payload_size)
 
void mmal_port_pool_destroy (MMAL_PORT_T *port, MMAL_POOL_T *pool)
 
void mmal_log_dump_port (MMAL_PORT_T *port)
 
void mmal_log_dump_format (MMAL_ES_FORMAT_T *format)
 
MMAL_PORT_Tmmal_util_get_port (MMAL_COMPONENT_T *comp, MMAL_PORT_TYPE_T type, unsigned index)
 
char * mmal_4cc_to_string (char *buf, size_t len, uint32_t fourcc)
 
int mmal_util_rgb_order_fixed (MMAL_PORT_T *port)