My Project
MMAL to OMX IL conversion utilities

Classes

union  OMX_FORMAT_PARAM_TYPE
 

Typedefs

typedef union OMX_FORMAT_PARAM_TYPE OMX_FORMAT_PARAM_TYPE
 

Functions

OMX_ERRORTYPE mmalil_error_to_omx (MMAL_STATUS_T status)
 
MMAL_STATUS_T mmalil_error_to_mmal (OMX_ERRORTYPE error)
 
uint32_t mmalil_buffer_flags_to_mmal (OMX_U32 flags)
 
OMX_U32 mmalil_buffer_flags_to_omx (uint32_t flags)
 
uint32_t mmalil_video_buffer_flags_to_mmal (OMX_U32 flags)
 
OMX_U32 mmalil_video_buffer_flags_to_omx (uint32_t flags)
 
void mmalil_buffer_header_to_omx (OMX_BUFFERHEADERTYPE *omx, MMAL_BUFFER_HEADER_T *mmal)
 
void mmalil_buffer_header_to_mmal (MMAL_BUFFER_HEADER_T *mmal, OMX_BUFFERHEADERTYPE *omx)
 
OMX_PORTDOMAINTYPE mmalil_es_type_to_omx_domain (MMAL_ES_TYPE_T type)
 
MMAL_ES_TYPE_T mmalil_omx_domain_to_es_type (OMX_PORTDOMAINTYPE domain)
 
uint32_t mmalil_omx_audio_coding_to_encoding (OMX_AUDIO_CODINGTYPE coding)
 
OMX_AUDIO_CODINGTYPE mmalil_encoding_to_omx_audio_coding (uint32_t encoding)
 
uint32_t mmalil_omx_video_coding_to_encoding (OMX_VIDEO_CODINGTYPE coding)
 
OMX_VIDEO_CODINGTYPE mmalil_encoding_to_omx_video_coding (uint32_t encoding)
 
uint32_t mmalil_omx_image_coding_to_encoding (OMX_IMAGE_CODINGTYPE coding)
 
OMX_IMAGE_CODINGTYPE mmalil_encoding_to_omx_image_coding (uint32_t encoding)
 
uint32_t mmalil_omx_coding_to_encoding (uint32_t encoding, OMX_PORTDOMAINTYPE domain)
 
uint32_t mmalil_omx_color_format_to_encoding (OMX_COLOR_FORMATTYPE coding)
 
OMX_COLOR_FORMATTYPE mmalil_encoding_to_omx_color_format (uint32_t encoding)
 
uint32_t mmalil_omx_bayer_format_order_to_encoding (OMX_BAYERORDERTYPE bayer_order, OMX_COLOR_FORMATTYPE color_format)
 
OMX_BAYERORDERTYPE mmalil_encoding_to_omx_bayer_order (uint32_t encoding)
 
uint32_t mmalil_omx_color_space_to_mmal (OMX_COLORSPACETYPE coding)
 
OMX_COLORSPACETYPE mmalil_color_space_to_omx (uint32_t coding)
 
uint32_t mmalil_omx_video_profile_to_mmal (OMX_U32 level, OMX_VIDEO_CODINGTYPE coding)
 
OMX_U32 mmalil_video_profile_to_omx (uint32_t profile)
 
uint32_t mmalil_omx_video_level_to_mmal (OMX_U32 level, OMX_VIDEO_CODINGTYPE coding)
 
OMX_U32 mmalil_video_level_to_omx (uint32_t level)
 
MMAL_VIDEO_RATECONTROL_T mmalil_omx_video_ratecontrol_to_mmal (OMX_VIDEO_CONTROLRATETYPE omx)
 
OMX_VIDEO_CONTROLRATETYPE mmalil_video_ratecontrol_to_omx (MMAL_VIDEO_RATECONTROL_T mmal)
 
MMAL_VIDEO_INTRA_REFRESH_T mmalil_omx_video_intrarefresh_to_mmal (OMX_VIDEO_INTRAREFRESHTYPE omx)
 
OMX_INDEXTYPE mmalil_omx_audio_param_index (OMX_AUDIO_CODINGTYPE coding, OMX_U32 *size)
 
OMX_AUDIO_CODINGTYPE mmalil_omx_audio_param_index_to_coding (OMX_INDEXTYPE index)
 
MMAL_STATUS_T mmalil_omx_default_channel_mapping (OMX_AUDIO_CHANNELTYPE *channel_mapping, unsigned int nchannels)
 
MMAL_FOURCC_T mmalil_omx_audio_param_to_format (MMAL_ES_FORMAT_T *format, OMX_AUDIO_CODINGTYPE coding, OMX_FORMAT_PARAM_TYPE *param)
 
