Re: [EXT] Re: [PATCH 0/5] Add V4L2 driver for i.MX8 JPEG Encoder/Decoder
From: Mirela Rabulea
Date: Fri Nov 08 2019 - 08:36:49 EST
Hi Hans,
On Mi, 2019-11-06 at 17:52 +0100, Hans Verkuil wrote:
> Â Â Â test Scaling: OK
> The presence of a scaler is suspicious: is the encoder indeed
> capable of scaling? I suspect this is a bug.
No, it's not capable of scaling. You suspect a bug in the driver or the
tests?
> Codec ioctls:
> > ÂÂÂÂÂÂtest VIDIOC_(TRY_)ENCODER_CMD: OK
> The presence of this...
>
> >
> > ÂÂÂÂÂÂtest VIDIOC_G_ENC_INDEX: OK (Not Supported)
> > ÂÂÂÂÂÂtest VIDIOC_(TRY_)DECODER_CMD: OK
> ...and this is also strange for a JPEG codec. These ioctls are
> typically only
> needed for MPEG/H264/etc. codecs, and not for a simple JPEG codec.
>
> The same issues are found for the JPEG decoder.
I implemented the CMD_STOP for both encoder & decoder, because it was
requested by our developer for gstreamer plugin for this codec.
The context in which this was requested was for playing MJPEG videos (a
concatenation of JPEG frames).
> Streaming ioctls:
> > ÂÂÂÂÂÂtest read/write: OK (Not Supported)
> > ÂÂÂÂÂÂtest blocking wait: OK
> > ÂÂÂÂÂÂÂÂÂÂÂÂÂÂfail: v4l2-test-buffers.cpp(254): g_field() ==
> > V4L2_FIELD_ANY
> The driver shall never return FIELD_ANY. This needs to be FIELD_NONE.
Is there a "good example" of a v4l m2m driver that passes these
streaming tests? That would save some time on my side.
For the FIELD_ANY issue, I got inspired from your commit:
ab7afaf3 media: vim2m: add buf_out_validate callback
But there's a lot more to go...
Thanks,
Mirela