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.

frame order

Guru 20755 points

Hello,

I'm Using DM8168 platform, Does the encoder H.264 receive frame in capture order (PTS) and output them in encode order (DTS) assuming also vice versa for the H.264 decoder ? Are this buffering should be supplied by framework, and the change of frame order will be done only by codec (not framework) ?

Thanks,

Ran

  • Yes encoder receive frames in capture order and produce in encode order. vice cersa in decoder
    You can look the codec interface guide for more details but in genral as you said buffer allocation is with framework and codec can lock and unlock the buffers -  framework shares the id of each buffer in a encode/decode call and codec sends back that which buffer (via the ID) can be made free. in case codec want the buffer to lock for future usage - it will not send the id to free the buffer

     

    With Regards,
    pramod