liyujie
2025-08-28 786ff4f4ca2374bdd9177f2e24b503d43e7a3b93
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 * xcam_params.h - 3A parameters
 *
 *  Copyright (c) 2015 Intel Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Author: Wind Yuan <feng.yuan@intel.com>
 */
 
#ifndef C_XCAM_PARAMS_H
#define C_XCAM_PARAMS_H
 
#include <base/xcam_defs.h>
#include <base/xcam_common.h>
#include <base/xcam_3a_types.h>
 
XCAM_BEGIN_DECLARE
 
typedef struct _XCamAeParam {
    XCamAeMode              mode;
    XCamAeMeteringMode      metering_mode;
    XCam3AWindow            window;
    XCam3AWindow            window_list[XCAM_AE_MAX_METERING_WINDOW_COUNT];
    XCamFlickerMode         flicker_mode;
    /* speed, default 1.0 */
    double                  speed;
 
    /* exposure limitation */
    uint64_t                exposure_time_min, exposure_time_max;
    double                  max_analog_gain;
 
    /* exposure manual values */
    uint64_t                manual_exposure_time;
    double                  manual_analog_gain;
 
    double                  aperture_fn;
 
    /*ev*/
    double                  ev_shift;
} XCamAeParam;
 
typedef struct _XCamAwbParam {
    XCamAwbMode             mode;
    /* speed, default 1.0 */
    double                  speed;
    uint32_t                cct_min, cct_max;
    XCam3AWindow            window;
 
    /* manual gain, default 0.0 */
    double                  gr_gain;
    double                  r_gain;
    double                  b_gain;
    double                  gb_gain;
} XCamAwbParam;
 
typedef struct _XCamAfParam {
 
} XCamAfParam;
 
typedef struct _XCamCommonParam {
    /* R, G, B gamma table, size = XCAM_GAMMA_TABLE_SIZE */
    bool                      is_manual_gamma;
    double                    r_gamma [XCAM_GAMMA_TABLE_SIZE];
    double                    g_gamma [XCAM_GAMMA_TABLE_SIZE];
    double                    b_gamma [XCAM_GAMMA_TABLE_SIZE];
 
    /*
     * manual brightness, contrast, hue, saturation, sharpness
     * -1.0 < value < 1.0
     */
    double                     nr_level;
    double                     tnr_level;
 
    double                     brightness;
    double                     contrast;
    double                     hue;
    double                     saturation;
    double                     sharpness;
 
    /* others */
    bool                       enable_dvs;
    bool                       enable_gbce;
    bool                       enable_night_mode;
    XCamColorEffect            color_effect;
} XCamCommonParam;
 
typedef struct _XCamSmartAnalysisParam {
    uint32_t   width;
    uint32_t   height;
    double     fps;
 
} XCamSmartAnalysisParam;
 
XCAM_END_DECLARE
 
#endif //C_XCAM_PARAMS_H