diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-07-03 00:33:55 +0200 | 
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-10-20 21:21:35 +0200 | 
| commit | 23b31323e49efd89d1ef40ceb9488579069929e6 (patch) | |
| tree | 0ea73235cd49cb010b83c2d45bfd7b3da8d678f9 /isp/omap3isp-priv.h | |
| parent | c8ca837395028751f79a6b6a690c37acc58f2f8c (diff) | |
isp: Add live zoom support
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'isp/omap3isp-priv.h')
| -rw-r--r-- | isp/omap3isp-priv.h | 19 | 
1 files changed, 19 insertions, 0 deletions
| 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; | 
