From 2d3f2cce4a0a520f846e1a1e01a23c55e4da05ba Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 5 Jul 2012 02:22:35 +0200 Subject: isp: Add scaler API Signed-off-by: Laurent Pinchart --- isp/omap3isp.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'isp/omap3isp.h') diff --git a/isp/omap3isp.h b/isp/omap3isp.h index 93ddfff..491dcdb 100644 --- a/isp/omap3isp.h +++ b/isp/omap3isp.h @@ -50,6 +50,8 @@ struct omap3_isp_operations { struct v4l2_video_buffer *buffer); void (*snapshot_ready)(struct omap3_isp_device *isp, struct v4l2_video_buffer *buffer); + void (*scaler_ready)(struct omap3_isp_device *isp, + struct v4l2_video_buffer *buffer); void (*aewb_ready)(struct omap3_isp_device *isp, const struct omap3_isp_aewb_stats *stats); void (*watch_fd)(int fd, enum omap3_isp_event_type type, @@ -84,6 +86,21 @@ int omap3_isp_snapshot_done(struct omap3_isp_device *isp); int omap3_isp_snapshot_put_buffer(struct omap3_isp_device *isp, struct v4l2_video_buffer *buffer); +/* Scaler */ +int omap3_isp_scaler_setup(struct omap3_isp_device *isp, + struct v4l2_mbus_framefmt *ifmt, + struct v4l2_mbus_framefmt *ofmt); +int omap3_isp_scaler_set_pool(struct omap3_isp_device *isp, + struct v4l2_buffers_pool *pool); +int omap3_isp_scaler_start(struct omap3_isp_device *isp, + struct v4l2_video_buffer *ibuf, + unsigned int obufs); +int omap3_isp_scaler_stop(struct omap3_isp_device *isp); +int omap3_isp_scaler_put_buffer(struct omap3_isp_device *isp, + struct v4l2_video_buffer *buffer); +int omap3_isp_scaler_pan_zoom(struct omap3_isp_device *isp, + float x, float y, float zoom); + /* Processing parameters */ #define OMAP3_ISP_SENSOR_GAIN_KEEP -1 -- cgit v1.2.3