diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-03-08 14:35:31 +0200 | 
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-03-08 23:26:42 +0200 | 
| commit | 857d32bce873cc0a467e60f7f462c84594330730 (patch) | |
| tree | 6126114f5549cd72d9b5e042a428552c6f9905d8 /iq.c | |
| parent | cbd64859e6c1509b0f2ee7728cb66b120d52c45e (diff) | |
isp: Add histogram supporthistogram
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'iq.c')
| -rw-r--r-- | iq.c | 9 | 
1 files changed, 8 insertions, 1 deletions
| @@ -94,6 +94,12 @@ void iq_aewb_process(struct iq_tuning *iq,  	omap3_isp_sensor_set_gain(iq->isp, iqp->gain);  } +void iq_histogram_process(struct iq_tuning *iq __attribute__((__unused__)), +			  const struct omap3_isp_histogram_stats *stats __attribute__((__unused__))) +{ +	printf("hist: data received\n"); +} +  /**   * iq_params_init - Initialize IQ parameters   * @params: IQ parameters @@ -223,7 +229,8 @@ struct iq_tuning *iq_init(struct omap3_isp_device *isp,  	window.height = params->window.height * format.height;  	omap3_isp_aewb_configure(isp, &window, iq->pix_max - iq->params.black_level - 1); -	omap3_isp_stats_enable(isp, true); +	omap3_isp_histogram_configure(isp, &window); +	omap3_isp_stats_enable(isp, OMAP3_ISP_STAT_AEWB | OMAP3_ISP_STAT_HIST);  	return iq;  } | 
