I’m a freshman to Openmax.Now I’m using a single decoder component to decode H.264 file.Here is my steps:
first,call OMX_GetHandle to init the component;
second,call OMX_GetParameter and OMX_SetParameter to set the component’s parameters;
third,call OMX_SendCommand to set the component from load to idle;
fourth,allocate enough buffers myself,then call OMX_UseBuffer to attach the buffers to the component’s ports;
fifth;set the component from idle to executing;
sixth,read the H.264 file ,write the compressed data to input buffer,call OMX_FillThisBuffer and OMX_EmptyThisBuffer to begin decode and wanna get the decoded data in the OMX_FillBufferDone function.
The test file is generated by JM86,only contain one frame,that means it doesn’t need circulation.
When I run the program,the print information tells me
component gethandle success,
TCC_VPU_DEC VPU_DEC_REG_FRAME_BUFFER OK!
VDEC_DEC_SEQ_HEADER - Success,
Last Key Frame Detect!
gsVpuDecOutput.m_DecOutInfo.m_iDecodingStatus=1; // means Decode success gsVpuDecOutput.m_DecOutInfo.m_iOutputStatus=0; // means Output failed I don't know why the program can decode but no output,have I missed something ?Anyone please help me out! Thank you for your kindness!