diff options
author | Michael Rodin <mrodin@de.adit-jv.com> | 2021-11-23 12:50:36 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-05-13 11:02:21 +0200 |
commit | 5f25abec8f21b7527c1223a354d23c270befddb3 (patch) | |
tree | 754d9b58666bdb04892942c7c28ba66bea500cef /drivers/hwtracing | |
parent | media: vsp1: Use vb2_queue_is_busy() (diff) | |
download | linux-5f25abec8f21b7527c1223a354d23c270befddb3.tar.xz linux-5f25abec8f21b7527c1223a354d23c270befddb3.zip |
media: vsp1: Fix offset calculation for plane cropping
The vertical subsampling factor is currently not considered in the
offset calculation for plane cropping done in rpf_configure_partition.
This causes a distortion (shift of the color plane) when formats with
the vsub factor larger than 1 are used (e.g. NV12, see
vsp1_video_formats in vsp1_pipe.c). This commit considers vsub factor
for all planes except plane 0 (luminance).
Drop generalization of the offset calculation to reduce the binary size.
Fixes: e5ad37b64de9 ("[media] v4l: vsp1: Add cropping support")
Signed-off-by: Michael Rodin <mrodin@de.adit-jv.com>
Signed-off-by: LUU HOAI <hoai.luu.ub@renesas.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/hwtracing')
0 files changed, 0 insertions, 0 deletions