linux-stable/drivers/media/platform/rockchip
Laurent Pinchart d13fabf08d media: rkisp1: resizer: Fix resizer disable check when starting stream
The resizer is used to scale the image, but also to change the
subsampling of YUV formats. Both the luma and chroma dimensions need to
be taken into account to decide whether or not to enable the resizer.
The current implementation disables the resizer if the chroma vertical
size isn't changed, which would be the case when scaling up by a factor
of 2 vertically while at the same time converting from YUV 4:2:2 to
4:2:0. Fix it by checking the luma sizes too.

While at it, reflow and clarify comments in the function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-10-12 09:46:38 +02:00
..
rga media: rockchip: rga: fix clock cleanup 2023-06-09 16:07:03 +01:00
rkisp1 media: rkisp1: resizer: Fix resizer disable check when starting stream 2023-10-12 09:46:38 +02:00
Kconfig media: platform/*/Kconfig: make manufacturer menus more uniform 2022-03-18 05:58:35 +01:00
Makefile media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00