My Project
mmal_util_params.h File Reference

Go to the source code of this file.

Functions

MMAL_STATUS_T mmal_port_parameter_set_boolean (MMAL_PORT_T *port, uint32_t id, MMAL_BOOL_T value)
 
MMAL_STATUS_T mmal_port_parameter_get_boolean (MMAL_PORT_T *port, uint32_t id, MMAL_BOOL_T *value)
 
MMAL_STATUS_T mmal_port_parameter_set_uint64 (MMAL_PORT_T *port, uint32_t id, uint64_t value)
 
MMAL_STATUS_T mmal_port_parameter_get_uint64 (MMAL_PORT_T *port, uint32_t id, uint64_t *value)
 
MMAL_STATUS_T mmal_port_parameter_set_int64 (MMAL_PORT_T *port, uint32_t id, int64_t value)
 
MMAL_STATUS_T mmal_port_parameter_get_int64 (MMAL_PORT_T *port, uint32_t id, int64_t *value)
 
MMAL_STATUS_T mmal_port_parameter_set_uint32 (MMAL_PORT_T *port, uint32_t id, uint32_t value)
 
MMAL_STATUS_T mmal_port_parameter_get_uint32 (MMAL_PORT_T *port, uint32_t id, uint32_t *value)
 
MMAL_STATUS_T mmal_port_parameter_set_int32 (MMAL_PORT_T *port, uint32_t id, int32_t value)
 
MMAL_STATUS_T mmal_port_parameter_get_int32 (MMAL_PORT_T *port, uint32_t id, int32_t *value)
 
MMAL_STATUS_T mmal_port_parameter_set_rational (MMAL_PORT_T *port, uint32_t id, MMAL_RATIONAL_T value)
 
MMAL_STATUS_T mmal_port_parameter_get_rational (MMAL_PORT_T *port, uint32_t id, MMAL_RATIONAL_T *value)
 
MMAL_STATUS_T mmal_port_parameter_set_string (MMAL_PORT_T *port, uint32_t id, const char *value)
 
MMAL_STATUS_T mmal_port_parameter_set_bytes (MMAL_PORT_T *port, uint32_t id, const uint8_t *data, unsigned int size)
 
MMAL_STATUS_T mmal_util_port_set_uri (MMAL_PORT_T *port, const char *uri)
 
MMAL_STATUS_T mmal_util_set_display_region (MMAL_PORT_T *port, MMAL_DISPLAYREGION_T *region)
 
MMAL_STATUS_T mmal_util_camera_use_stc_timestamp (MMAL_PORT_T *port, MMAL_CAMERA_STC_MODE_T mode)
 
MMAL_STATUS_T mmal_util_get_core_port_stats (MMAL_PORT_T *port, MMAL_CORE_STATS_DIR dir, MMAL_BOOL_T reset, MMAL_CORE_STATISTICS_T *stats)
 

Detailed Description

Utility functions to set some common parameters.

Definition in file mmal_util_params.h.

Function Documentation

◆ mmal_port_parameter_get_boolean()

MMAL_STATUS_T mmal_port_parameter_get_boolean ( MMAL_PORT_T port,
uint32_t  id,
MMAL_BOOL_T value 
)

Helper function to get the value of a boolean parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_get_int32()

MMAL_STATUS_T mmal_port_parameter_get_int32 ( MMAL_PORT_T port,
uint32_t  id,
int32_t *  value 
)

Helper function to get the value of a 32 bits signed integer parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_get_int64()

MMAL_STATUS_T mmal_port_parameter_get_int64 ( MMAL_PORT_T port,
uint32_t  id,
int64_t *  value 
)

Helper function to get the value of a 64 bits signed integer parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_get_rational()

MMAL_STATUS_T mmal_port_parameter_get_rational ( MMAL_PORT_T port,
uint32_t  id,
MMAL_RATIONAL_T value 
)

Helper function to get the value of a rational parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_get_uint32()

MMAL_STATUS_T mmal_port_parameter_get_uint32 ( MMAL_PORT_T port,
uint32_t  id,
uint32_t *  value 
)

