GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ifneq ($(MCU), )
|
||||
include Makefile.riscv
|
||||
else
|
||||
include Makefile.linux
|
||||
endif
|
||||
@@ -0,0 +1,20 @@
|
||||
ISP_DIR := $(shell cd ../.. && /bin/pwd)
|
||||
SDK_DIR ?= $(shell cd $(ISP_DIR)/../../../.. && /bin/pwd)
|
||||
|
||||
include $(SDK_DIR)/build/base.mk
|
||||
include $(ISP_DIR)/sensor/plat.mk
|
||||
|
||||
LIB_NAME := libsns_sc465sl
|
||||
|
||||
SRCS := $(wildcard *.c)
|
||||
|
||||
SDK_USR_CFLAGS += -I$(GMP_DIR)/include
|
||||
SDK_USR_CFLAGS += -I$(GMP_DIR)/usr/include
|
||||
SDK_USR_CFLAGS += -I$(ISP_DIR)/include
|
||||
SDK_USR_CFLAGS += -I$(ISP_DIR)/../include
|
||||
SDK_USR_CFLAGS += -I.
|
||||
AT := @
|
||||
|
||||
$(info SRCS=$(SRCS))
|
||||
|
||||
include $(SDK_DIR)/build/sdk_lib_rules.mk
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
SRCS-y += sc465sl.c
|
||||
SRCS-y += sc465sl_ctrl.c
|
||||
|
||||
+1696
File diff suppressed because it is too large
Load Diff
+92
@@ -0,0 +1,92 @@
|
||||
#ifndef __SC465SL_H__
|
||||
#define __SC465SL_H__
|
||||
|
||||
#include "sc465sl_ctrl.h"
|
||||
#include "sns_comm.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define SC465SL_REG_ADDR_EXP_HIGHER 0x3E20
|
||||
#define SC465SL_REG_ADDR_EXP_H 0x3E00
|
||||
#define SC465SL_REG_ADDR_EXP_M 0x3E01
|
||||
#define SC465SL_REG_ADDR_EXP_L 0x3E02
|
||||
#define SC465SL_REG_ADDR_DGAIN_H 0x3E06
|
||||
#define SC465SL_REG_ADDR_DGAIN_L 0x3E07
|
||||
#define SC465SL_REG_ADDR_AGAIN_H 0x3E08
|
||||
#define SC465SL_REG_ADDR_AGAIN_L 0x3E09
|
||||
#define SC465SL_REG_ADDR_VMAX_H 0x326D
|
||||
#define SC465SL_REG_ADDR_VMAX_M 0x320E
|
||||
#define SC465SL_REG_ADDR_VMAX_L 0x320F
|
||||
|
||||
#define SC465SL_REG_ADDR_S_EXP_HIGHER 0x3E21
|
||||
#define SC465SL_REG_ADDR_S_EXP_H 0x3E22
|
||||
#define SC465SL_REG_ADDR_S_EXP_M 0x3E04
|
||||
#define SC465SL_REG_ADDR_S_EXP_L 0x3E05
|
||||
#define SC465SL_REG_ADDR_S_AGAIN_H 0x3E12
|
||||
#define SC465SL_REG_ADDR_S_AGAIN_L 0x3E13
|
||||
#define SC465SL_REG_ADDR_S_DGAIN_H 0x3E10
|
||||
#define SC465SL_REG_ADDR_S_DGAIN_L 0x3E11
|
||||
#define SC465SL_SEXP_MAX_ADDR_H 0x3E33
|
||||
#define SC465SL_SEXP_MAX_ADDR_M 0x3E23
|
||||
#define SC465SL_SEXP_MAX_ADDR_L 0x3E24
|
||||
|
||||
#define SC465SL_FRAME_RATE_MIN 0x3DB8 //Min:3fps
|
||||
#define EXP_OFFSET_LINEAR 8
|
||||
#define EXP_OFFSET_WDR 13
|
||||
#define SC465SL_EXP_MAX_DEFAULT 0x180
|
||||
|
||||
// the value of the sc465sl exposure register is in half line units, (<< 1) for AE calculation, (>> 1) for EXP reg
|
||||
#define SC465SL_EXP_SHIFT 1
|
||||
|
||||
typedef enum {
|
||||
SC465SL_REG_EXP_HIGHER = 0,
|
||||
SC465SL_REG_EXP_H,
|
||||
SC465SL_REG_EXP_M,
|
||||
SC465SL_REG_EXP_L,
|
||||
SC465SL_REG_DGC_H,
|
||||
SC465SL_REG_DGC_L,
|
||||
SC465SL_REG_AGC_H,
|
||||
SC465SL_REG_AGC_L,
|
||||
SC465SL_REG_VMAX_H,
|
||||
SC465SL_REG_VMAX_M,
|
||||
SC465SL_REG_VMAX_L,
|
||||
SC465SL_REG_L_MAX_NUM,
|
||||
|
||||
// short frame reg info from here
|
||||
SC465SL_REG_S_EXP_HIGHER = SC465SL_REG_L_MAX_NUM,
|
||||
SC465SL_REG_S_EXP_H,
|
||||
SC465SL_REG_S_EXP_M,
|
||||
SC465SL_REG_S_EXP_L,
|
||||
SC465SL_REG_S_DGAIN_H,
|
||||
SC465SL_REG_S_DGAIN_L,
|
||||
SC465SL_REG_S_AGAIN_H,
|
||||
SC465SL_REG_S_AGAIN_L,
|
||||
SC465SL_REG_S_EXP_MAX_H,
|
||||
SC465SL_REG_S_EXP_MAX_M,
|
||||
SC465SL_REG_S_EXP_MAX_L,
|
||||
SC465SL_REG_MAX_NUM
|
||||
} sc465sl_reg_info;
|
||||
|
||||
#define SC465SL_VMAX_4M_2LANE_LINEAR 0xa6a
|
||||
#if SC465SL_USE_CMS4
|
||||
#define SC465SL_VMAX_4M_4LANE_LINEAR 0x62c
|
||||
#else
|
||||
#if SC465SL_60FPS
|
||||
#define SC465SL_VMAX_4M_4LANE_LINEAR 0x640
|
||||
#else
|
||||
#define SC465SL_VMAX_4M_4LANE_LINEAR 0xa6a
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define SC465SL_VMAX_4M_4LANE_WDR 0xc80
|
||||
#define SC465SL_FULL_LINES_MAX 0xFFFFF
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __SC465SL_H__
|
||||
+1756
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
||||
#ifndef __SC465SL_CTRL_H__
|
||||
#define __SC465SL_CTRL_H__
|
||||
|
||||
#include "sns_comm.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define SC465SL_I2C_ADDR 0x60
|
||||
#define SC465SL_ADDR_BYTE 2
|
||||
#define SC465SL_DATA_BYTE 1
|
||||
|
||||
#define SC465SL_USE_CMS4 0
|
||||
#define SC465SL_60FPS 0
|
||||
|
||||
// sc465sl specs list
|
||||
typedef enum {
|
||||
SC465SL_4M_12BIT_2LANE_LINEAR_MODE,
|
||||
SC465SL_4M_12BIT_4LANE_LINEAR_MODE,
|
||||
SC465SL_4M_10BIT_4LANE_WDR_MODE,
|
||||
} sc465sl_specs;
|
||||
|
||||
xmedia_s32 sc465sl_i2c_init(xmedia_u32 dev, xmedia_s8 i2c_dev, xmedia_u32 i2c_addr);
|
||||
xmedia_s32 sc465sl_i2c_exit(xmedia_u32 dev);
|
||||
xmedia_s32 sc465sl_read_reg(xmedia_u32 dev, xmedia_u32 addr, xmedia_u32 *data);
|
||||
xmedia_s32 sc465sl_write_reg(xmedia_u32 dev, xmedia_u32 addr, xmedia_u32 data);
|
||||
xmedia_s32 sc465sl_set_mirror_flip(xmedia_u32 dev, xmedia_bool mirror_en, xmedia_bool flip_en);
|
||||
xmedia_s32 sc465sl_init_image(xmedia_u32 dev, xmedia_u8 img_mode, xmedia_sensor_work_mode work_mode);
|
||||
xmedia_s32 sc465sl_set_slave_addr(xmedia_u32 dev, xmedia_u32 slave_addr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //__SC465SL_CTRL_H__
|
||||
+305
@@ -0,0 +1,305 @@
|
||||
#ifndef __SC465sl_EX_H__
|
||||
#define __SC465sl_EX_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
static const xmedia_isp_bnr_attr sc465sl_bnr={
|
||||
1, //enable
|
||||
2, //ainr_pos_switch
|
||||
0, //coring_pos_switch
|
||||
0, //noise_reserve_enable
|
||||
{102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,102,103,104,105,106,107,108,108,108,108,108,108,108,108,108,108,108,115,115,115,115,123,123,123,123,131,131,131,131,138,138,138,138,146,146,146,146,154,154,154,154,161,161}, //noise_reserve_lut
|
||||
10741, //noise_profile_thd
|
||||
{ 0.0001596111000,0.0053947512000,0.0000000181000,0.0000011715000,0.0063572712000 },
|
||||
{ 0.0001961041000,-0.0620838031000,0.0000000116000,-0.0000009389000,0.0387315117000 },
|
||||
0, //snr_wdr_comp_en
|
||||
1, //tnr_enable
|
||||
1, //tnr_luma_comp_enable
|
||||
0, //tnr_wdr_comp_enable
|
||||
0, //op_type
|
||||
{
|
||||
12, //iso_num
|
||||
{100,200,400,800,1600,3200,6400,12800,25600,51200,102400,204800,409600,819200,1638400,3276800}, //iso_level
|
||||
{
|
||||
{282,282,282,282}, //snr_coarse_str[0]
|
||||
{282,282,282,282}, //snr_coarse_str[1]
|
||||
{307,307,307,307}, //snr_coarse_str[2]
|
||||
{333,333,333,333}, //snr_coarse_str[3]
|
||||
{358,358,358,358}, //snr_coarse_str[4]
|
||||
{358,358,358,358}, //snr_coarse_str[5]
|
||||
{358,358,358,358}, //snr_coarse_str[6]
|
||||
{358,358,358,358}, //snr_coarse_str[7]
|
||||
{358,358,358,358}, //snr_coarse_str[8]
|
||||
{358,358,358,358}, //snr_coarse_str[9]
|
||||
{358,358,358,358}, //snr_coarse_str[10]
|
||||
{358,358,358,358}, //snr_coarse_str[11]
|
||||
{358,358,358,358}, //snr_coarse_str[12]
|
||||
{358,358,358,358}, //snr_coarse_str[13]
|
||||
{358,358,358,358}, //snr_coarse_str[14]
|
||||
{358,358,358,358}, //snr_coarse_str[15]
|
||||
}, //snr_coarse_str
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_coring_wgt
|
||||
{
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[0]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[1]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[2]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[3]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[4]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[5]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[6]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[7]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[8]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[9]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[10]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[11]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[12]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[13]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[14]
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str[15]
|
||||
}, //snr_luma_nr_str
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //snr_center_luma_mode
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //snr_center_tnr_luma_mode
|
||||
{512,512,512,512,512,512,512,512,512,512,512,512,512,512,512,512}, //snr_wdr_comp_scl
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_noise_min
|
||||
{64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64}, //tnr_bayer_str
|
||||
{56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56}, //tnr_md_thd_low
|
||||
{112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112}, //tnr_md_thd_high
|
||||
{512,512,512,512,512,512,512,512,512,512,512,512,512,512,512,512}, //tnr_wgt_min
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //tnr_min_ratio
|
||||
{70,64,56,48,40,32,24,16,12,8,8,8,8,8,8,8}, //tnr_mot_bld_thd_low
|
||||
{140,128,112,96,80,64,48,32,24,16,16,16,16,16,16,16}, //tnr_mot_bld_thd_high
|
||||
{120,112,104,96,88,16,16,32,32,32,32,32,32,32,32,32}, //tnr_edge_md_thd_low
|
||||
{240,224,208,192,176,32,32,64,64,64,64,64,64,64,64,64}, //tnr_edge_md_thd_high
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_flat_md_scl
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_edge_md_scl
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //tnr_md_mode
|
||||
{1024,1024,1024,1024,896,768,640,512,256,128,128,128,128,128,128,128}, //tnr_luma_md_thd_low
|
||||
{2048,2048,2048,2048,2560,1024,1024,1024,512,256,256,256,256,256,256,256}, //tnr_luma_md_thd_high
|
||||
{256,256,256,256,256,256,256,256,320,320,320,320,320,320,320,320}, //tnr_dark_md_scl
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_bright_md_scl
|
||||
{
|
||||
{176,176,176}, //tnr_mot_scl[0]
|
||||
{176,176,176}, //tnr_mot_scl[1]
|
||||
{176,176,176}, //tnr_mot_scl[2]
|
||||
{176,176,176}, //tnr_mot_scl[3]
|
||||
{176,176,176}, //tnr_mot_scl[4]
|
||||
{176,176,176}, //tnr_mot_scl[5]
|
||||
{176,176,176}, //tnr_mot_scl[6]
|
||||
{176,176,176}, //tnr_mot_scl[7]
|
||||
{176,176,176}, //tnr_mot_scl[8]
|
||||
{176,176,176}, //tnr_mot_scl[9]
|
||||
{176,176,176}, //tnr_mot_scl[10]
|
||||
{176,176,176}, //tnr_mot_scl[11]
|
||||
{176,176,176}, //tnr_mot_scl[12]
|
||||
{176,176,176}, //tnr_mot_scl[13]
|
||||
{176,176,176}, //tnr_mot_scl[14]
|
||||
{176,176,176}, //tnr_mot_scl[15]
|
||||
}, //tnr_mot_scl
|
||||
{32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32}, //tnr_var_scl
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //tnr_mot_noise_luma_thd_low
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //tnr_mot_noise_luma_thd_high
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_mot_noise_dark_scl
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_mot_noise_bright_scl
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //tnr_mot_dpc_str
|
||||
{
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[0]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[1]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[2]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[3]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[4]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[5]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[6]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[7]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[8]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[9]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[10]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[11]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[12]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[13]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[14]
|
||||
{880,1280,1280,1536}, //tnr_mot_convg_thd[15]
|
||||
}, //tnr_mot_convg_thd
|
||||
{256,256,256,256,256,256,320,384,384,384,384,384,384,384,384,384}, //tnr_mot_noise_scl
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_mot_noise_scl_high
|
||||
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, //tnr_dpc_en
|
||||
{0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1}, //tnr_dp_mode
|
||||
{384,384,389,384,384,384,384,384,256,256,256,256,256,256,256,256}, //tnr_dp_thd_rb
|
||||
{384,384,384,384,384,384,384,384,256,256,256,256,256,256,256,256}, //tnr_dp_thd_g
|
||||
{128,128,128,128,128,256,256,384,384,384,384,384,384,384,384,384}, //tnr_dp_luma_thd_low
|
||||
{256,256,256,256,256,512,512,768,768,768,768,768,768,768,768,768}, //tnr_dp_luma_thd_high
|
||||
{256,256,256,256,256,224,192,160,128,128,128,128,128,128,128,128}, //tnr_dp_thd_low_dark_scl
|
||||
{256,256,256,256,256,256,224,192,160,128,128,128,128,128,128,128}, //tnr_dp_thd_high_dark_scl
|
||||
{
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[0]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[1]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[2]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[3]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[4]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[5]
|
||||
{128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[6]
|
||||
{64,96,128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[7]
|
||||
{32,64,96,128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[8]
|
||||
{0,32,64,96,128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[9]
|
||||
{0,32,64,96,128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[10]
|
||||
{0,32,64,96,128,160,192,224,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[11]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[12]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[13]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[14]
|
||||
{256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256,256}, //tnr_luma_ratio[15]
|
||||
}, //tnr_luma_ratio
|
||||
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, //tnr_wdr_comp_scl
|
||||
}, //auto_attr
|
||||
{
|
||||
{128,128,128,128}, //snr_coarse_str
|
||||
128, //snr_coring_wgt
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //snr_luma_nr_str
|
||||
0, //snr_center_luma_mode
|
||||
0, //snr_center_tnr_luma_mode
|
||||
512, //snr_wdr_comp_scl
|
||||
335, //tnr_noise_min
|
||||
512, //tnr_bayer_str
|
||||
8, //tnr_md_thd_low
|
||||
16, //tnr_md_thd_high
|
||||
512, //tnr_wgt_min
|
||||
256, //tnr_min_ratio
|
||||
6, //tnr_mot_bld_thd_low
|
||||
12, //tnr_mot_bld_thd_high
|
||||
16, //tnr_edge_md_thd_low
|
||||
48, //tnr_edge_md_thd_high
|
||||
256, //tnr_flat_md_scl
|
||||
256, //tnr_edge_md_scl
|
||||
3, //tnr_md_mode
|
||||
128, //tnr_luma_md_thd_low
|
||||
256, //tnr_luma_md_thd_high
|
||||
512, //tnr_dark_md_scl
|
||||
256, //tnr_bright_md_scl
|
||||
{144,144,144}, //tnr_mot_scl
|
||||
32, //tnr_var_scl
|
||||
128, //tnr_mot_noise_luma_thd_low
|
||||
256, //tnr_mot_noise_luma_thd_high
|
||||
256, //tnr_mot_noise_dark_scl
|
||||
256, //tnr_mot_noise_bright_scl
|
||||
64, //tnr_mot_dpc_str
|
||||
{360,512,1280,1536}, //tnr_mot_convg_thd
|
||||
256, //tnr_mot_noise_scl
|
||||
256, //tnr_mot_noise_scl_high
|
||||
1, //tnr_dpc_en
|
||||
1, //tnr_dp_mode
|
||||
68, //tnr_dp_thd_rb
|
||||
105, //tnr_dp_thd_g
|
||||
128, //tnr_dp_luma_thd_low
|
||||
256, //tnr_dp_luma_thd_high
|
||||
256, //tnr_dp_thd_low_dark_scl
|
||||
256, //tnr_dp_thd_high_dark_scl
|
||||
{128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128}, //tnr_luma_ratio
|
||||
0, //tnr_wdr_comp_scl
|
||||
}, //manual_attr
|
||||
{
|
||||
{64,64}, //wdr_frame_str
|
||||
}, //wdr
|
||||
};
|
||||
|
||||
|
||||
// Piris attr
|
||||
static const xmedia_isp_piris_attr g_sc465sl_piris_attr = {
|
||||
0,
|
||||
1,
|
||||
94,
|
||||
62,
|
||||
// Step-F number mapping table. Must be from small to large. F1.0 is 1024 and F32.0 is 1
|
||||
{30, 35, 40, 45, 50, 56, 61, 67, 73, 79, 85, 92, 98, 105, 112, 120, 127, 135, 143, 150, 158,
|
||||
166, 174, 183, 191, 200, 208, 217, 225, 234, 243, 252, 261, 270, 279, 289, 298, 307, 316, 325, 335, 344,
|
||||
353, 362, 372, 381, 390, 399, 408, 417, 426, 435, 444, 453, 462, 470, 478, 486, 493, 500, 506, 512},
|
||||
XMEDIA_ISP_IRIS_F_NO_1_4,
|
||||
XMEDIA_ISP_IRIS_F_NO_5_6
|
||||
};
|
||||
|
||||
static const xmedia_isp_awb_ccm g_sc465sl_awb_ccm = {
|
||||
6,
|
||||
{
|
||||
{
|
||||
7200,
|
||||
{
|
||||
0x01E1, 0x80BF, 0x8022,
|
||||
0x8035, 0x01D9, 0x80A4,
|
||||
0x0014, 0x80D3, 0x01BF,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
6100,
|
||||
{
|
||||
0x01CF, 0x809A, 0x8035,
|
||||
0x8061, 0x0229, 0x80C8,
|
||||
0x0002, 0x80A7, 0x01A5,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
4935,
|
||||
{
|
||||
0x01E6, 0x80C0, 0x8026,
|
||||
0x804E, 0x0211, 0x80C3,
|
||||
0x0023, 0x8104, 0x01E1,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
3700,
|
||||
{
|
||||
0x0228, 0x80E8, 0x8040,
|
||||
0x8065, 0x01CB, 0x8066,
|
||||
0x001E, 0x80E2, 0x01C4,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
3100,
|
||||
{
|
||||
0x01BA, 0x8055, 0x8065,
|
||||
0x8088, 0x0205, 0x807D,
|
||||
0x0009, 0x80E3, 0x01DA,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
2600,
|
||||
{
|
||||
0x020A, 0x8080, 0x808A,
|
||||
0x805A, 0x01E9, 0x808F,
|
||||
0x0035, 0x81BD, 0x0288,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
1000,
|
||||
{
|
||||
0x0100, 0x0000, 0x0000,
|
||||
0x0000, 0x0100, 0x0000,
|
||||
0x0000, 0x0000, 0x0100
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
};
|
||||
|
||||
static const xmedia_isp_awb_agc_table g_sc465sl_awb_agc_table = {
|
||||
// bvalid
|
||||
1,
|
||||
|
||||
// saturation
|
||||
// 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768
|
||||
{ 120, 100, 100, 100, 100, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60 }
|
||||
};
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user