SPRAD86A March 2023 – May 2024 AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1 , AM67A , AM68A , AM69A
Go to TI's reference imaging software, imaging/tools/default_DCC_profile_gen/configs, and create a configuration file for default camera properties. Existing configuration files in this folder can be referenced.
Specify the following parameters in this configuration file:
Following is a configuration example for IMX219. The WDR related parameters are not used but must be included for the script to run.
SENSOR_ID 219
SENSOR_NAME IMX219
SENSOR_DCC_NAME SENSOR_IMX219_RPI
PRJ_DIR ../../../sensor_drv/src/imx219_output
SENSOR_WIDTH 1920
SENSOR_HEIGHT 1080
COLOR_PATTERN 0
WDR_MODE 0
BIT_DEPTH 10
WDR_BIT_DEPTH 20
WDR_KNEE_X 0,512
WDR_KNEE_Y 0,2048
BLACK_PRE 0
BLACK_POST 0
GAMMA_PRE 70
H3A_INPUT_LSB 0
Once the configuration file is created, run the ctt_def_xml_gen.py
Python script in imaging/tools/default_DCC_profile_gen/scripts as below:
imaging/tools/default_DCC_profile_gen/scripts$ python ctt_def_xml_gen.py ../configs/<configuration file>
The generated xml files are in the folder $PRJ_DIR/dcc_xml. A script file generate_dcc.sh is also generated in the xml folder. For example, below is the content of the xml folder for IMX219 (linear mode):
$PRJ_DIR/dcc_xmls/linear$ ls -l
generate_dcc.sh
imx219_awb_alg_ti3_tuning.xml
imx219_cfa_dcc.xml
imx219_h3a_aewb_dcc.xml
imx219_h3a_mux_luts_dcc.xml
imx219_linear_decompand_dcc.xml
imx219_mesh_ldc_dcc.xml
imx219_rgb2rgb_dcc.xml
imx219_viss_blc.xml
imx219_viss_nsf4.xml