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.

basic question about port disable/enable

Hi,

I'm trying to change output port parameter of VDEC to apply resolution change.

So I did following step:

1. send disable command of VDEC output port

2. get parameter of VDEC output port

3. set parameter of VDEC output port with new frame size

4. send enable command of VDEC output port

But in step 4, it does not restart output port.

In step 1, it shows debug message as

"[m3video] OMX_TI_VIDDEC_CommandNotify() Cmd:OMX_CommandPortDisable"

which is first line of OMX_TI_VIDDEC_CommandNotify().

Step 4 does not print above line. 

 

Why doesn't it enable port? 

Thanks for any adivice.

  • Hi,

    Can you let us know in which OMX_State is VDEC when you send the PortDisable command? Also I am assuming that you are waiting for PortDisable to complete in Step 1 above. Also which version of SDK are you using?

    Regards,

    Anirban

  • Hi Anirban, thanks for the reply.

     

    VDEC is in OMX_StateExecuting (because I wanted to change port parameter dynamically).

    Shoud it be done in OMX_StateIdle ?

     

    I added another debug message and found it was blocking right after calling "OMX_BASE_DIO_Close()" (or OMX_BASE_DIO_Open()).

    So Step 4 did not print debug message.

     

    My SDK is 5009. I also have 5011 and compared vdec.c of 5009, it has some changes.

     

    Thank you for the further advice.

     

    PS. Could you tell me where I can find any reference document about "IVA server(scheduler)"?