aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/i2c/adp1653.c
diff options
context:
space:
mode:
authorGravatar Laurent Pinchart <laurent.pinchart@ideasonboard.com> 2023-09-23 22:49:06 +0300
committerGravatar Hans Verkuil <hverkuil-cisco@xs4all.nl> 2023-10-12 09:46:38 +0200
commitd13fabf08d7cf4439d8f2f477458c7c353aebe87 (patch)
treec6af4e0e532231029692fb918501b8e3f0218a85 /drivers/media/i2c/adp1653.c
parentmedia: rkisp1: resizer: Improve debug message when configuring resizer (diff)
downloadlinux-d13fabf08d7cf4439d8f2f477458c7c353aebe87.tar.gz
linux-d13fabf08d7cf4439d8f2f477458c7c353aebe87.tar.bz2
linux-d13fabf08d7cf4439d8f2f477458c7c353aebe87.zip
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>
Diffstat (limited to 'drivers/media/i2c/adp1653.c')
0 files changed, 0 insertions, 0 deletions