#define HIVE_MEM_histogram_args scalar_processor_dmem
#define HIVE_ADDR_histogram_args 0x2810
#define HIVE_SIZE_histogram_args 4
-#define HIVE_ADDR_capture_pp_dynamic_entry 0x32F7
+#define HIVE_ADDR_capture_pp_dynamic_entry 0x3311
#define HIVE_MEM_isp_sdis_horiproj_num scalar_processor_dmem
#define HIVE_ADDR_isp_sdis_horiproj_num 0x1464
#define HIVE_SIZE_isp_sdis_horiproj_num 4
static const struct sh_css_de_config *de_config;
static const struct sh_css_gc_config *gc_config;
static const struct sh_css_anr_config *anr_config;
+static const struct sh_css_ce_config *ce_config;
static bool isp_params_changed,
fpn_table_changed,
dis_coef_table_changed,
ee_config_changed,
de_config_changed,
gc_config_changed,
- anr_config_changed;
+ anr_config_changed,
+ ce_config_changed;
static size_t fpn_tbl_size,
sc_tbl_size,
.threshold = 5,
};
+static const struct sh_css_ce_config default_ce_config = {
+ .uv_level_min = 0,
+ .uv_level_max = 255
+};
+
int
sh_css_get_gdc_coord_one(void)
{
anr_config_changed = false;
}
+static void
+sh_css_process_ce(void)
+{
+ isp_parameters.ce_uv_level_min = ce_config->uv_level_min;
+ isp_parameters.ce_uv_level_max = ce_config->uv_level_max;
+ isp_params_changed = true;
+ ce_config_changed = false;
+}
+
void
sh_css_set_gamma_table(const struct sh_css_gamma_table *table)
{
*config = anr_config;
}
+void
+sh_css_set_ce_config(const struct sh_css_ce_config *config)
+{
+ if (config)
+ ce_config = config;
+ else
+ ce_config = &default_ce_config;
+ ce_config_changed = true;
+}
+
+void
+sh_css_get_ce_config(const struct sh_css_ce_config **config)
+{
+ *config = ce_config;
+}
+
static bool
alloc(void **ptr, unsigned int bytes)
{
sh_css_set_de_config(&default_de_config);
sh_css_set_gc_config(&default_gc_config);
sh_css_set_anr_config(&default_anr_config);
+ sh_css_set_ce_config(&default_ce_config);
sh_css_set_macc_table(&default_macc_table);
sh_css_set_gamma_table(&default_gamma_table);
sh_css_set_ctc_table(&default_ctc_table);
sh_css_process_gc();
if (anr_config && anr_config_changed)
sh_css_process_anr();
+ if (ce_config && ce_config_changed)
+ sh_css_process_ce();
if (isp_params_changed) {
if (SH_CSS_PREVENT_UNINIT_READS) {