media: imx-jpeg: Support for negotiating bytesperline with client
authorMing Qian <ming.qian@nxp.com>
Mon, 5 Feb 2024 07:25:56 +0000 (16:25 +0900)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 16 Feb 2024 10:46:32 +0000 (11:46 +0100)
commitc8027d79e0ab37ae7751e2e974ec06016cf9f56c
tree6aaeae5136c0986e7e4aeceb6e2b0cd8b1e6d7e9
parent4797a3dd46f220e6d83daf54d70c5b33db6deb01
media: imx-jpeg: Support for negotiating bytesperline with client

This mxc-jpeg driver doesn't allow the client to set the bytesperline,
but for some android cts case, it need to negotiate the bytesperline
between decoder and display, and fail the case if driver doesn't support
negotiating bytesperline

The jpegdec and jpegenc does support to set bytesperline which is
multiple of 2, and greater than the value calulated by driver.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.h