Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec/mmaldec: use decoupled dataflow

2021-09-24 Thread Ming Shun Ho
On Fri, Sep 24, 2021 at 5:30 PM Jan Ekström wrote: > > On Fri, Sep 24, 2021 at 12:06 PM Ho Ming Shun wrote: > > > > MMAL is an fundamentally an asynchronous decoder, which was a bad fit > > for the legacy dataflow API. Often multiple packets are enqueued before > > a flood of frames are returned

Re: [FFmpeg-devel] [PATCH v2 1/4] avcodec/mmaldec: use decoupled dataflow

2021-09-24 Thread Jan Ekström
On Fri, Sep 24, 2021 at 12:06 PM Ho Ming Shun wrote: > > MMAL is an fundamentally an asynchronous decoder, which was a bad fit > for the legacy dataflow API. Often multiple packets are enqueued before > a flood of frames are returned from MMAL. > > The previous lockstep dataflow meant that any del

[FFmpeg-devel] [PATCH v2 1/4] avcodec/mmaldec: use decoupled dataflow

2021-09-24 Thread Ho Ming Shun
MMAL is an fundamentally an asynchronous decoder, which was a bad fit for the legacy dataflow API. Often multiple packets are enqueued before a flood of frames are returned from MMAL. The previous lockstep dataflow meant that any delay in returning packets from the VPU would cause ctx->queue_decod