1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 #ifndef _SH_CSS_METRICS_H_
17 #define _SH_CSS_METRICS_H_
19 #include <type_support.h>
21 struct sh_css_pc_histogram {
28 struct sh_css_binary_metrics {
31 struct sh_css_pc_histogram isp_histogram;
32 struct sh_css_pc_histogram sp_histogram;
33 struct sh_css_binary_metrics *next;
36 struct ia_css_frame_metrics {
37 unsigned int num_frames;
40 struct sh_css_metrics {
41 struct sh_css_binary_metrics *binary_metrics;
42 struct ia_css_frame_metrics frame_metrics;
45 extern struct sh_css_metrics sh_css_metrics;
47 /* includes ia_css_binary.h, which depends on sh_css_metrics.h */
48 #include "ia_css_types.h"
50 /* Sample ISP and SP pc and add to histogram */
51 void sh_css_metrics_enable_pc_histogram(bool enable);
52 void sh_css_metrics_start_frame(void);
53 void sh_css_metrics_start_binary(struct sh_css_binary_metrics *metrics);
54 void sh_css_metrics_sample_pcs(void);
56 #endif /* _SH_CSS_METRICS_H_ */