现象:出图后,画面黑,只能看见灯光 ,当前曝光增益均在限制的最小值,无法自动变化
我们在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