This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OpenMAX decoder status

I am trying to retrieve the status information from a running decoder in OpenMAX (EZSDK 5.04).

OMX_VIDEO_CONFIG_STATUS decode_status;
OMX_INIT_PARAM(&decode_status);
decode_status.nPortIndex = port;
OMX_GetConfig(decoder_handle, OMX_TI_IndexConfigStatus, &decode_status);

Used on the input port of a decoder, the GetConfig() returns OMX_ErrorUnsupportedIndex.
Used on the output port, it returns OMX_ErrorNotImplemented.

Am I doing something incorrectly here?  Alternatively, is there some other way to retrieve the IH264VDEC_Status or similar structures?

Thanks,
- Mark

  • Mark,

    XDM GetStatus is not implemented in OMX. For static/dynamic parameters, you can use setParam/GetParam with static/dynamic params indices.

    Regards

    Vimal

  • Hi Vimal,

    Thank you for the reply.  The real use case here was to find the output resolution of an H.264 decoder (when it changes as the stream changes), which as far as I can tell is only available in the IH264VDEC_Status structure, not in the IH264VDEC_DynamicParams.  Other elements of that structure would be nice to know, but certainly nothing like as important.  I currently have a hacky solution which partially decodes the bitstream on the ARM to pick out that resolution information - it is ugly and probably not sufficiently general for all bitstreams (hence the desire to just ask the decoder), but I can live with it for now if the feature is not implemented.

    - Mark

  • Mark,

    For runtime resolution change, decoder would give a message OMX_EventPortSettingsChanged, but yes still status is not known. We would try to add such config in next release. It is scheduled to be in October last week.

    Regards

    Vimal