OMX_AUDIO_CODINGTYPE mmalil_format_to_omx_audio_param (OMX_FORMAT_PARAM_TYPE *param, OMX_INDEXTYPE *param_index, MMAL_ES_FORMAT_T *format)
 

Detailed Description

Typedef Documentation

◆ OMX_FORMAT_PARAM_TYPE

Union of all the OMX_VIDEO/AUDIO_PARAM types

Function Documentation

◆ mmalil_buffer_flags_to_mmal()

uint32_t mmalil_buffer_flags_to_mmal ( OMX_U32  flags)

Convert MMAL buffer header flags into OMX buffer header flags.

Parameters
flagsOMX buffer header flags.
Returns
MMAL buffer header flags.

◆ mmalil_buffer_flags_to_omx()

OMX_U32 mmalil_buffer_flags_to_omx ( uint32_t  flags)

Convert OMX buffer header flags into MMAL buffer header flags.

Parameters
flagsMMAL buffer header flags.
Returns
OMX buffer header flags.

◆ mmalil_buffer_header_to_mmal()

void mmalil_buffer_header_to_mmal ( MMAL_BUFFER_HEADER_T mmal,
OMX_BUFFERHEADERTYPE *  omx 
)

Convert an OMX buffer header into a MMAL buffer header.

Parameters
mmalPointer to the destination MMAL buffer header.
omxPointer to the source OMX buffer header.

◆ mmalil_buffer_header_to_omx()

void mmalil_buffer_header_to_omx ( OMX_BUFFERHEADERTYPE *  omx,
MMAL_BUFFER_HEADER_T mmal 
)

Convert a MMAL buffer header into an OMX buffer header. Note that only the fields which have a direct mapping between OMX and MMAL are converted.

Parameters
omxPointer to the destination OMX buffer header.
mmalPointer to the source MMAL buffer header.

◆ mmalil_color_space_to_omx()

OMX_COLORSPACETYPE mmalil_color_space_to_omx ( uint32_t  coding)

◆ mmalil_encoding_to_omx_audio_coding()

OMX_AUDIO_CODINGTYPE mmalil_encoding_to_omx_audio_coding ( uint32_t  encoding)

◆ mmalil_encoding_to_omx_bayer_order()

OMX_BAYERORDERTYPE mmalil_encoding_to_omx_bayer_order ( uint32_t  encoding)

◆ mmalil_encoding_to_omx_color_format()

OMX_COLOR_FORMATTYPE mmalil_encoding_to_omx_color_format ( uint32_t  encoding)

◆ mmalil_encoding_to_omx_image_coding()

OMX_IMAGE_CODINGTYPE mmalil_encoding_to_omx_image_coding ( uint32_t  encoding)

◆ mmalil_encoding_to_omx_video_coding()

OMX_VIDEO_CODINGTYPE mmalil_encoding_to_omx_video_coding ( uint32_t  encoding)

◆ mmalil_error_to_mmal()

MMAL_STATUS_T mmalil_error_to_mmal ( OMX_ERRORTYPE  error)

Convert OMX error codes into MMAL status codes.

Parameters
errorOMX error code.
Returns
MMAL status code.

◆ mmalil_error_to_omx()

OMX_ERRORTYPE mmalil_error_to_omx ( MMAL_STATUS_T  status)

Convert MMAL status codes into OMX error codes.

Parameters
statusMMAL status code.
Returns
OMX error code.

◆ mmalil_es_type_to_omx_domain()

OMX_PORTDOMAINTYPE mmalil_es_type_to_omx_domain ( MMAL_ES_TYPE_T  type)

◆ mmalil_format_to_omx_audio_param()

OMX_AUDIO_CODINGTYPE mmalil_format_to_omx_audio_param ( OMX_FORMAT_PARAM_TYPE param,
OMX_INDEXTYPE *  param_index,
MMAL_ES_FORMAT_T format 
)

Convert a MMAL elementary stream format into a OMX_IndexParamAudio structure.

Parameters
paramOMX_IndexParamAudio structure to update.
param_indexreturns the OMX_IndexParamAudio index corresponding to the format.
formatSource format structure.
Returns
The OMX aduio coding type if a match was found or OMX_AUDIO_CodingUnused otherwise.

◆ mmalil_omx_audio_coding_to_encoding()

uint32_t mmalil_omx_audio_coding_to_encoding ( OMX_AUDIO_CODINGTYPE  coding)

◆ mmalil_omx_audio_param_index()

OMX_INDEXTYPE mmalil_omx_audio_param_index ( OMX_AUDIO_CODINGTYPE  coding,
OMX_U32 *  size 
)

Get the OMX_IndexParamAudio index corresponding to a specified audio coding type.

Parameters
codingAudio coding type.
sizePointer used to return the size of the parameter.
Returns
OMX index or 0 if no match was found.

