From 23b31323e49efd89d1ef40ceb9488579069929e6 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 3 Jul 2012 00:33:55 +0200 Subject: isp: Add live zoom support Signed-off-by: Laurent Pinchart --- isp/omap3isp-priv.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'isp/omap3isp-priv.h') diff --git a/isp/omap3isp-priv.h b/isp/omap3isp-priv.h index c71ed40..2d639e1 100644 --- a/isp/omap3isp-priv.h +++ b/isp/omap3isp-priv.h @@ -112,6 +112,21 @@ struct omap3_isp_pool { #define to_omap3_isp_pool(e) container_of(e, struct omap3_isp_pool, entity) +/* + * struct omap3_isp_resizer - OMAP3 ISP resizer parameters in a pipeline + * @entity: The resizer entity + * @zoom_min: Crop rectangle at minimum zoom + * @zoom_max: Crop rectangle at maximum zoom (up to x4.0) + * @pan_x: Zoom center along X axis + * @pan_y: Zoom center along Y axis + * @zoom: Zoom level (0.0 - 1.0) + */ +struct omap3_isp_resizer { + struct omap3_isp_entity *entity; + struct v4l2_rect zoom_min; + struct v4l2_rect zoom_max; +}; + enum omap3_isp_pipeline_state { OMAP3_ISP_PIPELINE_STOPPED, OMAP3_ISP_PIPELINE_RUNNING, @@ -132,6 +147,7 @@ struct omap3_isp_pipeline { struct list_entry pools; struct omap3_isp_video *output; enum omap3_isp_pipeline_state state; + struct omap3_isp_resizer resizer; }; struct omap3_isp_device { @@ -150,6 +166,9 @@ struct omap3_isp_device { struct media_entity *entity; struct omap3isp_prev_wbal wbal; } preview; + struct { + struct media_entity *entity; + } resizer; struct omap3_isp_aewb aewb; struct omap3_isp_pipeline viewfinder; -- cgit v1.2.3