diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-08-15 11:48:40 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-10-20 21:28:24 +0200 |
commit | 16dc774fe1e92f3b9239c59ad368b18d3300a7f1 (patch) | |
tree | 1980e661ff300ccc03ed888c82b75d44980b3cdf /isp/omap3isp.c | |
parent | cb8e1c98a612f7b5460b5d8cfe1078369de6a8af (diff) |
omap3isp: Scale instead of cropping when scaling on the sensor
When using sensor scaling the sensor was incorrectly configured to crop
the image to a lower size instead of scaling it. Cropping is applied
before scaling in the sensor, so the crop rectangle needs to be set to
the pipeline input size, not the sensor output size.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp/omap3isp.c')
-rw-r--r-- | isp/omap3isp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isp/omap3isp.c b/isp/omap3isp.c index eb5d2e8..00b451b 100644 --- a/isp/omap3isp.c +++ b/isp/omap3isp.c @@ -714,8 +714,8 @@ static int omap3_isp_pipeline_try_format(struct omap3_isp_device *isp, /* If crop is not requested, reset the crop rectangle on the * sensor to its default value. */ - source->source.crop.width = format.width; - source->source.crop.height = format.height; + source->source.crop.width = ifmt->width; + source->source.crop.height = ifmt->height; } /* Try to force the output format code onto the source pad. */ |