From 857d32bce873cc0a467e60f7f462c84594330730 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 8 Mar 2015 14:35:31 +0200 Subject: isp: Add histogram support Support enabling the histogram statistics engine and retrieving histogram data. Histogram data is currently ignored in the image quality tuning implementation. Signed-off-by: Laurent Pinchart --- isp/stats-priv.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'isp/stats-priv.h') diff --git a/isp/stats-priv.h b/isp/stats-priv.h index c3f084c..43b920a 100644 --- a/isp/stats-priv.h +++ b/isp/stats-priv.h @@ -66,6 +66,24 @@ struct omap3_isp_aewb { bool enabled; }; +/* + * struct omap3_isp_histogram - OMAP3 ISP histogram statistics engine + * @entity: Histogram entity + * @size: buffer size + * @buffer: buffer memory + * @rect: histogram region of interest + * @enabled: statistics engine enabled + */ +struct omap3_isp_histogram { + struct media_entity *entity; + unsigned int size; + void *buffer; + + struct v4l2_rect rect; + + bool enabled; +}; + int omap3_isp_stats_start(struct omap3_isp_device *isp); void omap3_isp_stats_stop(struct omap3_isp_device *isp); int omap3_isp_stats_init(struct omap3_isp_device *isp); -- cgit v1.2.3