This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: 搭配OX03C10,在WDR模式下画面全黑

Part Number: TDA4VM

现象:出图后,画面黑,只能看见灯光 ,当前曝光增益均在限制的最小值,无法自动变化

我们在IMX390的驱动上移植的OX03C10的驱动代码

生成GCC profile的config

SENSOR_ID 390
PRJ_DIR ../imx390_output
SENSOR_NAME imx390
SENSOR_DCC_NAME IMX390-UB953_D3

SENSOR_WIDTH 1920
SENSOR_HEIGHT 1080

# 0=RGGB; 1=GRBG; 2=GBRG; 3=BGGR, 4=MONO
COLOR_PATTERN 3

# sensor mode: 0 for linear (no decompanding), 1 for WDR (decompanding)
WDR_MODE 1

# raw sensor image BIT_DEPTH: it may be 8, 10, or 12 for linear sensors; typically 12 for WDR mode because of companding
BIT_DEPTH 12

# WDR BIT_DEPTH: WDR raw sensor image bitdepth after decompanding, typically 20 or 24
WDR_BIT_DEPTH 24

# WDR decompanding knee points (comma separated without spaces in between)
#WDR_KNEE_X 0,512,1408,2176,4095,65535
#WDR_KNEE_Y 0,2048,16384,65536,1048063,1048063
WDR_KNEE_X 512,767,1023,1279,1535,1663,1791,1919,2047,2175,2303,2431,2559,2687,2815,2943,3071,3135,3199,3263,3327,3391,3455,3519,3583,3625,3711,3775,3839,3903,3967,4009,4095
WDR_KNEE_Y 511,1023,2047,3071,4095,6143,8191,12287,16383,24575,32767,49151,65535,98303,131071,196607,262143,393215,524287,786431,1048575,1310719,1572863,2097151,2621439,3145727,4194303,5242879,6291455,8388607,10485759,12582911,16777215

# Sensor black level to subtract before decompanding (for linear sensors only and some Sony WDR sensors)
BLACK_PRE  0

# Sensor black level to subtract after decompanding (for most WDR sensors and all linear sensors)
BLACK_POST  0

# GAMMA value for compressing 20/24-bit WDR raw to 16-bit ISP internal
# typically around 50 (0.5) for 24-bit WDR sensors and 70 (0.7) for 20-bit sensors
GAMMA_PRE 70

# LSB location for H3A input bit range (from bit-H3A_INPUT_LSB to bit-H3A_INPUT_LSB+9) 
H3A_INPUT_LSB 2

X3C的knee points

