[Gstreamer-openmax] [PATCH] add some utility macros to get/set core and port configs/params
Felipe Contreras
felipe.contreras at gmail.com
Mon Mar 1 07:43:55 PST 2010
On Sat, Feb 27, 2010 at 8:24 PM, Rob Clark <rob at ti.com> wrote:
> btw, I'm thinking about this one again..
>
> how about, in case of setting all params:
>
> OMX_AUDIO_PARAM_PCMMODETYPE param;
>
> G_OMX_INIT_PARAM (param);
I think it should be:
G_OMX_INIT_PARAM (OMX_AUDIO_PARAM_PCMMODETYPE, param);
> ... set params ...
>
> G_OMX_PORT_SET_PARAM (port, OMX_IndexParamAudioPcm, ¶m);
I don't see a big difference to:
param.nPortIndex = 1;
OMX_SetParameter(omx_base->gomx->omx_handle, OMX_IndexParamAudioPcm, ¶m);
> or in case where you just want to set a few params:
>
> OMX_AUDIO_PARAM_PCMMODETYPE param;
You forgot the init I guess.
> G_OMX_PORT_GET_PARAM (port, OMX_IndexParamAudioPcm, ¶m);
>
> ... set params ...
>
> G_OMX_PORT_SET_PARAM (port, OMX_IndexParamAudioPcm, ¶m);
Again, I don't see a big difference to:
param.nPortIndex = 1;
OMX_GetParameter(omx_base->gomx->omx_handle, OMX_IndexParamAudioPcm, ¶m);
... set params ...
OMX_SetParameter(omx_base->gomx->omx_handle, OMX_IndexParamAudioPcm, ¶m);
Cheers.
--
Felipe Contreras
More information about the Gstreamer-openmax
mailing list