liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
 
/*
 ******************************************************************************
 *
 * isp_init_iso_config.h
 *
 * Hawkview ISP - isp_init_iso_config.h module
 *
 * Copyright (c) 2016 by Allwinnertech Co., Ltd.  http://www.allwinnertech.com
 *
 * Version          Author         Date            Description
 *
 *   3.0          Yang Feng       2016/03/31    VIDEO INPUT
 *
 *****************************************************************************
 */
 
#ifndef _ISP_ISO_CONFIG_H_
#define _ISP_ISO_CONFIG_H_
 
typedef enum isp_iso_param_type {
   ISP_ISO_UPDATE_PARAMS,
   ISP_ISO_PARAM_TYPE_MAX,
} iso_param_type_t;
 
typedef struct iso_test_config {
   HW_S32 isp_test_mode;
} iso_test_config_t;
 
typedef struct isp_lib_iso_param {
   iso_param_type_t type;
 
   HW_S32 isp_platform_id;
   HW_S32 iso_frame_id;
   HW_U16 cem_color2gray_th;
   HW_U16 cem_color2gray_delta_min;
   HW_U16 cem_color2gray_delta_max;
 
   HW_U32 cnr_adjust;
   HW_U32 sharpness_adjust;
   HW_U32 saturation_adjust;
   HW_U32 contrast_adjust;
   HW_U32 brightness_adjust;
   HW_U32 cem_ratio_adjust;
   HW_U32 denoise_adjust;
   HW_U32 sensor_offset_adjust;
   HW_U32 black_level_adjust;
   HW_U32 dpc_adjust;
   HW_U32 defog_value_adjust;
   HW_U32 pltm_dynamic_cfg_adjust;
   HW_U32 tdnr_adjust;
   HW_U32 ae_cfg_adjust;
   HW_U32 gtm_cfg_adjust;
   HW_U32 lca_cfg_adjust;
   HW_U32 isp_denoise_lp0_np_core_retio;
   HW_U32 isp_denoise_lp1_np_core_retio;
   HW_U32 isp_denoise_lp2_np_core_retio;
   HW_U32 isp_denoise_lp3_np_core_retio;
   HW_U32 af_cfg_adjust;
   struct isp_lib_context *isp_gen;
   iso_test_config_t test_cfg;
} iso_param_t;
 
typedef struct isp_iso_result {
   HW_U32 gain_idx;
   HW_U32 lum_idx;
} iso_result_t;
 
typedef struct isp_iso_cfg_core_ops {
   HW_S32 (*isp_iso_set_params)(void *iso_core_obj, iso_param_t *param, iso_result_t *result);
   HW_S32 (*isp_iso_get_params)(void *iso_core_obj, iso_param_t **param);
   HW_S32 (*isp_iso_run)(void *iso_core_obj, iso_result_t *result);
 
} isp_iso_core_ops_t;
 
void* iso_init(isp_iso_core_ops_t **iso_core_ops);
void  iso_exit(void *iso_core_obj);
 
#endif /*_ISP_ISO_CONFIG_H_*/