]> git.baikalelectronics.ru Git - 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)
commit7cef81ff9ba25349ab2b8c7b6a3e2b2ab5bf73f7
tree18e271997cbf729b532313b88a2c1125f021c1a5
parent123bcc432f1610bb10b1be36b340a408e5119891
[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