Helper function to get the value of a 32 bits unsigned integer parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_get_uint64()

MMAL_STATUS_T mmal_port_parameter_get_uint64 ( MMAL_PORT_T port,
uint32_t  id,
uint64_t *  value 
)

Helper function to get the value of a 64 bits unsigned integer parameter.

Parameters
portport on which to get the parameter
idparameter id
valuepointer to where the value will be returned
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_boolean()

MMAL_STATUS_T mmal_port_parameter_set_boolean ( MMAL_PORT_T port,
uint32_t  id,
MMAL_BOOL_T  value 
)

Helper function to set the value of a boolean parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_bytes()

MMAL_STATUS_T mmal_port_parameter_set_bytes ( MMAL_PORT_T port,
uint32_t  id,
const uint8_t *  data,
unsigned int  size 
)

Helper function to set the value of an array of bytes parameter.

Parameters
portport on which to set the parameter
idparameter id
datapointer to the array of bytes
sizesize of the array of bytes
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_int32()

MMAL_STATUS_T mmal_port_parameter_set_int32 ( MMAL_PORT_T port,
uint32_t  id,
int32_t  value 
)

Helper function to set the value of a 32 bits signed integer parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_int64()

MMAL_STATUS_T mmal_port_parameter_set_int64 ( MMAL_PORT_T port,
uint32_t  id,
int64_t  value 
)

Helper function to set the value of a 64 bits signed integer parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_rational()

MMAL_STATUS_T mmal_port_parameter_set_rational ( MMAL_PORT_T port,
uint32_t  id,
MMAL_RATIONAL_T  value 
)

Helper function to set the value of a rational parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_string()

MMAL_STATUS_T mmal_port_parameter_set_string ( MMAL_PORT_T port,
uint32_t  id,
const char *  value 
)

Helper function to set the value of a string parameter.

Parameters
portport on which to set the parameter
idparameter id
valuenull-terminated string value
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_uint32()

MMAL_STATUS_T mmal_port_parameter_set_uint32 ( MMAL_PORT_T port,
uint32_t  id,
uint32_t  value 
)

Helper function to set the value of a 32 bits unsigned integer parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_port_parameter_set_uint64()

MMAL_STATUS_T mmal_port_parameter_set_uint64 ( MMAL_PORT_T port,
uint32_t  id,
uint64_t  value 
)

Helper function to set the value of a 64 bits unsigned integer parameter.

Parameters
portport on which to set the parameter
idparameter id
valuevalue to set the parameter to
Returns
MMAL_SUCCESS or error

◆ mmal_util_camera_use_stc_timestamp()

MMAL_STATUS_T mmal_util_camera_use_stc_timestamp ( MMAL_PORT_T port,
MMAL_CAMERA_STC_MODE_T  mode 
)

Tell the camera to use the STC for timestamps rather than the clock.

Parameters
portport to configure
modeSTC mode to use
Returns
MMAL_SUCCESS or error

◆ mmal_util_get_core_port_stats()

MMAL_STATUS_T mmal_util_get_core_port_stats ( MMAL_PORT_T port,
MMAL_CORE_STATS_DIR  dir,
MMAL_BOOL_T  reset,
MMAL_CORE_STATISTICS_T stats 
)

Get the MMAL core statistics for a given port.

Parameters
portport to query
dirport direction
resetreset the stats as well
statsfilled in with results
Returns
MMAL_SUCCESS or error

◆ mmal_util_port_set_uri()

MMAL_STATUS_T mmal_util_port_set_uri ( MMAL_PORT_T port,
const char *  uri 
)

Helper function to set a MMAL_PARAMETER_URI_T parameter on a port.

Parameters
portport on which to set the parameter
uriURI string
Returns
MMAL_SUCCESS or error

◆ mmal_util_set_display_region()

MMAL_STATUS_T mmal_util_set_display_region ( MMAL_PORT_T port,
MMAL_DISPLAYREGION_T *  region 
)

Set the display region.

Parameters
portport to configure
regionregion
Returns
MMAL_SUCCESS or error