From 7171e8263fada3f37d955ec538c58ebb73d02b38 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 23 Oct 2012 04:09:28 +0200 Subject: isp: Support allocating an output buffers pool for the viewfinder The viewfinder is usually used with a display device that allocates buffers. This led to the viewfinder API requiring the application to set the output buffers pool. For applications that don't have a buffers pool to give to the viewfinder support allocating a dedicated pool and exporting it to the application. Signed-off-by: Laurent Pinchart --- isp/omap3isp.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'isp/omap3isp.h') diff --git a/isp/omap3isp.h b/isp/omap3isp.h index 26e5062..d2d93dd 100644 --- a/isp/omap3isp.h +++ b/isp/omap3isp.h @@ -67,6 +67,11 @@ void omap3_isp_close(struct omap3_isp_device *isp); int omap3_isp_viewfinder_setup(struct omap3_isp_device *isp, struct v4l2_rect *crop, struct v4l2_mbus_framefmt *ofmt); +int omap3_isp_viewfinder_alloc_pool(struct omap3_isp_device *isp, + unsigned int nbufs); +void omap3_isp_viewfinder_free_pool(struct omap3_isp_device *isp); +struct v4l2_buffers_pool * +omap3_isp_viewfinder_get_pool(struct omap3_isp_device *isp); int omap3_isp_viewfinder_set_pool(struct omap3_isp_device *isp, struct v4l2_buffers_pool *pool); int omap3_isp_viewfinder_set_scaler(struct omap3_isp_device *isp, -- cgit v1.2.3