512	511
767	1023
1023	2047
1279	3071
1535	4095
1663	6143
1791	8191
1919	12287
2047	16383
2175	24575
2303	32767
2431	49151
2559	65535
2687	98303
2815	131071
2943	196607
3071	262143
3135	393215
3199	524287
3263	786431
3327	1048575
3391	1310719
3455	1572863
3519	2097151
3583	2621439
3625	3145727
3711	4194303
3775	5242879
3839	6291455
3903	8388607
3967	10485759
4009	12582911
4095	16777215

  • 您好,

    已经收到了您的案例,调查需要些时间,感谢您的耐心等待。

  • <?xml version="1.0" encoding="utf-8"?>
    <VISS_GLBCE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>viss_glbce</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   6</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
          <viss_glbce type="struct"> 
                            <strength      type="uint32"> </strength>
                            <intensity_var type="uint32"> </intensity_var>     <!-- U4 -->
                            <space_var     type="uint32"> </space_var>         <!-- U4 -->
                            <slope_min_lim type="uint32">  </slope_min_lim>     <!-- U8 -->
                            <slope_max_lim type="uint32">  </slope_max_lim>     <!-- U8 -->
                            <fwd_prcpt_en  type="uint32">  </fwd_prcpt_en>
                            <fwd_prcpt_lut type="uint32[65]"> </fwd_prcpt_lut>
                            <rev_prcpt_en  type="uint32">  </rev_prcpt_en>
                            <rev_prcpt_lut type="uint32[65]"> </rev_prcpt_lut>
                            <asym_lut      type="uint32[33]"> </asym_lut>      <!-- U16 -->
          </viss_glbce> 
       </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <viss_glbce_dcc type="viss_glbce">
            {
                      255, //strength
                      12,  //intensity_var
                      7,   //space_var
                      64,  //slope_min_lim
                      72,  //slope_max_lim
                      1,
                      {    //fwd_prcpt_lut
                          0, 4622, 8653, 11684, 14195, 16380, 18335, 20118, 21766, 23304,
                          24751, 26119, 27422, 28665, 29857, 31003, 32108, 33176, 34209, 35211,
                          36185, 37132, 38055, 38955, 39834, 40693, 41533, 42355, 43161, 43951,
                          44727, 45488, 46236, 46971, 47694, 48405, 49106, 49795, 50475, 51145,
                          51805, 52456, 53099, 53733, 54360, 54978, 55589, 56193, 56789, 57379,
                          57963, 58539, 59110, 59675, 60234, 60787, 61335, 61877, 62414, 62946,
                          63473, 63996, 64513, 65026, 65535,
                      },
                      1,
                      {    //rev_prcpt_lut
                          0, 228, 455, 683, 910, 1138, 1369, 1628, 1912, 2221,
                          2556, 2916, 3304, 3717, 4158, 4626, 5122, 5645, 6197, 6777,
                          7386, 8024, 8691, 9387, 10113, 10869, 11654, 12471, 13317, 14194,
                          15103, 16042, 17012, 18014, 19048, 20113, 21210, 22340, 23501, 24696,
                          25922, 27182, 28475, 29800, 31159, 32552, 33977, 35437, 36930, 38458,
                          40019, 41615, 43245, 44910, 46609, 48343, 50112, 51916, 53755, 55630,
                          57539, 59485, 61466, 63482, 65535
                      },
                      {    //asym_lut
                              0,  12173,  20997,  27687,  32934,
                          37159,  40634,  43543,  46014,  48138,
                          49984,  51603,  53035,  54310,  55453,
                          56483,  57416,  58265,  59041,  59753,
                          60409,  61015,  61577,  62099,  62585,
                          63039,  63464,  63863,  64237,  64590,
                          64923,  65237,  65535,
                      },
            }
            </viss_glbce_dcc>
        </parameter_package>
      </use_case>
    </VISS_GLBCE>
    
    <?xml version="1.0" encoding="utf-8"?>
    <IPIPE_RGB2RGB_DCC.XML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>ipipe_rgb2rgb_dcc.xml</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>  10</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
        <!--=======================================================================-->
      <typedef>
    			<cfg_rgb2rgb type="struct">
            <!-- [RR] [GR] [BR] [CR]
                 [RG] [GG] [BG] [CG]
                 [RB] [GB] [BB] [CB]-->
            <!-- Blending + Chroma values (S12Q8 format) -->
    			    <ccm type="int16[3][4]"> </ccm> <!-- ipipe rgb2rgb matrix: S12Q8 -->
    					<!-- Blending offset value for R,G,B - (S13) -->
    					<offset type="int16[3]"> </offset> <!-- ipipe rgb2rgb1 offset: S13 -->
        </cfg_rgb2rgb>
    </typedef>
    <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <ipipe_rgb2rgb_dcc.xml_dcc type="cfg_rgb2rgb">
            {
                    {
                        { 256,   0,   0 , 0},
                        {   0, 256,   0 , 0},
                        {   0,   0, 256 , 0}
                    },
                    {0,0,0}
            }
            </ipipe_rgb2rgb_dcc.xml_dcc>
        </parameter_package>
      </use_case>
    </IPIPE_RGB2RGB_DCC.XML>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_H3A_MUX_LUTS_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_H3A_MUX_LUTS_CFG</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   2</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
        <iss_h3a_mux_luts type="struct">
           <enable type="uint16"> </enable> <!-- enable -->
           <num_luts type="uint16"> </num_luts> <!-- number of LUTs (0 ~ 3) -->
           <h3a_mux_luts type="uint16[3][639]"> </h3a_mux_luts> <!-- H3A LUTs -->
          </iss_h3a_mux_luts>
       </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <VISS_H3A_MUX_LUTS_CFG_dcc type="iss_h3a_mux_luts">
            {
                    1, //enable
                    1, //number of LUTs
                    {
                        {#include "lut_remap_16bto10b.txt"},
                        {#include "lut_remap_16bto10b.txt"},
                        {#include "lut_remap_16bto10b.txt"},
                    },
            }
            </VISS_H3A_MUX_LUTS_CFG_dcc>
        </parameter_package>
      </use_case>
    </VISS_H3A_MUX_LUTS_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_BLC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_BLC</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   1</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
          <viss_clamp type="struct"> 
           			<viss_clamp_vshort type="struct">
           				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
           			</viss_clamp_vshort>
           			<viss_clamp_short type="struct">
           				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
           			</viss_clamp_short>
           			<viss_clamp_long type="struct">
           				<dcoffset_clamp_value_0 type="int16"> </dcoffset_clamp_value_0> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_1 type="int16"> </dcoffset_clamp_value_1> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_2 type="int16"> </dcoffset_clamp_value_2> <!-- additive dc offset, S13 -->
           				<dcoffset_clamp_value_3 type="int16"> </dcoffset_clamp_value_3> <!-- additive dc offset, S13 -->
           			</viss_clamp_long>  
          </viss_clamp> 
       </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <VISS_BLC_dcc type="viss_clamp">
            {
       				 //viss_clamp_vshort : For linear mode only this should be set to sensor Black Level
       				  {
       						0, // dcoffset_clamp_value 0
       						0, // dcoffset_clamp_value 1
       						0, // dcoffset_clamp_value 2
       						0, // dcoffset_clamp_value 3
       				  },
       				 //viss_clamp_short : To be used only in WDR mode. 
       				  {
       						0, // dcoffset_clamp_value 0
       						0, // dcoffset_clamp_value 1
       						0, // dcoffset_clamp_value 2
       						0, // dcoffset_clamp_value 3
       				  },
       				 //viss_clamp_long : To be used only in WDR mode.
       				  {
       						0, // dcoffset_clamp_value 0
       						0, // dcoffset_clamp_value 1
       						0, // dcoffset_clamp_value 2
       						0, // dcoffset_clamp_value 3
       				  }
            }
            </VISS_BLC_dcc>
        </parameter_package>
      </use_case>
    </VISS_BLC>
    
    <?xml version="1.0" encoding="utf-8"?>
    <LDC_ODC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>ldc_odc</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   5</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
          <cfg_ldc_vars type="struct"> 
                          <ldc_en type="uint16"> </ldc_en>
                          <ldc_ldmapen type="uint16"> </ldc_ldmapen>
                          <ldc_datamode type="uint16"> </ldc_datamode>
                          <ldc_opdatamode type="uint16"> </ldc_opdatamode>
                          <ldc_ip_dfmt type="uint16"> </ldc_ip_dfmt>
                          <ldc_pwarpen type="uint16"> </ldc_pwarpen>
                          <ldc_yint_typ type="uint16"> </ldc_yint_typ>
                          <ldc_regmode_en type="uint16"> </ldc_regmode_en>
                          <ldc_meshtable_m type="uint16"> </ldc_meshtable_m>
                          <ldc_mesh_frsz_w type="uint16"> </ldc_mesh_frsz_w>
                          <ldc_mesh_frsz_h type="uint16"> </ldc_mesh_frsz_h>
                          <ldc_compute_frsz_w type="uint16"> </ldc_compute_frsz_w>
                          <ldc_compute_frsz_h type="uint16"> </ldc_compute_frsz_h>
                          <ldc_initx type="uint16"> </ldc_initx>
                          <ldc_inity type="uint16"> </ldc_inity>
                          <ldc_input_frsz_w type="uint16"> </ldc_input_frsz_w>
                          <ldc_input_frsz_h type="uint16"> </ldc_input_frsz_h>
                          <ldc_obw type="uint16"> </ldc_obw>
                          <ldc_obh type="uint16"> </ldc_obh>
                          <ldc_pixpad type="uint16"> </ldc_pixpad>
                          <ldc_a type="int16"> </ldc_a>
                          <ldc_b type="int16"> </ldc_b>
                          <ldc_c type="int16"> </ldc_c>
                          <ldc_d type="int16"> </ldc_d>
                          <ldc_e type="int16"> </ldc_e>
                          <ldc_f type="int16"> </ldc_f>
                          <ldc_g type="int16"> </ldc_g>
                          <ldc_h type="int16"> </ldc_h>
                          <ldc_sf_width type="uint16[3]"> </ldc_sf_width>
                          <ldc_sf_height type="uint16[3]"> </ldc_sf_height>
                          <ldc_sf_en  type="uint16[3][3]"> </ldc_sf_en>
                          <ldc_sf_obw type="uint16[3][3]"> </ldc_sf_obw>
                          <ldc_sf_obh type="uint16[3][3]"> </ldc_sf_obh>
                          <ldc_sf_pad type="uint16[3][3]"> </ldc_sf_pad>
                          <ldc_ylut_en type="uint16"> </ldc_ylut_en>
                          <ldc_yin_bitdpth type="uint16"> </ldc_yin_bitdpth>
                          <ldc_yout_bitdpth type="uint16"> </ldc_yout_bitdpth>
                          <ldc_clut_en type="uint16"> </ldc_clut_en>
                          <ldc_cin_bitdpth type="uint16"> </ldc_cin_bitdpth>
                          <ldc_cout_bitdpth type="uint16"> </ldc_cout_bitdpth>
                          <ldc_y_lut type="uint16[513]"> </ldc_y_lut>
                          <ldc_c_lut type="uint16[513]"> </ldc_c_lut>
                  		<mesh_table_pitch_in_bytes type="uint32"> </mesh_table_pitch_in_bytes>
                  		<mesh_table_size type="uint32"> </mesh_table_size>
                  		<mesh_lut type="uint16*"> </mesh_lut>
          </cfg_ldc_vars> 
       </typedef>
      <!--=======================================================================-->
    		<use_case val="65535"> 
            <usecase_general>
                <ldc_dcc type="cfg_ldc_vars" main="general">
                {
                    0     // LDC_CTRL  LDC_EN(0)         LDC Enable, 0: Disable,  1: Enable
                    1     // LDC_CTRL  LDMAPEN(1)        LD Mapping enable, 0: disable, 1: enable
                    2     // LDC_CTRL  DATAMODE(4:3)     Input data mode, 0:YUV422, 1:Y only, 2:YUV420, 3:YUV420 UV
                    1     // LDC_CTRL  OP_DATAMODE  Output data mode, 0: keep UYVY; 1: convert to 420
                    0     // LDC_CTRL  IP_DFMT(6:5) Input pixel format, 0:8b, 1:12b packed, 2:12b unpacked
                    1     // LDC_CTRL  PWARPEN(7)   Perspective warp 0: Disable . 1: Enable
                    1     // LDC_CFG   YINT_TYP(6)  Interpolation type for Y .  0: Bicubic,  1: Bilinear
                    0     // LDC_CFG   REGMODE_EN           Region mode, 0: disable, 1: enable
                    3     // LDC_MESHTABLE_CFG     M(2:0)   Mesh table subsampling factor (0-7)
                    1920  // LDC_MESH_FRSZ       W(13:0)  Mesh frame width (0-8192)
                    1080  // LDC_MESH_FRSZ       H(29:16)             Mesh frame height (0-8192)
                    1920   // LDC_COMPUTE_FRSZ      W(13:0)  Compute width (0-8192)
                    1080   // LDC_COMPUTE_FRSZ      H(29:16)             Compute height (0-8192)
                      0     // LDC_INITXY    INITX(13:0)  Output starting horizontal coordinate (0-8192)
                      0     // LDC_INITXY    INITY(29:16) Output starting vertical coordinate (0-8192)
                    1920  // LDC_INPUT_FRSZ        W(29:16)             Input frame width
                    1080  // LDC_INPUT_FRSZ        H(13:0)  Input frame height
                    128    // LDC_BLOCK_SIZE        OBW(7:0)             Output block width (0-255)
                    64    // LDC_BLOCK_SIZE        OBH(15:8)            Output block height (0-255)
                    1     // LDC_BLOCK_SIZE        PIXPAD(19:16)        Pixel pad (0-15)
                    4096  // LDC_AB    A(15:0)  Affine Transform warp, A S16Q12
                    0     // LDC_AB    B(31:16)             Affine Transform warp, B S16Q12
                    0     // LDC_CD    C(15:0)  Affine Transform warp, C S16Q3
                    0     // LDC_CD    D(31:16)             Affine Transform warp, D S16Q12
                    4096  // LDC_EF    E(15:0)  Affine Transform warp, E S16Q12
                    0     // LDC_EF    F(31:16)             Affine Transform warp, F S16Q3
                    0     // LDC_GH    G(15:0)  Affine Transform warp, G S16Q23
                    0     // LDC_GH    H(31:16)             Affine Transform warp, H S16Q23
                    {0, 0, 0}     //ldc_sf_width [3]
                    {0, 0, 0}     //ldc_sf_height[3]
                    {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}     //ldc_sf_en [3][3]
                    {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}     //ldc_sf_obw[3][3]
                    {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}     //ldc_sf_obh[3][3]
                    {{0, 0, 0}, {0, 0, 0}, {0, 0, 0}}     //ldc_sf_pad[3][3]
                    0     // LDC_DUALOUT_CFG       YLUT_EN  Luma LUT enable (0-1)
                    8     // LDC_DUALOUT_CFG       YIN_BITDPTH          Luma input bit depth (8-12)
                    8     // LDC_DUALOUT_CFG       YOUT_BITDPTH         Luma output bit depth (8-12)
                    0     // LDC_DUALOUT_CFG       CLUT_EN  Chroma LUT enable (0-1)
                    8     // LDC_DUALOUT_CFG       CIN_BITDPTH          Chroma input bit depth (8-12)
                    8     // LDC_DUALOUT_CFG       COUT_BITDPTH         Chroma output bit depth (8-12)
                    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
                    {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,},
                    1,
                    1,
                    {0}
                }
                </ldc_dcc>
            </usecase_general>
    		</use_case> 
    </LDC_ODC>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_NSF4_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_NSF4_CFG</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>  21</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
        <typedef>
    		<viss_nsf4_cfg type="struct">
    				  <enable type="int32"> </enable> <!-- enable nsf4-->
    				  <mode type="int32"> </mode>
    				  <shading_gain type="int32"> </shading_gain>
    				  <u1_knee type="int32"> </u1_knee>
    				  <tn1 type="int32"> </tn1>
    				  <tn2 type="int32"> </tn2>
    				  <tn3 type="int32"> </tn3>
    				  <noise_thr_x type="int32[4][12]"> </noise_thr_x>
    				  <noise_thr_y type="int32[4][12]"> </noise_thr_y>
    				  <noise_thr_s type="int32[4][12]"> </noise_thr_s>
    				  <shd_x type="int32"> </shd_x>
    				  <shd_y type="int32"> </shd_y>
    				  <shd_t type="int32"> </shd_t>
    				  <shd_kh type="int32"> </shd_kh>
    				  <shd_kv type="int32"> </shd_kv>
    				  <shd_gmax type="int32"> </shd_gmax>
    				  <shd_set_sel type="int32"> </shd_set_sel>
    				  <shd_lut_x type="int32[2][16]"> </shd_lut_x>
    				  <shd_lut_y type="int32[2][16]"> </shd_lut_y>
    				  <shd_lut_s type="int32[2][16]"> </shd_lut_s>
    				  <wb_gains type="int32[4]"> </wb_gains>
            </viss_nsf4_cfg>
        </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <VISS_NSF4_CFG_dcc type="viss_nsf4_cfg">
            {
    							0, //enable
    							16, //mode: 0 => nsf3 2x2 mode, 1~31 => nsf4 2x2 mode
    							0, //shading gain enable
    							32,    // U1  knee points for U,  U0.6 (0 ~ 63)
    							64,   //  Tn1 scaling factor,     U3.5 (1.0 = 32)
    							32,   //  Tn2 scaling factor,     U3.5 (1.0 = 32)
    							16,   //  Tn3 scaling factor,     U3.5 (1.0 = 32)
    							// Threshold parameters
    							//noise_thr_x
    							{
    								{0, 64, 256, 1024, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096},
    								{0, 64, 256, 1024, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096},
    								{0, 64, 256, 1024, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096},
    								{0, 64, 256, 1024, 4096, 4096, 4096, 4096, 4096, 4096, 4096, 4096},
    							},
    							//noise_thr_y
    							{
    								{16, 20, 38, 76, 0, 0, 0, 0, 0, 0, 0, 0},
    								{16, 20, 38, 76, 0, 0, 0, 0, 0, 0, 0, 0},
    								{16, 20, 38, 76, 0, 0, 0, 0, 0, 0, 0, 0},
    								{16, 20, 38, 76, 0, 0, 0, 0, 0, 0, 0, 0},
    							},
    							//noise_thr_s
    							{
    								{128,  192,  100, 52, 0, 0, 0, 0, 0, 0, 0, 0},
    								{128,  192,  100, 52, 0, 0, 0, 0, 0, 0, 0, 0},
    								{128,  192,  100, 52, 0, 0, 0, 0, 0, 0, 0, 0},
    								{128,  192,  100, 52, 0, 0, 0, 0, 0, 0, 0, 0},
    							},
    							// Shading gain parameters
    							0, //shd_x
    							0, //shd_y
    							0, //shd_t
    							0, //shd_kh
    							0, //shd_kv
    							0, //shd_gmax
    							0, //shd_set_sel
    							//shd_lut_x
    							{
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    							},
    							//shd_lut_y
    							{
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    							},
    							//shd_lut_s
    							{
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    								{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    							},
    						  //wb_gains
    						  {512, 512, 512, 512}
            }
            </VISS_NSF4_CFG_dcc>
        </parameter_package>
      </use_case>
    </VISS_NSF4_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_RAWFE_DECMP_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_RAWFE_decmp_cfg</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   4</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
        <cfg_rawfe_decompand type="struct">
    			<pwl_vshort_lut_en type="uint16"> </pwl_vshort_lut_en>
    			<pwl_vshort_mask type="uint16"> </pwl_vshort_mask>
    			<pwl_vshort_shift type="uint16"> </pwl_vshort_shift>
    			<pwl_vshort_lut_bitdepth type="uint16"> </pwl_vshort_lut_bitdepth>
    			<pwl_vshort_lut_clip type="uint16"> </pwl_vshort_lut_clip>
    			<pwl_vshort_lut type="uint16[639]"> </pwl_vshort_lut>
          </cfg_rawfe_decompand>
       </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <VISS_RAWFE_decmp_cfg_dcc type="cfg_rawfe_decompand">
            {
    		          1     // enable
    		          4095  // mask
    		          0     // shift
    		          12    // lutBitdepth
    		          65535 // lutClip
    		          {
    		              #include "lut_rawfe_pwl_vshort.txt"
    		          }
            }
            </VISS_RAWFE_decmp_cfg_dcc>
        </parameter_package>
      </use_case>
    </VISS_RAWFE_DECMP_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <CFG_FLXD_CFA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>cfg_flxd_cfa</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   9</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
                  <typedef>
                      <FLXD_FirCoefs type="struct">
                          <matrix type="uint32[4][36]"></matrix>
                      </FLXD_FirCoefs>
                  </typedef>
                  <typedef>
                      <cfg_flxd_cfa_vars type="struct">
                          <image_bits type="uint32"> </image_bits>
                          <lut_enable type="uint32"> </lut_enable>
                          <Set0GradHzMask type="uint32[4]"> </Set0GradHzMask>
                          <Set0GradVtMask type="uint32[4]"> </Set0GradVtMask>
                          <Set0IntensityMask type="uint32[4]"> </Set0IntensityMask>
                          <Set0IntensityShift type="uint32[4]"> </Set0IntensityShift>
                          <Set0Thr type="uint32[7]"> </Set0Thr>
                          <Set1GradHzMask type="uint32[4]"> </Set1GradHzMask>
                          <Set1GradVtMask type="uint32[4]"> </Set1GradVtMask>
                          <Set1IntensityMask type="uint32[4]"> </Set1IntensityMask>
                          <Set1IntensityShift type="uint32[4]"> </Set1IntensityShift>
                          <Set1Thr type="uint32[7]"> </Set1Thr>
                          <blendMode type="uint32[4]"> </blendMode>
                          <bitMaskSel type="uint32[4]"> </bitMaskSel>
                          <FirCoefs type="FLXD_FirCoefs[12]"> </FirCoefs>
                          <cfa_lut type="uint32[639]"> </cfa_lut>
                      </cfg_flxd_cfa_vars>
                    </typedef>    
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <cfg_flxd_cfa_dcc type="cfg_flxd_cfa_vars">
            {
                  16,   // image bits 
                   1,    // lut_enable 
                       {255, 255, 255, 255}, //Set0GradHzMask 
                       {255, 255, 255, 255}, //Set0GradVtMask 
                       {15,15,15,15},//Set0IntensityMask 
                       {5,5,5,5}, //Set0IntensityShift 
                       {500,500,500,500,500,500,500}, //Set0Thr 
                       {255, 255, 255, 255}, //Set1GradHzMask 
                       {255, 255, 255, 255}, //Set1GradVtMask 
                       {15,15,15,15},//Set1IntensityMask 
                       {5,5,5,5}, //Set1IntensityShift 
                       {500,500,500,500,500,500,500}, //Set1Thr 
                       {2,2,2,2},//blendMode 
                       {0,0,0,0},//bitMaskSel 
     
    					//FirCoefs
    					{
    						//FirCoef 0 - Rh
    						{      
    							{
    							  { 0,  1,  0,  3,  0,  0,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  18,  0,  45,  0,  1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  -19,  0,  -48,  0,  -1,
    							   0,  1,  3,  4,  1,  0},
    					 
    							  { 0,  0,  3,  0,  1,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   1,  0,  45,  0,  18,  0,
    							   4,  18,  123,  45,  51,  1,
    							   -1,  0,  -48,  0,  -19,  0,
    							   0,  1,  4,  3,  1,  0},
    					 
    							  { 0,  1,  3,  4,  1,  0,
    							   0,  -19,  0,  -48,  0,  -1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  18,  0,  45,  0,  1,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  1,  0,  3,  0,  0},
    					 
    							  { 0,  1,  4,  3,  1,  0,
    							   -1,  0,  -48,  0,  -19,  0,
    							   4,  18,  123,  45,  51,  1,
    							   1,  0,  45,  0,  18,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   0,  0,  3,  0,  1,  0}
    							},
    						},						      
    
    						//FirCoef 1 : RV
    						{
    							{
    							  { 0,  -1,  0,  1,  0,  0,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -48,  0,  45,  0,  3,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -19,  0,  18,  0,  1,
    							   0,  1,  1,  4,  -1,  0},
    					 
    							  { 0,  0,  1,  0,  -1,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   3,  0,  45,  0,  -48,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   1,  0,  18,  0,  -19,  0,
    							   0,  -1,  4,  1,  1,  0},
    					 
    							  { 0,  1,  1,  4,  -1,  0,
    							   0,  -19,  0,  18,  0,  1,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -48,  0,  45,  0,  3,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -1,  0,  1,  0,  0},
    					 
    							  { 0,  -1,  4,  1,  1,  0,
    							   1,  0,  18,  0,  -19,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   3,  0,  45,  0,  -48,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   0,  0,  1,  0,  -1,  0}
    							},
    						},
    
    						//FirCoef 2 : RN
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  1,  0,  4,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  4,  0,  1,  0},
    					 
    							  { 0,  1,  0,  4,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  4,  0,  1,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 3 : Gh
    						{
    							{
    							  { 0,  2,  0,  4,  0,  0,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  44,  0,  107,  0,  3,
    							   3,  0,  107,  0,  44,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   0,  0,  4,  0,  2,  0},
    					 
    							  { 0,  0,  4,  0,  2,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   3,  0,  107,  0,  44,  0,
    							   0,  44,  0,  107,  0,  3,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  2,  0,  4,  0,  0},
    					 
    							  { 0,  0,  4,  0,  2,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   3,  0,  107,  0,  44,  0,
    							   0,  44,  0,  107,  0,  3,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  2,  0,  4,  0,  0},
    					 
    							  { 0,  2,  0,  4,  0,  0,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  44,  0,  107,  0,  3,
    							   3,  0,  107,  0,  44,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   0,  0,  4,  0,  2,  0}
    							},
    						},
    
    						//FirCoef 4 : GV
    						{
    							{
    							  { 0,  -1,  0,  3,  0,  0,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   0,  0,  3,  0,  -1,  0},
    					 
    							  { 0,  0,  3,  0,  -1,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -1,  0,  3,  0,  0},
    					 
    							  { 0,  0,  3,  0,  -1,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -1,  0,  3,  0,  0},
    					 
    							  { 0,  -1,  0,  3,  0,  0,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   0,  0,  3,  0,  -1,  0}
    							},
    						},
    
    						//FirCoef 5 : GN
    						{
    							{
    							  { 0,  0,  0,  2,  0,  0,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  15,  0,  99,  0,  2,
    							   2,  0,  99,  0,  15,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   0,  0,  2,  0,  0,  0},
    					 
    							  { 0,  0,  2,  0,  0,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   2,  0,  99,  0,  15,  0,
    							   0,  15,  0,  99,  0,  2,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  0,  0,  2,  0,  0},
    					 
    							  { 0,  0,  2,  0,  0,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   2,  0,  99,  0,  15,  0,
    							   0,  15,  0,  99,  0,  2,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  0,  0,  2,  0,  0},
    					 
    							  { 0,  0,  0,  2,  0,  0,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  15,  0,  99,  0,  2,
    							   2,  0,  99,  0,  15,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   0,  0,  2,  0,  0,  0}
    							},
    						},
    
    
    						//FirCoef 6 : BH
    						{
    							{
    							  { 0,  1,  4,  3,  1,  0,
    							   -1,  0,  -48,  0,  -19,  0,
    							   4,  18,  123,  45,  51,  1,
    							   1,  0,  45,  0,  18,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   0,  0,  3,  0,  1,  0},
    					 
    							  { 0,  1,  3,  4,  1,  0,
    							   0,  -19,  0,  -48,  0,  -1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  18,  0,  45,  0,  1,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  1,  0,  3,  0,  0},
    					 
    							  { 0,  0,  3,  0,  1,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   1,  0,  45,  0,  18,  0,
    							   4,  18,  123,  45,  51,  1,
    							   -1,  0,  -48,  0,  -19,  0,
    							   0,  1,  4,  3,  1,  0},
    					 
    							  { 0,  1,  0,  3,  0,  0,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  18,  0,  45,  0,  1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  -19,  0,  -48,  0,  -1,
    							   0,  1,  3,  4,  1,  0}
    							},
    						},
    
    						//FirCoef 7 : BV
    						{
    							{
    							  { 0,  -1,  4,  1,  1,  0,
    							   1,  0,  18,  0,  -19,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   3,  0,  45,  0,  -48,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   0,  0,  1,  0,  -1,  0},
    					 
    							  { 0,  1,  1,  4,  -1,  0,
    							   0,  -19,  0,  18,  0,  1,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -48,  0,  45,  0,  3,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -1,  0,  1,  0,  0},
    					 
    							  { 0,  0,  1,  0,  -1,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   3,  0,  45,  0,  -48,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   1,  0,  18,  0,  -19,  0,
    							   0,  -1,  4,  1,  1,  0},
    					 
    							  { 0,  -1,  0,  1,  0,  0,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -48,  0,  45,  0,  3,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -19,  0,  18,  0,  1,
    							   0,  1,  1,  4,  -1,  0}
    							},
    						},
    
    						//FirCoef 8 : BN
    						{
    							{
    							  { 0,  0,  4,  0,  1,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  1,  0,  4,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  4,  0,  1,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  1,  0,  4,  0,  0}
    
    							
    							},
    						},
    
    						//FirCoef 9 : Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 10 : Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 11 :Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							}
    						}
    					},
                        //FirCoefs
                      { //cfa_lut 
                           #include "lut_cfa_global.txt" 
                       } 
             }
            </cfg_flxd_cfa_dcc>
        </parameter_package>
      </use_case>
    </CFG_FLXD_CFA>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_H3A_AEWB_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_H3A_AEWB_CFG</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   3</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
          <iss_h3a_grid_size type="struct"> 
          <enable type="uint8"> </enable> <!-- enable h3a aewb-->
          <mode type="uint8"> </mode> <!-- 0 = SUM_SQ, 1=MINMAX, 2=SUM_ONLY-->
          <v_start type="uint16"> </v_start> <!-- Paxel_0 Start Coordinate Y in Pixels -->
          <h_start type="uint16"> </h_start> <!-- Paxel_0 Start Coordinate H in Pixels -->
          <v_size type="uint8"> </v_size> <!-- Paxel Height in Pixels -->
          <h_size type="uint8"> </h_size> <!-- Paxel Width in Pixels -->
          <v_count type="uint8"> </v_count> <!-- number of vertical paxels -->
          <h_count type="uint8"> </h_count> <!-- number of horizontal paxels -->
          <v_skip type="uint8"> </v_skip> <!--   vertical subsampling factor (0-15) -->
          <h_skip type="uint8"> </h_skip> <!--  horizontal subsampling factor (0-15) -->
          <saturation_limit type="uint16"> </saturation_limit> <!--  saturation_limit (0-1023) -->
          <blk_win_numlines type="uint16"> </blk_win_numlines> <!--  Win Height for the single black line of windows (2-256)-->
          <blk_row_vpos type="uint16"> </blk_row_vpos> <!--  Vertical Position of Black Row -->
          <sum_shift type="uint8"> </sum_shift> <!--  Sum Shift (0-15) -->
          <ALaw_En type="uint8"> </ALaw_En> <!--  A Law Enable (0/1) -->
          <MedFilt_En type="uint8"> </MedFilt_En> <!--  Median Filter Enable (0/1) -->
          </iss_h3a_grid_size> 
       </typedef>
      <!--=======================================================================-->
    		<use_case val="65535"> 
            		<n-space>
            			<region0 class="0">
            				<gain                      val="0" min="0" max="10240">  </gain>
            				<exposure              val="1" min="0" max="10000000">  </exposure>
            				<colortemperature val="2" min="0" max="10000">  </colortemperature>
            			</region0>
            		</n-space>
            <parameter_package>
                <h3a_aewb_dcc type="iss_h3a_grid_size">
                  {
                      1,     // enable:   u8
                      2,     // mode:     u8
                      12,     // v_start:  u16
                      32,     // h_start:  u16
                      66,     // v_size:   u8
                      58,     // h_size:   u8
                      16,     // v_count:  u8
                      32,     // h_count:  u8
                      4,     // v_skip:   u8
                      4,     // h_skip:   u8
                      1000,     // saturation_limit: u16
                      2,     // blk_win_numlines: u16
                      1076,     // blk_row_vpos:     u16
                      2,     // Sum Shift:   u8
                      0,     // ALaw_En:     u8
                      0,     // MedFilt_En:  u8
                  }
                </h3a_aewb_dcc>
            </parameter_package>
    		</use_case> 
    </VISS_H3A_AEWB_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <AWB_DCC_XML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>AWB_DCC_xml</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>  40</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
         <typedef>
    
    	     <dcc_awb_ref_gray_data_t type="struct">
    			<num_of_ref_1	type="uint8"> </num_of_ref_1>
    			<num_of_ref_2	type="uint8"> </num_of_ref_2>
    			<num_of_gray    type="uint8"> </num_of_gray>
    			<radius         type="uint16"> </radius>
    			<color_temp_1	type="uint16[]"> </color_temp_1>
    			<wbReferenceCb  type="int16[][4]"> </wbReferenceCb>
    			<wbReferenceCr  type="int16[][4]"> </wbReferenceCr>
    			<ref_gray_R_1	type="uint16[][4]"> </ref_gray_R_1>
    			<ref_gray_G_1	type="uint16[][4]"> </ref_gray_G_1>
    			<ref_gray_B_1	type="uint16[][4]"> </ref_gray_B_1>
    			<ref_index_2	type="uint8[]"> </ref_index_2>
    			<color_temp_2	type="uint16[]"> </color_temp_2>
    			<referencesCb_2 type="int16[][4]"> </referencesCb_2>
    			<referencesCr_2 type="int16[][4]"> </referencesCr_2>
    			<ref_gray_R_2	type="uint16[][4]"> </ref_gray_R_2>
    			<ref_gray_G_2	type="uint16[][4]"> </ref_gray_G_2>
    			<ref_gray_B_2	type="uint16[][4]"> </ref_gray_B_2>
            </dcc_awb_ref_gray_data_t>
    
            <dcc_awb_calc_data_t type="struct">
                <awb_basic_ref	            type="dcc_awb_ref_gray_data_t">	 </awb_basic_ref>
    			<img_ref    	            type="uint16[]">		 </img_ref>
                <luma_awb_min	            type="int32">				</luma_awb_min>
                <luma_awb_max	            type="int32">				</luma_awb_max>
    		    <low_color_temp_thresh	    type="uint16">				</low_color_temp_thresh>
                <apply_rgb_adjust	        type="uint8">				</apply_rgb_adjust>
                <R_adjust	                type="int16">				</R_adjust>
                <B_adjust	                type="int16">				</B_adjust>
                <SB_1	                    type="uint16">              </SB_1>
                <SB_2	                    type="uint16">				</SB_2>
                <SB_low_bound	            type="uint16">				</SB_low_bound>
                <default_T_H	            type="uint16">				</default_T_H>
                <default_T_MH               type="uint16">				</default_T_MH>
                <default_T_ML               type="uint16">				</default_T_ML>
                <default_T_L                type="uint16">				</default_T_L>
                <default_T_H_index          type="uint8">				</default_T_H_index>
                <default_T_MH_index         type="uint8">				</default_T_MH_index>
                <default_T_ML_index         type="uint8">				</default_T_ML_index>
                <default_T_L_index	        type="uint8">				</default_T_L_index>
                <best_gray_index_default    type="uint8">				</best_gray_index_default>
                <flash_ref	                type="dcc_awb_ref_gray_data_t[4]">	 </flash_ref>
    			<skin_img_ref    	        type="uint16[]">		 </skin_img_ref>
    		</dcc_awb_calc_data_t>
    
            <dcc_ti2_color_gain_scalers_t type="struct">
                <dgain  type="uint16">  </dgain>
                <gainGr type="uint16">  </gainGr>
                <gainR  type="uint16">  </gainR>
                <gainGb type="uint16">  </gainGb>
                <gainB  type="uint16">  </gainB>
            </dcc_ti2_color_gain_scalers_t>
    
            <dcc_awb_ti2_data_t type="struct">
                <wbModeData type="dcc_ti2_color_gain_scalers_t[]">      </wbModeData>
            </dcc_awb_ti2_data_t>
    
            <dcc_awb_supp2_alg3_t       type="struct">
                <use_calib              type="uint16">              </use_calib>
    			<blue_index             type="uint16">              </blue_index>
                <red_index              type="uint16">              </red_index>
                <green1_index           type="uint16">              </green1_index>
                <green2_index           type="uint16">              </green2_index>
                <enable_opt             type="uint8">               </enable_opt>
                <max_Cr                 type="int16">               </max_Cr>
                <max_Cb                 type="int16">               </max_Cb>
                <awb_speed              type="uint16">               </awb_speed>
                <awb_calc_data          type="dcc_awb_calc_data_t">     </awb_calc_data>
                <awb_data               type="dcc_awb_ti2_data_t">      </awb_data>
            </dcc_awb_supp2_alg3_t>
    
        </typedef>
      <!--=======================================================================-->
      <!--=======================================================================-->
        <system_parameters>
          <awb_alg_dcc_tuning type="dcc_awb_supp2_alg3_t" main="general">
    
     {
    	1,                                   /*use_calib*/
        0,                                   /*blue_index*/
        3,                                   /*red_index */
        2,                                   /* green1_index*/
        1,                                   /* green2_index*/
        1,                                   /* opt_data */
        200,                                   /* max_cr */
        200,                                   /* max_cb */
        6,                                   /* awb_speed */
    
        	{                           /* ti2_default_awb_calc_data */
    		{ //awb_ref
    			1,		// num_of_ref_1
    			1,		// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
    
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_index_2[num_of_ref_2]
           {0},
    
       // color_temp_2[num_of_ref_2]
             {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
    	},
       // img_ref[NUM_OF_REF_2*1120]
       {
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
      
       },
    
    		// AWB tuning parameters
    		5,	// luma_awb_min
    		250,	// luma_awb_max
    
    		3250,	// low_color_temp_thresh
    		0,	// apply_rgb_adjust
    		0,	// R_adjust()
    		0,	// B_adjust()
    
    		45,	// SB_1
    		55,	// SB_2
    		0,	    // SB_low_bound
    
    		3800,     // default_T_Hh
    		3800,     // default_T_MH
    		3800,     // default_T_ML
    		3800,     // default_T_L
    
    		0,		// default_T_Hh_index
    		0,		// default_T_MH_index
    		0,		// default_T_ML_index
    		0,		// default_T_L_index
    
    		1,     // best_gray_index_default
    
    
    		{ //started tuning for flash
    			{ //flash[0]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[1]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[2]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[3]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    		},//end of tuning data for flsh
    		{
    
    // skin histogram:
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    		},//end of skin histogram data
    
    	}, //end of awb_calc_data
    
    
    	{
    		//User modes dcc_ti2_color_gain_scalers_t[]
    NULL,
    	},
    }
         </awb_alg_dcc_tuning>
      </system_parameters>
    
      <!--=====================================================================-->
    </AWB_DCC_XML>
    
    添加我的xml文件,以供参考

  • 添加我的XML文件,以供参考

    <?xml version="1.0" encoding="utf-8"?>
    <AWB_DCC_XML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>AWB_DCC_xml</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>  40</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
         <typedef>
    
    	     <dcc_awb_ref_gray_data_t type="struct">
    			<num_of_ref_1	type="uint8"> </num_of_ref_1>
    			<num_of_ref_2	type="uint8"> </num_of_ref_2>
    			<num_of_gray    type="uint8"> </num_of_gray>
    			<radius         type="uint16"> </radius>
    			<color_temp_1	type="uint16[]"> </color_temp_1>
    			<wbReferenceCb  type="int16[][4]"> </wbReferenceCb>
    			<wbReferenceCr  type="int16[][4]"> </wbReferenceCr>
    			<ref_gray_R_1	type="uint16[][4]"> </ref_gray_R_1>
    			<ref_gray_G_1	type="uint16[][4]"> </ref_gray_G_1>
    			<ref_gray_B_1	type="uint16[][4]"> </ref_gray_B_1>
    			<ref_index_2	type="uint8[]"> </ref_index_2>
    			<color_temp_2	type="uint16[]"> </color_temp_2>
    			<referencesCb_2 type="int16[][4]"> </referencesCb_2>
    			<referencesCr_2 type="int16[][4]"> </referencesCr_2>
    			<ref_gray_R_2	type="uint16[][4]"> </ref_gray_R_2>
    			<ref_gray_G_2	type="uint16[][4]"> </ref_gray_G_2>
    			<ref_gray_B_2	type="uint16[][4]"> </ref_gray_B_2>
            </dcc_awb_ref_gray_data_t>
    
            <dcc_awb_calc_data_t type="struct">
                <awb_basic_ref	            type="dcc_awb_ref_gray_data_t">	 </awb_basic_ref>
    			<img_ref    	            type="uint16[]">		 </img_ref>
                <luma_awb_min	            type="int32">				</luma_awb_min>
                <luma_awb_max	            type="int32">				</luma_awb_max>
    		    <low_color_temp_thresh	    type="uint16">				</low_color_temp_thresh>
                <apply_rgb_adjust	        type="uint8">				</apply_rgb_adjust>
                <R_adjust	                type="int16">				</R_adjust>
                <B_adjust	                type="int16">				</B_adjust>
                <SB_1	                    type="uint16">              </SB_1>
                <SB_2	                    type="uint16">				</SB_2>
                <SB_low_bound	            type="uint16">				</SB_low_bound>
                <default_T_H	            type="uint16">				</default_T_H>
                <default_T_MH               type="uint16">				</default_T_MH>
                <default_T_ML               type="uint16">				</default_T_ML>
                <default_T_L                type="uint16">				</default_T_L>
                <default_T_H_index          type="uint8">				</default_T_H_index>
                <default_T_MH_index         type="uint8">				</default_T_MH_index>
                <default_T_ML_index         type="uint8">				</default_T_ML_index>
                <default_T_L_index	        type="uint8">				</default_T_L_index>
                <best_gray_index_default    type="uint8">				</best_gray_index_default>
                <flash_ref	                type="dcc_awb_ref_gray_data_t[4]">	 </flash_ref>
    			<skin_img_ref    	        type="uint16[]">		 </skin_img_ref>
    		</dcc_awb_calc_data_t>
    
            <dcc_ti2_color_gain_scalers_t type="struct">
                <dgain  type="uint16">  </dgain>
                <gainGr type="uint16">  </gainGr>
                <gainR  type="uint16">  </gainR>
                <gainGb type="uint16">  </gainGb>
                <gainB  type="uint16">  </gainB>
            </dcc_ti2_color_gain_scalers_t>
    
            <dcc_awb_ti2_data_t type="struct">
                <wbModeData type="dcc_ti2_color_gain_scalers_t[]">      </wbModeData>
            </dcc_awb_ti2_data_t>
    
            <dcc_awb_supp2_alg3_t       type="struct">
                <use_calib              type="uint16">              </use_calib>
    			<blue_index             type="uint16">              </blue_index>
                <red_index              type="uint16">              </red_index>
                <green1_index           type="uint16">              </green1_index>
                <green2_index           type="uint16">              </green2_index>
                <enable_opt             type="uint8">               </enable_opt>
                <max_Cr                 type="int16">               </max_Cr>
                <max_Cb                 type="int16">               </max_Cb>
                <awb_speed              type="uint16">               </awb_speed>
                <awb_calc_data          type="dcc_awb_calc_data_t">     </awb_calc_data>
                <awb_data               type="dcc_awb_ti2_data_t">      </awb_data>
            </dcc_awb_supp2_alg3_t>
    
        </typedef>
      <!--=======================================================================-->
      <!--=======================================================================-->
        <system_parameters>
          <awb_alg_dcc_tuning type="dcc_awb_supp2_alg3_t" main="general">
    
     {
    	1,                                   /*use_calib*/
        0,                                   /*blue_index*/
        3,                                   /*red_index */
        2,                                   /* green1_index*/
        1,                                   /* green2_index*/
        1,                                   /* opt_data */
        200,                                   /* max_cr */
        200,                                   /* max_cb */
        6,                                   /* awb_speed */
    
        	{                           /* ti2_default_awb_calc_data */
    		{ //awb_ref
    			1,		// num_of_ref_1
    			1,		// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
    
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_index_2[num_of_ref_2]
           {0},
    
       // color_temp_2[num_of_ref_2]
             {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0,},
       },
    
    	},
       // img_ref[NUM_OF_REF_2*1120]
       {
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
     	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
    	0,0,0,0,
      
       },
    
    		// AWB tuning parameters
    		5,	// luma_awb_min
    		250,	// luma_awb_max
    
    		3250,	// low_color_temp_thresh
    		0,	// apply_rgb_adjust
    		0,	// R_adjust()
    		0,	// B_adjust()
    
    		45,	// SB_1
    		55,	// SB_2
    		0,	    // SB_low_bound
    
    		3800,     // default_T_Hh
    		3800,     // default_T_MH
    		3800,     // default_T_ML
    		3800,     // default_T_L
    
    		0,		// default_T_Hh_index
    		0,		// default_T_MH_index
    		0,		// default_T_ML_index
    		0,		// default_T_L_index
    
    		1,     // best_gray_index_default
    
    
    		{ //started tuning for flash
    			{ //flash[0]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[1]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[2]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    			{ //flash[3]
    			1,			// num_of_ref_1
    			1,			// num_of_ref_2
    			1,		// num_of_gray
    			50,		// radius
    
           // color_temp_1[num_of_ref_1]
             {3800},
    
    			   // wbReferenceCb[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // wbReferenceCr[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_1[num_of_ref_1][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_index_2[num_of_ref_2]
       {0},
    
       // color_temp_2[num_of_ref_2]
       {3800},
    
       // referencesCb_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // referencesCr_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_R_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_G_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       // ref_gray_B_2[num_of_ref_2][num_of_gray]
       {
           {0,0,0,0},
       },
    
       },
    		},//end of tuning data for flsh
    		{
    
    // skin histogram:
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    0, 0, 0, 0,
    
    		},//end of skin histogram data
    
    	}, //end of awb_calc_data
    
    
    	{
    		//User modes dcc_ti2_color_gain_scalers_t[]
    NULL,
    	},
    }
         </awb_alg_dcc_tuning>
      </system_parameters>
    
      <!--=====================================================================-->
    </AWB_DCC_XML>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_H3A_AEWB_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_H3A_AEWB_CFG</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   3</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
          <iss_h3a_grid_size type="struct"> 
          <enable type="uint8"> </enable> <!-- enable h3a aewb-->
          <mode type="uint8"> </mode> <!-- 0 = SUM_SQ, 1=MINMAX, 2=SUM_ONLY-->
          <v_start type="uint16"> </v_start> <!-- Paxel_0 Start Coordinate Y in Pixels -->
          <h_start type="uint16"> </h_start> <!-- Paxel_0 Start Coordinate H in Pixels -->
          <v_size type="uint8"> </v_size> <!-- Paxel Height in Pixels -->
          <h_size type="uint8"> </h_size> <!-- Paxel Width in Pixels -->
          <v_count type="uint8"> </v_count> <!-- number of vertical paxels -->
          <h_count type="uint8"> </h_count> <!-- number of horizontal paxels -->
          <v_skip type="uint8"> </v_skip> <!--   vertical subsampling factor (0-15) -->
          <h_skip type="uint8"> </h_skip> <!--  horizontal subsampling factor (0-15) -->
          <saturation_limit type="uint16"> </saturation_limit> <!--  saturation_limit (0-1023) -->
          <blk_win_numlines type="uint16"> </blk_win_numlines> <!--  Win Height for the single black line of windows (2-256)-->
          <blk_row_vpos type="uint16"> </blk_row_vpos> <!--  Vertical Position of Black Row -->
          <sum_shift type="uint8"> </sum_shift> <!--  Sum Shift (0-15) -->
          <ALaw_En type="uint8"> </ALaw_En> <!--  A Law Enable (0/1) -->
          <MedFilt_En type="uint8"> </MedFilt_En> <!--  Median Filter Enable (0/1) -->
          </iss_h3a_grid_size> 
       </typedef>
      <!--=======================================================================-->
    		<use_case val="65535"> 
            		<n-space>
            			<region0 class="0">
            				<gain                      val="0" min="0" max="10240">  </gain>
            				<exposure              val="1" min="0" max="10000000">  </exposure>
            				<colortemperature val="2" min="0" max="10000">  </colortemperature>
            			</region0>
            		</n-space>
            <parameter_package>
                <h3a_aewb_dcc type="iss_h3a_grid_size">
                  {
                      1,     // enable:   u8
                      2,     // mode:     u8
                      12,     // v_start:  u16
                      32,     // h_start:  u16
                      66,     // v_size:   u8
                      58,     // h_size:   u8
                      16,     // v_count:  u8
                      32,     // h_count:  u8
                      4,     // v_skip:   u8
                      4,     // h_skip:   u8
                      1000,     // saturation_limit: u16
                      2,     // blk_win_numlines: u16
                      1076,     // blk_row_vpos:     u16
                      2,     // Sum Shift:   u8
                      0,     // ALaw_En:     u8
                      0,     // MedFilt_En:  u8
                  }
                </h3a_aewb_dcc>
            </parameter_package>
    		</use_case> 
    </VISS_H3A_AEWB_CFG>
    
    <?xml version="1.0" encoding="utf-8"?>
    <CFG_FLXD_CFA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>cfg_flxd_cfa</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   9</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
                  <typedef>
                      <FLXD_FirCoefs type="struct">
                          <matrix type="uint32[4][36]"></matrix>
                      </FLXD_FirCoefs>
                  </typedef>
                  <typedef>
                      <cfg_flxd_cfa_vars type="struct">
                          <image_bits type="uint32"> </image_bits>
                          <lut_enable type="uint32"> </lut_enable>
                          <Set0GradHzMask type="uint32[4]"> </Set0GradHzMask>
                          <Set0GradVtMask type="uint32[4]"> </Set0GradVtMask>
                          <Set0IntensityMask type="uint32[4]"> </Set0IntensityMask>
                          <Set0IntensityShift type="uint32[4]"> </Set0IntensityShift>
                          <Set0Thr type="uint32[7]"> </Set0Thr>
                          <Set1GradHzMask type="uint32[4]"> </Set1GradHzMask>
                          <Set1GradVtMask type="uint32[4]"> </Set1GradVtMask>
                          <Set1IntensityMask type="uint32[4]"> </Set1IntensityMask>
                          <Set1IntensityShift type="uint32[4]"> </Set1IntensityShift>
                          <Set1Thr type="uint32[7]"> </Set1Thr>
                          <blendMode type="uint32[4]"> </blendMode>
                          <bitMaskSel type="uint32[4]"> </bitMaskSel>
                          <FirCoefs type="FLXD_FirCoefs[12]"> </FirCoefs>
                          <cfa_lut type="uint32[639]"> </cfa_lut>
                      </cfg_flxd_cfa_vars>
                    </typedef>    
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <cfg_flxd_cfa_dcc type="cfg_flxd_cfa_vars">
            {
                  16,   // image bits 
                   1,    // lut_enable 
                       {255, 255, 255, 255}, //Set0GradHzMask 
                       {255, 255, 255, 255}, //Set0GradVtMask 
                       {15,15,15,15},//Set0IntensityMask 
                       {5,5,5,5}, //Set0IntensityShift 
                       {500,500,500,500,500,500,500}, //Set0Thr 
                       {255, 255, 255, 255}, //Set1GradHzMask 
                       {255, 255, 255, 255}, //Set1GradVtMask 
                       {15,15,15,15},//Set1IntensityMask 
                       {5,5,5,5}, //Set1IntensityShift 
                       {500,500,500,500,500,500,500}, //Set1Thr 
                       {2,2,2,2},//blendMode 
                       {0,0,0,0},//bitMaskSel 
     
    					//FirCoefs
    					{
    						//FirCoef 0 - Rh
    						{      
    							{
    							  { 0,  1,  0,  3,  0,  0,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  18,  0,  45,  0,  1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  -19,  0,  -48,  0,  -1,
    							   0,  1,  3,  4,  1,  0},
    					 
    							  { 0,  0,  3,  0,  1,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   1,  0,  45,  0,  18,  0,
    							   4,  18,  123,  45,  51,  1,
    							   -1,  0,  -48,  0,  -19,  0,
    							   0,  1,  4,  3,  1,  0},
    					 
    							  { 0,  1,  3,  4,  1,  0,
    							   0,  -19,  0,  -48,  0,  -1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  18,  0,  45,  0,  1,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  1,  0,  3,  0,  0},
    					 
    							  { 0,  1,  4,  3,  1,  0,
    							   -1,  0,  -48,  0,  -19,  0,
    							   4,  18,  123,  45,  51,  1,
    							   1,  0,  45,  0,  18,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   0,  0,  3,  0,  1,  0}
    							},
    						},						      
    
    						//FirCoef 1 : RV
    						{
    							{
    							  { 0,  -1,  0,  1,  0,  0,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -48,  0,  45,  0,  3,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -19,  0,  18,  0,  1,
    							   0,  1,  1,  4,  -1,  0},
    					 
    							  { 0,  0,  1,  0,  -1,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   3,  0,  45,  0,  -48,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   1,  0,  18,  0,  -19,  0,
    							   0,  -1,  4,  1,  1,  0},
    					 
    							  { 0,  1,  1,  4,  -1,  0,
    							   0,  -19,  0,  18,  0,  1,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -48,  0,  45,  0,  3,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -1,  0,  1,  0,  0},
    					 
    							  { 0,  -1,  4,  1,  1,  0,
    							   1,  0,  18,  0,  -19,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   3,  0,  45,  0,  -48,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   0,  0,  1,  0,  -1,  0}
    							},
    						},
    
    						//FirCoef 2 : RN
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  1,  0,  4,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  4,  0,  1,  0},
    					 
    							  { 0,  1,  0,  4,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  4,  0,  1,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 3 : Gh
    						{
    							{
    							  { 0,  2,  0,  4,  0,  0,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  44,  0,  107,  0,  3,
    							   3,  0,  107,  0,  44,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   0,  0,  4,  0,  2,  0},
    					 
    							  { 0,  0,  4,  0,  2,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   3,  0,  107,  0,  44,  0,
    							   0,  44,  0,  107,  0,  3,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  2,  0,  4,  0,  0},
    					 
    							  { 0,  0,  4,  0,  2,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   3,  0,  107,  0,  44,  0,
    							   0,  44,  0,  107,  0,  3,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  2,  0,  4,  0,  0},
    					 
    							  { 0,  2,  0,  4,  0,  0,
    							   -1,  0,  -22,  0,  -9,  0,
    							   0,  44,  0,  107,  0,  3,
    							   3,  0,  107,  0,  44,  0,
    							   0,  -9,  0,  -22,  0,  -1,
    							   0,  0,  4,  0,  2,  0}
    							},
    						},
    
    						//FirCoef 4 : GV
    						{
    							{
    							  { 0,  -1,  0,  3,  0,  0,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   0,  0,  3,  0,  -1,  0},
    					 
    							  { 0,  0,  3,  0,  -1,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -1,  0,  3,  0,  0},
    					 
    							  { 0,  0,  3,  0,  -1,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -1,  0,  3,  0,  0},
    					 
    							  { 0,  -1,  0,  3,  0,  0,
    							   2,  0,  44,  0,  -9,  0,
    							   0,  -22,  0,  107,  0,  4,
    							   4,  0,  107,  0,  -22,  0,
    							   0,  -9,  0,  44,  0,  2,
    							   0,  0,  3,  0,  -1,  0}
    							},
    						},
    
    						//FirCoef 5 : GN
    						{
    							{
    							  { 0,  0,  0,  2,  0,  0,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  15,  0,  99,  0,  2,
    							   2,  0,  99,  0,  15,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   0,  0,  2,  0,  0,  0},
    					 
    							  { 0,  0,  2,  0,  0,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   2,  0,  99,  0,  15,  0,
    							   0,  15,  0,  99,  0,  2,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  0,  0,  2,  0,  0},
    					 
    							  { 0,  0,  2,  0,  0,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   2,  0,  99,  0,  15,  0,
    							   0,  15,  0,  99,  0,  2,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  0,  0,  2,  0,  0},
    					 
    							  { 0,  0,  0,  2,  0,  0,
    							   0,  0,  15,  0,  -5,  0,
    							   0,  15,  0,  99,  0,  2,
    							   2,  0,  99,  0,  15,  0,
    							   0,  -5,  0,  15,  0,  0,
    							   0,  0,  2,  0,  0,  0}
    							},
    						},
    
    
    						//FirCoef 6 : BH
    						{
    							{
    							  { 0,  1,  4,  3,  1,  0,
    							   -1,  0,  -48,  0,  -19,  0,
    							   4,  18,  123,  45,  51,  1,
    							   1,  0,  45,  0,  18,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   0,  0,  3,  0,  1,  0},
    					 
    							  { 0,  1,  3,  4,  1,  0,
    							   0,  -19,  0,  -48,  0,  -1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  18,  0,  45,  0,  1,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  1,  0,  3,  0,  0},
    					 
    							  { 0,  0,  3,  0,  1,  0,
    							   1,  -19,  51,  -48,  21,  -1,
    							   1,  0,  45,  0,  18,  0,
    							   4,  18,  123,  45,  51,  1,
    							   -1,  0,  -48,  0,  -19,  0,
    							   0,  1,  4,  3,  1,  0},
    					 
    							  { 0,  1,  0,  3,  0,  0,
    							   -1,  21,  -48,  51,  -19,  1,
    							   0,  18,  0,  45,  0,  1,
    							   1,  51,  45,  123,  18,  4,
    							   0,  -19,  0,  -48,  0,  -1,
    							   0,  1,  3,  4,  1,  0}
    							},
    						},
    
    						//FirCoef 7 : BV
    						{
    							{
    							  { 0,  -1,  4,  1,  1,  0,
    							   1,  0,  18,  0,  -19,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   3,  0,  45,  0,  -48,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   0,  0,  1,  0,  -1,  0},
    					 
    							  { 0,  1,  1,  4,  -1,  0,
    							   0,  -19,  0,  18,  0,  1,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -48,  0,  45,  0,  3,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -1,  0,  1,  0,  0},
    					 
    							  { 0,  0,  1,  0,  -1,  0,
    							   1,  -19,  51,  18,  21,  1,
    							   3,  0,  45,  0,  -48,  0,
    							   4,  -48,  123,  45,  51,  3,
    							   1,  0,  18,  0,  -19,  0,
    							   0,  -1,  4,  1,  1,  0},
    					 
    							  { 0,  -1,  0,  1,  0,  0,
    							   1,  21,  18,  51,  -19,  1,
    							   0,  -48,  0,  45,  0,  3,
    							   3,  51,  45,  123,  -48,  4,
    							   0,  -19,  0,  18,  0,  1,
    							   0,  1,  1,  4,  -1,  0}
    							},
    						},
    
    						//FirCoef 8 : BN
    						{
    							{
    							  { 0,  0,  4,  0,  1,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  1,  0,  4,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   1,  0,  51,  0,  21,  0,
    							   0,  0,  0,  0,  0,  0,
    							   4,  0,  123,  0,  51,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  4,  0,  1,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  21,  0,  51,  0,  1,
    							   0,  0,  0,  0,  0,  0,
    							   0,  51,  0,  123,  0,  4,
    							   0,  0,  0,  0,  0,  0,
    							   0,  1,  0,  4,  0,  0}
    
    							
    							},
    						},
    
    						//FirCoef 9 : Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 10 : Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							},
    						},
    
    						//FirCoef 11 :Dummy
    						{
    							{
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0},
    					 
    							  { 0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0,
    							   0,  0,  0,  0,  0,  0}
    							}
    						}
    					},
                        //FirCoefs
                      { //cfa_lut 
                           #include "lut_cfa_global.txt" 
                       } 
             }
            </cfg_flxd_cfa_dcc>
        </parameter_package>
      </use_case>
    </CFG_FLXD_CFA>
    
    <?xml version="1.0" encoding="utf-8"?>
    <VISS_H3A_MUX_LUTS_CFG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <!--this is comment-->
      <dcc_name>VISS_H3A_MUX_LUTS_CFG</dcc_name>
      <dcc_header>
        <camera_module_id>     390</camera_module_id>
        <dcc_descriptor_id>   2</dcc_descriptor_id>
        <algorithm_vendor_id>   1</algorithm_vendor_id>
        <tunning_tool_version>       0</tunning_tool_version>
      </dcc_header>
      <!--=======================================================================-->
          <typedef>
        <iss_h3a_mux_luts type="struct">
           <enable type="uint16"> </enable> <!-- enable -->
           <num_luts type="uint16"> </num_luts> <!-- number of LUTs (0 ~ 3) -->
           <h3a_mux_luts type="uint16[3][639]"> </h3a_mux_luts> <!-- H3A LUTs -->
          </iss_h3a_mux_luts>
       </typedef>
      <!--=======================================================================-->
    
      <use_case val="65535">
        <n-space>
          <region0 class="0">
            <exposure val="1" min="0" max="100000">  </exposure>
            <gain val="0" min="0" max="250000">  </gain>
          </region0>
        </n-space>
        <parameter_package>
        <!-- Parameters for photospace class: 0 -->
            <VISS_H3A_MUX_LUTS_CFG_dcc type="iss_h3a_mux_luts">
            {
                    1, //enable
                    1, //number of LUTs
                    {
                        {#include "lut_remap_16bto10b.txt"},
                        {#include "lut_remap_16bto10b.txt"},
                        {#include "lut_remap_16bto10b.txt"},
                    },
            }
            </VISS_H3A_MUX_LUTS_CFG_dcc>
        </parameter_package>
      </use_case>
    </VISS_H3A_MUX_LUTS_CFG>
    

  • Hi

    感谢您对TI产品的关注! 关于您的咨询,我看您在英文E2E与我们的工程师Gang Hua在沟通。 那这边的帖子我就关闭了。 有疑问请继续与Gang Hua直接沟通。