v4l2videodec with imx6 coda

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Jul 28 06:51:37 PDT 2014


Le lundi 28 juillet 2014 à 09:44 -0400, Nicolas Dufresne a écrit :
> > The s5p-mfc decoder does support VIDIOC_DECODER_CMD / V4L2_DEC_CMD_STOP
> > to enter its stream-end state. After dequeueing the last decoded frame,
> > the driver will generate a V4L2_EVENT_EOS event.
> 
> I think I got tricked by a really stupid bug. See:
> 
>  drivers/media/platform/s5p-mfc/s5p_mfc_dec.c:832
> 
> They switch on V4L2_ENC_CMD_STOP instead of V4L2_DEC_CMD_STOP. That's
> why I never found that support (and the the code I initially wrote never
> worked). Please feel free to propose patch for that (fix kernel MFC, and
> propose support to GStreamer). I'd like to keep a fallback to empty
> buffers (for older kernel with MFC if possible). On the capture side,
> was the conclusion to use an EOS event or an EOS flag ? That also need
> to be implemented in GStreamer. Events are currently not implemented at
> all, that includes the very recent EVENT_SOURCE_CHANGE, used for
> resolution change.

For the reference:
https://bugzilla.gnome.org/show_bug.cgi?id=733864




More information about the gstreamer-devel mailing list