Go to the source code of this file.
Support for setting/getting parameters as string values.
Definition in file mmal_param_convert.h.
◆ mmal_parse_geometry()
Parse a geometry for a rectangle
e.g. 100*100+50+75 or 200*150
- Parameters
-
dest | filled in with result |
str | string to convert |
- Returns
- MMAL_SUCCESS or error code
◆ mmal_parse_int()
Parse an integer, e.g. -10, 0x1A, etc.
- Parameters
-
dest | filled in with result |
str | string to convert |
- Returns
- MMAL_SUCCESS or error code
◆ mmal_parse_rational()
Parse a rational number. e.g. "30000/1001", "30", etc.
- Parameters
-
dest | filled in with result |
str | string to convert |
- Returns
- MMAL_SUCCESS or error code
◆ mmal_parse_uint()
MMAL_STATUS_T mmal_parse_uint |
( |
unsigned int * |
dest, |
|
|
const char * |
str |
|
) |
| |
Parse an unsigned integer, e.g. 10, 0x1A, etc.
- Parameters
-
dest | filled in with result |
str | string to convert |
- Returns
- MMAL_SUCCESS or error code
◆ mmal_parse_video_codec()
MMAL_STATUS_T mmal_parse_video_codec |
( |
uint32_t * |
dest, |
|
|
const char * |
str |
|
) |
| |
Parse a video codec name (something that can be encoded/decoded)
- Parameters
-
str | string to convert |
dest | filled in with result |
- Returns
- MMAL_SUCCESS or error code
◆ mmal_parse_video_size()
MMAL_STATUS_T mmal_parse_video_size |
( |
uint32_t * |
w, |
|
|
uint32_t * |
h, |
|
|
const char * |
str |
|
) |
| |
Parse a video size. e.g. "1080p" gives 1920x1080.
- Parameters
-
w | width result |
h | height result |
str | string to convert |
- Returns
- MMAL_SUCCESS or error code