1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/platform/renesas/vsp1
Michael Rodin 5f25abec8f 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: e5ad37b64d ("[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>
2022-05-13 11:02:21 +02:00
..
Makefile
vsp1.h
vsp1_brx.c
vsp1_brx.h
vsp1_clu.c
vsp1_clu.h
vsp1_dl.c
vsp1_dl.h
vsp1_drm.c
vsp1_drm.h
vsp1_drv.c
vsp1_entity.c media: subdev: add subdev state locking 2022-04-24 08:21:45 +01:00
vsp1_entity.h
vsp1_hgo.c
vsp1_hgo.h
vsp1_hgt.c
vsp1_hgt.h
vsp1_histo.c media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00
vsp1_histo.h
vsp1_hsit.c
vsp1_hsit.h
vsp1_lif.c
vsp1_lif.h
vsp1_lut.c
vsp1_lut.h
vsp1_pipe.c
vsp1_pipe.h
vsp1_regs.h
vsp1_rpf.c media: vsp1: Fix offset calculation for plane cropping 2022-05-13 11:02:21 +02:00
vsp1_rwpf.c
vsp1_rwpf.h
vsp1_sru.c
vsp1_sru.h
vsp1_uds.c
vsp1_uds.h
vsp1_uif.c
vsp1_uif.h
vsp1_video.c media: vsp1: Use vb2_queue_is_busy() 2022-05-13 11:02:21 +02:00
vsp1_video.h
vsp1_wpf.c