]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
[media] omap3isp: preview: Lower the crop margins
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 7 Dec 2012 10:48:55 +0000 (07:48 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 16:45:29 +0000 (14:45 -0200)
commit3fdfedaaa7f243f3347084231c64f6c1be0ba131
tree18e271997cbf729b532313b88a2c1125f021c1a5
parenta82a45f65377b05fe8cd3167c7b0a70c508356b8
[media] omap3isp: preview: Lower the crop margins

The preview engine includes filters that consume columns and lines as
part of their operation, thus resulting in a cropped image. To allow
turning those filters on/off during streaming without affecting the
output image size, the driver adds additional cropping to make the total
number of cropped columns and lines constant regardless of which filters
are enabled.
This process needlessly includes the CFA filter, as whether the filter
is enabled only depends on the sink pad format, which can't change
during streaming.
Exclude the CFA filter from the preview engine margins.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/omap3isp/isppreview.c