Skip to content
  • Mirela Rabulea's avatar
    MLK-20289: mxc-jpeg: Fix jpeg-dec for use with gst-launch-1.0 & v4l2video5jpegdec · 51aa7c03
    Mirela Rabulea authored
    
    
    Set allow_zero_bytesused, to let gst-launch work, this lead to the need
    to implement V4L2_DEC_CMD_STOP, dummy for now.
    
    Implement g_fmt_vid_cap, called by gst-launch before queuing any capture
    buffers, this also required some fixes in jpeg_parse and buf_queue,
    which wrongly assumed capture buffers are enqueued before output buffers.
    So, import the resolution and pixel-format from the output queue,
    if the capture queue is not set-up yet.
    
    Add release_active_buffers and use it in stop_streaming to properly
    clean-up active buffers, this fixes warning at gst-launch stop with Ctrl+C
    
    Check for decoding/encoding error in interrupt handler and print CAST IP
    error status, found some yuv422 images with errors in SOS marker.
    
    Partially implemented subscribe_event, V4L2_EVENT_EOS is not working yet,
    will be addressed in a subsequent fix.
    
    Signed-off-by: default avatarMirela Rabulea <mirela.rabulea@nxp.com>
    Reviewed-by: default avatarLaurentiu Palcu &lt;laurentiu.palcu@nxp.com, Robert Chiras <robert.chiras@nxp.com>
    51aa7c03
Loading