summaryrefslogtreecommitdiff
path: root/isp/omap3isp-priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'isp/omap3isp-priv.h')
-rw-r--r--isp/omap3isp-priv.h19
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;