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.

PROCESSOR-SDK-J784S4: Add a new cam-sensor "Omnivision 0X03C10", it can not display on the screen

Part Number: PROCESSOR-SDK-J784S4


Tool/software:

Hi ti,

     we add a new cam, it is Omnivision 0X03C10,the params in sensor-drv is these :

static IssSensor_CreateParams  ace2MCreatePrms = {
    "omni-o3x",       /*sensor name*/
    0x6,                             /*i2cInstId*/
    {
        0, 0, 0, 0, 0, 0, 0, 0
#if defined(SOC_J784S4) || defined(SOC_J742S2)
        , 0, 0, 0, 0
#endif
    },   /*i2cAddrSensor*/
    {0, 0, 0, 0, 0, 0, 0, 0},      /*i2cAddrSer*/
    /*IssSensor_Info*/
    {
        {
            1920,               /*width*/
            1080,               /*height*/
            1,                              /*num_exposures*/
            vx_false_e,                     /*line_interleaved*/
            {
                {TIVX_RAW_IMAGE_16_BIT, 11},    /*dataFormat and MSB [0]*/
            },
            0,                              /*meta_height_before*/
            0,      /*meta_height_after*/
        },
        0,     		/*features*/
        ALGORITHMS_ISS_AEWB_MODE_NONE,  /*aewbMode*/
        30,                             /*fps*/
        4,                              /*numDataLanes*/
        {1, 2, 3, 4},                   /*dataLanesMap*/
        {0, 0, 0, 0},                   /*dataLanesPolarity*/
#if 1
        CSIRX_LANE_BAND_SPEED_1200_TO_1350_MBPS, /*csi_laneBandSpeed*/
#else
        CSIRX_LANE_BAND_SPEED_720_TO_800_MBPS, /*csi_laneBandSpeed*/
#endif
    },
    8,                                  /*numChan*/
    200,                                /*dccId*/
};

  • also ,we created the "ox03c10_properties.txt"  in  "\ti-processor-sdk-rtos-j784s4-evm-10_01_00_04\imaging\tools\default_DCC_profile_gen\configs", the properties is these:

    SENSOR_ID 200
    PRJ_DIR ../ox03c10_output
    SENSOR_NAME ox03c10
    SENSOR_DCC_NAME OX03C10_ACE
    
    SENSOR_WIDTH 1920
    SENSOR_HEIGHT 1080
    
    # 0=RGGB; 1=GRBG; 2=GBRG; 3=BGGR, 4=MONO,
    #10=RGGI, 11=GRIG, 12=BGGI, 13=GBIG, 14=GIRG, 15=IGGR, 16=GIBG, 17=IGGB
    COLOR_PATTERN 3
    
    # sensor mode: 0 for linear (no decompanding), 1 for WDR (decompanding)
    WDR_MODE 0
    
    # 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 20
    
    # 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
    
    # Sensor black level to subtract before decompanding (for some Sony WDR sensors)
    # When PCID is on for RGBIR sensors, black level might be set to 0
    BLACK_PRE 0
    
    # Sensor black level to subtract after decompanding (for most WDR sensors and all linear sensors)
    # When PCID is on for RGBIR sensors, black level might be set to 0
    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

    we switch the wdr_mode 0 or 1 to generate dccxxx.h with wdr or without wdr,  such like these:

    -rw-r--r-- 1 49117 Domain Users 33259 Apr 11 11:20 dcc_2a_ox03c10.h
    -rw-r--r-- 1 49117 Domain Users 33283 Apr 11 11:20 dcc_2a_ox03c10_wdr.h
    -rw-r--r-- 1 49117 Domain Users 15327 Apr 11 11:20 dcc_ldc_ox03c10.h
    -rw-r--r-- 1 49117 Domain Users 15351 Apr 11 11:20 dcc_ldc_ox03c10_wdr.h
    -rw-r--r-- 1 49117 Domain Users 101223 Apr 11 11:20 dcc_viss_ox03c10.h
    -rw-r--r-- 1 49117 Domain Users 105429 Apr 11 11:20 dcc_viss_ox03c10_wdr.h

    so , we used to include these dcc-file in "app_iss_common.c" and changed the code switch-case "SENSOR_NAME" ;

    we maked the "vx_app_rtos_linux_mcu2_0.out, libtivision_apps.so.10.1.0 , vx_app_single_cam.out" and update to  J784S4 Demo-board.

  • at last ,we start the  vx_app_single_cam.out  sucessfully & press "s" to save img_raw/yuv ,we can open the  img_raw like this:

    but on the screen , it displayed a  all-white picture , can you give us some sugestions or solution for this?

  • Hi,

    RAW image seems to have some valid contents, how about yuv output from VISS? Does it also contain valid data? Can you please share VISS output also? 

    Regards,

    Brijesh