◆ mmalil_omx_audio_param_index_to_coding()

OMX_AUDIO_CODINGTYPE mmalil_omx_audio_param_index_to_coding ( OMX_INDEXTYPE  index)

Get the audio coding corresponding to a specified OMX_IndexParamAudio index.

Parameters
indexAudio coding type.
Returns
Audio coding type.

◆ mmalil_omx_audio_param_to_format()

MMAL_FOURCC_T mmalil_omx_audio_param_to_format ( MMAL_ES_FORMAT_T format,
OMX_AUDIO_CODINGTYPE  coding,
OMX_FORMAT_PARAM_TYPE param 
)

Convert an OMX_IndexParamAudio into a MMAL elementary stream format.

Parameters
formatFormat structure to update.
codingAudio coding type.
paramSource OMX_IndexParamAudio structure.
Returns
The MMAL encoding if a match was found or MMAL_ENCODING_UNKNOWN otherwise.

◆ mmalil_omx_bayer_format_order_to_encoding()

uint32_t mmalil_omx_bayer_format_order_to_encoding ( OMX_BAYERORDERTYPE  bayer_order,
OMX_COLOR_FORMATTYPE  color_format 
)

◆ mmalil_omx_coding_to_encoding()

uint32_t mmalil_omx_coding_to_encoding ( uint32_t  encoding,
OMX_PORTDOMAINTYPE  domain 
)

◆ mmalil_omx_color_format_to_encoding()

uint32_t mmalil_omx_color_format_to_encoding ( OMX_COLOR_FORMATTYPE  coding)

◆ mmalil_omx_color_space_to_mmal()

uint32_t mmalil_omx_color_space_to_mmal ( OMX_COLORSPACETYPE  coding)

◆ mmalil_omx_default_channel_mapping()

MMAL_STATUS_T mmalil_omx_default_channel_mapping ( OMX_AUDIO_CHANNELTYPE *  channel_mapping,
unsigned int  nchannels 
)

Setup a default channel mapping based on the number of channels

Parameters
channel_mappingThe output channel mapping
nchannelsNumber of channels
Returns
MMAL_SUCCESS if we managed to produce a channel mapping

◆ mmalil_omx_domain_to_es_type()

MMAL_ES_TYPE_T mmalil_omx_domain_to_es_type ( OMX_PORTDOMAINTYPE  domain)

◆ mmalil_omx_image_coding_to_encoding()

uint32_t mmalil_omx_image_coding_to_encoding ( OMX_IMAGE_CODINGTYPE  coding)

◆ mmalil_omx_video_coding_to_encoding()

uint32_t mmalil_omx_video_coding_to_encoding ( OMX_VIDEO_CODINGTYPE  coding)

◆ mmalil_omx_video_intrarefresh_to_mmal()

MMAL_VIDEO_INTRA_REFRESH_T mmalil_omx_video_intrarefresh_to_mmal ( OMX_VIDEO_INTRAREFRESHTYPE  omx)

◆ mmalil_omx_video_level_to_mmal()

uint32_t mmalil_omx_video_level_to_mmal ( OMX_U32  level,
OMX_VIDEO_CODINGTYPE  coding 
)

◆ mmalil_omx_video_profile_to_mmal()

uint32_t mmalil_omx_video_profile_to_mmal ( OMX_U32  level,
OMX_VIDEO_CODINGTYPE  coding 
)

◆ mmalil_omx_video_ratecontrol_to_mmal()

MMAL_VIDEO_RATECONTROL_T mmalil_omx_video_ratecontrol_to_mmal ( OMX_VIDEO_CONTROLRATETYPE  omx)

◆ mmalil_video_buffer_flags_to_mmal()

uint32_t mmalil_video_buffer_flags_to_mmal ( OMX_U32  flags)

Convert MMAL buffer header type video specific flags into OMX buffer header flags.

Parameters
flagsOMX buffer header flags.
Returns
MMAL buffer header video specific flags.

◆ mmalil_video_buffer_flags_to_omx()

OMX_U32 mmalil_video_buffer_flags_to_omx ( uint32_t  flags)

Convert OMX buffer header flags into MMAL buffer header type video specific flags.

Parameters
flagsMMAL buffer header video specific flags.
Returns
OMX buffer header flags.

◆ mmalil_video_level_to_omx()

OMX_U32 mmalil_video_level_to_omx ( uint32_t  level)

◆ mmalil_video_profile_to_omx()

OMX_U32 mmalil_video_profile_to_omx ( uint32_t  profile)

◆ mmalil_video_ratecontrol_to_omx()

OMX_VIDEO_CONTROLRATETYPE mmalil_video_ratecontrol_to_omx ( MMAL_VIDEO_RATECONTROL_T  mmal)