1. DCC Files
The VISS and the 2A algorithms are configured by DCC (Dynamic Camera Configuration) files, compiled from XML sources with TI’sdcc_gen_linux. Every sensor has two files in /opt/imaging/<sensor>/linear/, plus
dcc_ldc.bin for sensors with a lens distortion tuning.
2. Starting Tuning for a New Sensor
camera-isp-sdk new --dcc-from <sensor> copies another sensor’s sources, rewrites the module ID, fits the H3A grid to
the frame size and moves the demosaic coefficients to the new sensor’s Bayer order. That gives a first image.
Beyond these adjustments, only the bit-depth dependent components can be right, and only if the template has
the same bit depth:
- 10-bit sensors:
imx230(TI’s IMX219 10-bit pipeline) - 12-bit sensors:
imx477(TI’s IMX390 12-bit linear tuning)
black_level of the libcamera tuning file divided down to the sensor’s bit depth. Colours
and white balance stay the template’s until the sensor is tuned.
3. Bayer Order
The VISS demosaic does not learn the Bayer order from the image. The CFA component holds a separate kernel for each phase of the 2x2 cell, made for one Bayer order: RGGB in TI’s IMX219 and IMX390 tunings, GRBG in its AR0233 and AR0820 ones.tiovxisp passes the Bayer order of the caps to the 2A only (H3A statistics, white balance
gains). Coefficients made for another order take colours from the wrong pixels.

The OV5647 colour bar test pattern at the ISP output. Top: BGGR coefficients; bottom: RGGB coefficients copied from imx230, which swap yellow with cyan and red with blue.
camera-isp-sdk dcc fit-cfa therefore only moves the kernels
to their new phases. You need to run it after changing [mode] code; camera-isp-sdk validate fails when the coefficients and the
descriptor disagree.
4. Tuning a Sensor
TI’s DCC Tuning Tool (available from TI on request) generates every XML file above from captures.-
You can capture raw frames on the board without the ISP, setting exposure and gain by hand for each scene.
- You can capture what the tool asks for: dark frames (black level, noise), a Macbeth chart under several illuminants (colour matrix, AWB) and a flat field if lens shading is used.
-
You need to set
camera_module_idin the generated XML files to the descriptor’sdcc-id; then you can replace the files insensors/<sensor>/dcc/linear/. -
You can check the sources with
./camera-isp-sdk validate, rebuild withtask dccand compare the result on the board.

