Hello
we want to change "runtime" the resolution of the OMX VFCC component in "IlClient" Omx examples. We have a sensor attached to the dm8168 and when i change the resolution on the sensor, i want to change the resolution of the component.
I see from the forums that on the VENC component it's ieasy to do by changing the dynamic parameters without changing component state. If I have to change the resolution on VFCC component seems that I have to stop, reconfigure and restar the component. What are the correct steps to follow? I tried
Running->Idle->-Port Disable->Loaded->Set/get Parameters->EnablePorts->Idle->Running
OMXCOM_sendCommand(omxComp, OMX_CommandStateSet, OMX_StateIdle, omxComp->done_sem); // DISABLE ENABLE INPORT OMXCOM_sendCommand(omxComp, OMX_CommandPortDisable, 0, omxComp->port_sem); OMXCOM_sendCommand(omxComp, OMX_CommandPortDisable, omxComp->startOutportIndex, omxComp->port_sem); // Metto in load OMXCOM_sendCommand(omxComp, OMX_CommandStateSet, OMX_StateLoaded, omxComp->done_sem); // Reconfigure ret |= ENC_configure_hw_channel(omxComp); // ENCODER ENABLE INPORT OMXCOM_sendCommand(omxComp, OMX_CommandPortEnable, 0, omxComp->port_sem); OMXCOM_sendCommand(omxComp, OMX_CommandPortEnable, omxComp->startOutportIndex, omxComp->port_sem); OMXCOM_sendCommand(omxComp, OMX_CommandStateSet, OMX_StateIdle,omxComp->done_sem); // Execute Encode Component OMXCOM_sendCommand(omxComp, OMX_CommandStateSet, OMX_StateExecuting, omxComp->done_sem);
The last command (EXECUTING) fails (the callback says "Incorrect state transition"). What I have to do?