summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-09-23 22:49:06 +0300
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-10-12 09:46:38 +0200
commitd13fabf08d7cf4439d8f2f477458c7c353aebe87 (patch)
treec6af4e0e532231029692fb918501b8e3f0218a85 /tools/perf/scripts/python/exported-sql-viewer.py
parente09b03627643e1f40bfaacf29be0de7df1c8c05d (diff)
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions