#ifndef HI257_H #define HI257_H // Scene Mode uint8_t hi257_scene_mode_auto[] = { 0x03,0x10, 0x41,0x00, 0x03,0x20, 0xb2,0x60, 0xff,0xff, }; uint8_t hi257_scene_mode_night[] = { 0x03,0x10, 0x41,0x15, 0x03,0x20, 0xb2,0x80, 0xff,0xff, }; // White Balance uint8_t hi257_wb_auto [] = { 0x03,0x22, 0x11,0x2e, 0x83,0x58, // RMAX 0x84,0x16, // RMIN 0x85,0x4f, // BMAX 0x86,0x1a, // BMIN 0xff,0xff, }; uint8_t hi257_wb_incandescent [] = { 0x03,0x22, 0x11,0x28, 0x80,0x2a, 0x82,0x3f, 0x83,0x35, 0x84,0x28, 0x85,0x45, 0x86,0x3b, 0xff,0xff, }; uint8_t hi257_wb_fluorescent [] = { 0x03,0x22, 0x11,0x28, 0x80,0x20, 0x82,0x4d, 0x83,0x25, 0x84,0x1b, 0x85,0x55, 0x86,0x48, 0xff,0xff, }; uint8_t hi257_wb_daylight [] = { 0x03,0x22, 0x11,0x28, 0x80,0x3d, 0x82,0x2e, 0x83,0x40, 0x84,0x33, 0x85,0x33, 0x86,0x28, 0xff,0xff, }; uint8_t hi257_wb_cloudy [] = { 0x03,0x22, 0x11,0x28, 0x80,0x50, 0x82,0x25, 0x83,0x55, 0x84,0x4b, 0x85,0x28, 0x86,0x20, 0xff,0xff, }; // Exposure uint8_t hi257_exposure_neg6[] = { 0x03,0x10, 0x40,0xa8, }; uint8_t hi257_exposure_neg3[] = { 0x03,0x10, 0x40,0x98, }; uint8_t hi257_exposure_zero[] = { 0x03,0x10, 0x40,0x80, }; uint8_t hi257_exposure_pos3[] = { 0x03,0x10, 0x40,0x08, }; uint8_t hi257_exposure_pos6[] = { 0x03,0x10, 0x40,0x28, }; // Resolution uint8_t hi257_1600_1200_rets[]={ 0x03, 0x00, 0x10, 0x00, 0x12, 0x04, 0x20, 0x00, 0x21, 0x0a, 0x22, 0x00, 0x23, 0x0a, 0x03, 0x18, 0x10, 0x00, 0xff, 0xff, }; uint8_t hi257_1280_720_regs[]={ }; uint8_t hi257_800_600_regs[]={ 0x03, 0x00, 0x10, 0x10, 0x12, 0x04, 0x03, 0x18, 0x10, 0x00, 0xff, 0xff, }; uint8_t hi257_640_480_regs[]={ 0x03, 0x00, 0x10, 0x10, 0x12, 0x04, 0x03, 0x18, 0x12, 0x20, 0x10, 0x07, 0x11, 0x00, 0x20, 0x05, 0x21, 0x00, 0x22, 0x03, 0x23, 0xc0, 0x24, 0x00, 0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x05, 0x29, 0x00, 0x2a, 0x03, 0x2b, 0xc0, 0x2c, 0x0a, 0x2d, 0x00, 0x2e, 0x0a, 0x2f, 0x00, 0x30, 0x44, 0xff, 0xff, }; uint8_t hi257_320_240_regs[]= { 0x01,0x01, //sleep on 0x01,0x03, //sleep off 0x01,0x01, //sleep on 0x03,0x00, //Dummy 750us 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x08,0x00, 0x09,0x77, // pad strength = max 0x0a,0x07, // pad strength = max 0x0e,0x03, //PLL On 0x0e,0x73, //PLLx2 0x03,0x00, //Dummy 750us 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, ///// PAGE 20 ///// 0x03,0x20, //page 20 0x10,0x1c, //AE off 50hz ///// PAGE 22 ///// 0x03,0x22, //page 22 0x10,0x69, //AWB off ///// Initial Start ///// ///// PAGE 0 Start ///// 0x03,0x00, //page 0 0x10,0x91, 0x11,0x90, //Windowing On + 1Frame Skip 0x12,0x04, //Rinsing edge 0x04 // Falling edge 0x00 0x14,0x05, 0x20,0x00, //Row H 0x21,0x02, //Row L 0x22,0x00, //Col H 0x23,0x04, //Col L 0x24,0x04, //Window height_H //= 1200 0x25,0xb0, //Window height_L // 0x26,0x06, //Window width_H //= 1600 0x27,0x40, //Window wight_L 0x40,0x01, //Hblank_360 0x41,0x78, 0x42,0x00, //Vblank 0x43,0x14, //Flick Stop 0x50,0x00, //Test Pattern ///// BLC ///// 0x80,0x2e, 0x81,0x7e, 0x82,0x90, 0x83,0x00, 0x84,0xcc, //20130604 0x0c->0xcc 0x85,0x00, 0x86,0x00, 0x87,0x0f, 0x88,0x34, 0x8a,0x0b, 0x8e,0x80, //Pga Blc Hold 0x90,0x0c, //BLC_TIME_TH_ON 0x91,0x0c, //BLC_TIME_TH_OFF 0x92,0x58, //BLC_AG_TH_ON 0x93,0x50, //BLC_AG_TH_OFF 0x96,0xdc, //BLC Outdoor Th On 0x97,0xfe, //BLC Outdoor Th Off 0x98,0x38, //OutDoor BLC 0x99,0x43, //R,Gr,B,Gb Offset //Dark BLC 0xa0,0x02, //R,Gr,B,Gb Offset //Normal BLC 0xa8,0x43, //R,Gr,B,Gb Offset ///// PAGE 0 END ///// ///// PAGE 2 START ///// 0x03,0x02, 0x10,0x00, 0x13,0x00, 0x14,0x00, 0x18,0xcc, 0x19,0x01, // pmos switch on (for cfpn) 0x1A,0x39, //20130604 0x09->0xcc 0x1B,0x00, 0x1C,0x1a, // for ncp 0x1D,0x14, // for ncp 0x1E,0x30, // for ncp 0x1F,0x10, 0x20,0x77, 0x21,0xde, 0x22,0xa7, 0x23,0x30, 0x24,0x77, 0x25,0x10, 0x26,0x10, 0x27,0x3c, 0x2b,0x80, 0x2c,0x02, 0x2d,0x58, 0x2e,0x11,//20130604 0xde->0x11 0x2f,0x11,//20130604 0xa7->0x11 0x30,0x00, 0x31,0x99, 0x32,0x00, 0x33,0x00, 0x34,0x22, 0x36,0x75, 0x38,0x88, 0x39,0x88, 0x3d,0x03, 0x3f,0x02, 0x49,0xc1,//20130604 0x87->0xd1 --> mode Change Issue modify -> 0xc1 0x4a,0x10, 0x50,0x21, 0x53,0xb1, 0x54,0x10, 0x55,0x1c, // for ncp 0x56,0x11, 0x58,0x3a,//20130604 add 0x59,0x38,//20130604 add 0x5d,0xa2, 0x5e,0x5a, 0x60,0x87, 0x61,0x98, 0x62,0x88, 0x63,0x96, 0x64,0x88, 0x65,0x96, 0x67,0x3f, 0x68,0x3f, 0x69,0x3f, 0x72,0x89, 0x73,0x95, 0x74,0x89, 0x75,0x95, 0x7C,0x84, 0x7D,0xaf, 0x80,0x01, 0x81,0x7a, 0x82,0x13, 0x83,0x24, 0x84,0x78, 0x85,0x7c, 0x92,0x44, 0x93,0x59, 0x94,0x78, 0x95,0x7c, 0xA0,0x02, 0xA1,0x74, 0xA4,0x74, 0xA5,0x02, 0xA8,0x85, 0xA9,0x8c, 0xAC,0x10, 0xAD,0x16, 0xB0,0x99, 0xB1,0xa3, 0xB4,0x9b, 0xB5,0xa2, 0xB8,0x9b, 0xB9,0x9f, 0xBC,0x9b, 0xBD,0x9f, 0xc4,0x29, 0xc5,0x40, 0xc6,0x5c, 0xc7,0x72, 0xc8,0x2a, 0xc9,0x3f, 0xcc,0x5d, 0xcd,0x71, 0xd0,0x10, 0xd1,0x14, 0xd2,0x20, 0xd3,0x00, 0xd4,0x0c, //DCDC_TIME_TH_ON 0xd5,0x0c, //DCDC_TIME_TH_OFF 0xd6,0x58, //DCDC_AG_TH_ON 0xd7,0x50, //DCDC_AG_TH_OFF 0xdc,0x00, 0xdd,0xa3, 0xde,0x00, 0xdf,0x84, 0xe0,0xa4, 0xe1,0xa4, 0xe2,0xa4, 0xe3,0xa4, 0xe4,0xa4, 0xe5,0x01, 0xe8,0x00, 0xe9,0x00, 0xea,0x77, 0xF0,0x00, 0xF1,0x00, 0xF2,0x00, ///// PAGE 2 END ///// ///// PAGE 10 START ///// 0x03,0x10, //page 10 0x10,0x03, //S2D enable _ YUYV Order o?? 0x11,0x03, 0x12,0xf0, 0x13,0x01, 0x20,0x00, 0x21,0x40, 0x22,0x0f, 0x24,0x20, 0x25,0x10, 0x26,0x01, 0x27,0x02, 0x28,0x11, 0x40,0x00, 0x41,0x00, //D-YOffset Th 0x42,0x04, //Cb Offset 0x43,0x04, //Cr Offset 0x44,0x80, 0x45,0x80, 0x46,0xf0, 0x48,0x80, 0x4a,0x80, 0x50,0xa0, //D-YOffset AG 0x60,0x0f, 0x61,0xc0, //Sat B 0x62,0xc0, //Sat R 0x63,0x58, //Auto-De Color 0x66,0x42, 0x67,0x22, 0x6a,0x7c, //White Protection Offset Dark/Indoor 0x74,0x0c, //White Protection Offset Outdoor 0x76,0x01, //White Protection Enable ///// PAGE 10 END ///// ///// PAGE 11 START ///// 0x03,0x11, //page 11 //LPF Auto Control 0x20,0x00, 0x21,0x00, 0x26,0x5a, // Double_AG 0x27,0x58, // Double_AG 0x28,0x0f, 0x29,0x10, 0x2b,0x30, 0x2c,0x32, //GBGR 0x70,0x2b, 0x74,0x30, 0x75,0x18, 0x76,0x30, 0x77,0xff, 0x78,0xa0, 0x79,0xff, //Dark GbGr Th 0x7a,0x30, 0x7b,0x20, 0x7c,0xf4, //Dark Dy Th B[7:4] ///// PAGE 11 END ///// ///// PAGE 12 START ///// 0x03,0x12, //page 11 //YC2D 0x10,0x03, //Y DPC Enable 0x11,0x08, // 0x12,0x10, //0x30 -> 0x10 0x20,0x53, //Y_lpf_enable 0x21,0x03, //C_lpf_enable_on 0x22,0xe6, //YC2D_CrCbY_Dy 0x23,0x14, //Outdoor Dy Th 0x24,0x20, //Indoor Dy Th // For reso Limit 0x20 0x25,0x30, //Dark Dy Th //Outdoor LPF Flat 0x30,0xff, //Y Hi Th 0x31,0x00, //Y Lo Th 0x32,0xf0, //Std Hi Th //Reso Improve Th Low //50 0x33,0x00, //Std Lo Th 0x34,0x00, //Median ratio //Indoor LPF Flat 0x35,0xff, //Y Hi Th 0x36,0x00, //Y Lo Th 0x37,0xff, //Std Hi Th //Reso Improve Th Low //50 0x38,0x00, //Std Lo Th 0x39,0x00, //Median ratio //Dark LPF Flat 0x3a,0xff, //Y Hi Th 0x3b,0x00, //Y Lo Th 0x3c,0x93, //Std Hi Th //Reso Improve Th Low //50 0x3d,0x00, //Std Lo Th 0x3e,0x00, //Median ratio //Outdoor Cindition 0x46,0xa0, //Out Lum Hi 0x47,0x40, //Out Lum Lo //Indoor Cindition 0x4c,0xb0, //Indoor Lum Hi 0x4d,0x40, //Indoor Lum Lo //Dark Cindition 0x52,0xb0, //Dark Lum Hi 0x53,0x50, //Dark Lum Lo //C-Filter 0x70,0x10, //Outdoor(2:1) AWM Th Horizontal 0x71,0x0a, //Outdoor(2:1) Diff Th Vertical 0x72,0x10, //Indoor,Dark1 AWM Th Horizontal 0x73,0x0a, //Indoor,Dark1 Diff Th Vertical 0x74,0x18, //Dark(2:3) AWM Th Horizontal 0x75,0x0f, //Dark(2:3) Diff Th Vertical //DPC 0x90,0x7d, 0x91,0x34, 0x99,0x28, 0x9c,0x14, 0x9d,0x15, 0x9e,0x28, 0x9f,0x28, 0xb0,0x0e, //Zipper noise Detault change (0x75->0x0e) 0xb8,0x44, 0xb9,0x15, ///// PAGE 12 END ///// ///// PAGE 13 START ///// 0x03,0x13, //page 13 0x80,0xfd, //Sharp2D enable _ YUYV Order o?? 0x81,0x07, //Sharp2D Clip/Limit 0x82,0x73, //Sharp2D Filter 0x83,0x00, //Sharp2D Low Clip 0x85,0x00, 0x92,0x33, //Sharp2D Slop n/p 0x93,0x30, //Sharp2D LClip 0x94,0x02, //Sharp2D HiClip1 Th 0x95,0xf0, //Sharp2D HiClip2 Th 0x96,0x1e, //Sharp2D HiClip2 Resolution 0x97,0x40, 0x98,0x80, 0x99,0x40, //Sharp Lclp 0xa2,0x04, //Outdoor Lclip_N 0xa3,0x05, //Outdoor Lclip_P 0xa4,0x06, //Indoor Lclip_N 0x03 For reso Limit 0x0e 0xa5,0x07, //Indoor Lclip_P 0x0f For reso Limit 0x0f 0xa6,0x80, //Dark Lclip_N 0xa7,0x80, //Dark Lclip_P //Outdoor Slope 0xb6,0x28, //Lum negative Hi 0xb7,0x20, //Lum negative middle 0xb8,0x24, //Lum negative Low 0xb9,0x28, //Lum postive Hi 0xba,0x20, //Lum postive middle 0xbb,0x24, //Lum postive Low //Indoor Slope 0xbc,0x20, //Lum negative Hi 0xbd,0x20, //Lum negative middle 0xbe,0x20, //Lum negative Low 0xbf,0x20, //Lum postive Hi 0xc0,0x20, //Lum postive middle 0xc1,0x20, //Lum postive Low //Dark Slope 0xc2,0x14, //Lum negative Hi 0xc3,0x24, //Lum negative middle 0xc4,0x1d, //Lum negative Low 0xc5,0x14, //Lum postive Hi 0xc6,0x24, //Lum postive middle 0xc7,0x1d, //Lum postive Low ///// PAGE 13 END ///// ///// PAGE 14 START ///// 0x03,0x14, //page 14 0x10,0x01, 0x20,0xA0,//X-Center 0x21,0x80,//Y-Center 0x22,0x12, //LSC R 1b->15 20130125 0x23,0x0f, //LSC G 0x24,0x0f, //LSC B 0x25,0xf0, //LSC Off 0x26,0xf0, //LSC On ///// PAGE 14 END ///// /////// PAGE 15 START /////// 0x03,0x15, //page 15 0x10,0x21, 0x14,0x44, 0x15,0x34, 0x16,0x26, 0x17,0x2f, //CMC 0x30,0xdd, 0x31,0x68, 0x32,0x0b, 0x33,0x2c, 0x34,0xce, 0x35,0x22, 0x36,0x0e, 0x37,0x42, 0x38,0xd0, //CMC OFS 0x40,0x90, 0x41,0x16, 0x42,0x86, 0x43,0x01, 0x44,0x10, 0x45,0x91, 0x46,0x82, 0x47,0x9c, 0x48,0x1d, //CMC POFS 0x50,0x0d, 0x51,0x91, 0x52,0x04, 0x53,0x07, 0x54,0x19, 0x55,0xa0, 0x56,0x00, 0x57,0x98, 0x58,0x18, ///// PAGE 15 END ///// ///// PAGE 16 START ///// 0x03,0x16, //page 16 0x10,0x31, 0x18,0x5a,// Double_AG 5e->37 0x19,0x58,// Double_AG 5e->36 0x1a,0x0e, 0x1b,0x01, 0x1c,0xdc, 0x1d,0xfe, //Indoor 0x30,0x00, 0x31,0x06, 0x32,0x12, 0x33,0x29, 0x34,0x4d, 0x35,0x6c, 0x36,0x81, 0x37,0x94, 0x38,0xa4, 0x39,0xb3, 0x3a,0xc0, 0x3b,0xcb, 0x3c,0xd5, 0x3d,0xde, 0x3e,0xe6, 0x3f,0xee, 0x40,0xf5, 0x41,0xfc, 0x42,0xff, //Outdoor 0x50,0x00, 0x51,0x06, 0x52,0x12, 0x53,0x29, 0x54,0x45, 0x55,0x60, 0x56,0x7a, 0x57,0x8e, 0x58,0xa1, 0x59,0xac, 0x5a,0xb8, 0x5b,0xc5, 0x5c,0xd0, 0x5d,0xda, 0x5e,0xe3, 0x5f,0xeb, 0x60,0xf0, 0x61,0xf4, 0x62,0xf5, //Dark 0x70,0x00, 0x71,0x0e, 0x72,0x17, 0x73,0x26, 0x74,0x3f, 0x75,0x56, 0x76,0x6c, 0x77,0x81, 0x78,0x94, 0x79,0xa5, 0x7a,0xb3, 0x7b,0xc4, 0x7c,0xce, 0x7d,0xd9, 0x7e,0xe4, 0x7f,0xec, 0x80,0xf5, 0x81,0xfc, 0x82,0xff, ///// PAGE 16 END ///// ///// PAGE 17 START ///// 0x03,0x17, //page 17 0xc1,0x00, 0xc4,0x4b, 0xc5,0x3f, 0xc6,0x02, 0xc7,0x20, ///// PAGE 17 END ///// ///// PAGE 18 START ///// //page 18 0x03, 0x18, 0x12, 0x20, 0x10, 0x07, 0x11, 0x00, 0x20, 0x02, 0x21, 0x80, 0x22, 0x01, 0x23, 0xe0, 0x24, 0x00, 0x25, 0x00, 0x26, 0x00, 0x27, 0x00, 0x28, 0x02, 0x29, 0x80, 0x2a, 0x01, 0x2b, 0xe0, 0x2c, 0x14, 0x2d, 0x00, 0x2e, 0x14, 0x2f, 0x00, 0x30, 0x64, ///// PAGE 18 END ///// ///// PAGE 19 START ///// 0x03,0x19, //Page 0x18 0x10,0x7f, //mcmc_ctl1 MCMC Enable B:[0] 0x11,0x7f, //mcmc_ctl2 0x12,0x1b, //mcmc_delta1 0x13,0xac, //mcmc_center1 0x14,0x1e, //mcmc_delta2 0x15,0x6e, //mcmc_center2 0x16,0x0a, //mcmc_delta3 0x17,0xb8, //mcmc_center3 0x18,0x1e, //mcmc_delta4 0x19,0xe6, //mcmc_center4 0x1a,0x9e, //mcmc_delta5 0x1b,0x22, //mcmc_center5 0x1c,0x9e, //mcmc_delta6 0x1d,0x5e, //mcmc_center6 0x1e,0x70,//mcmc_sat_gain1 0x1f,0x37, //mcmc_sat_gain2 0x20,0x21, //mcmc_sat_gain3 0x21,0x43, //mcmc_sat_gain4 0x22,0x2f, //mcmc_sat_gain5 0x23,0x37, //mcmc_sat_gain6 0x24,0x00, //mcmc_hue_angle1 0x25,0x07, //mcmc_hue_angle2 0x26,0x09, //mcmc_hue_angle3 0x27,0x04, //mcmc_hue_angle4 0x28,0x00, //mcmc_hue_angle5 0x29,0x8c, //mcmc_hue_angle6 0x53,0x10, //mcmc_ctl3 0x6c,0xff, //mcmc_lum_ctl1 sat hue offset 0x6d,0x3f, //mcmc_lum_ctl2 gain 0x6e,0x00, //mcmc_lum_ctl3 hue 0x6f,0x00, //mcmc_lum_ctl4 rgb offset 0x70,0x00, //mcmc_lum_ctl5 rgb scale 0x71,0x3f, //mcmc_lum_gain_wgt_th1 R1 magenta 0x72,0x3f, //mcmc_lum_gain_wgt_th2 R1 0x73,0x3f, //mcmc_lum_gain_wgt_th3 R1 0x74,0x3f, //mcmc_lum_gain_wgt_th4 R1 0x75,0x30, //mcmc_rg1_lum_sp1 R1 0x76,0x50, //mcmc_rg1_lum_sp2 R1 0x77,0x80, //mcmc_rg1_lum_sp3 R1 0x78,0xb0, //mcmc_rg1_lum_sp4 R1 0x79,0x3f, //mcmc_lum_gain_wgt_th1 R2 bright green 0x7a,0x3f, //mcmc_lum_gain_wgt_th2 R2 0x7b,0x3f, //mcmc_lum_gain_wgt_th3 R2 0x7c,0x3f, //mcmc_lum_gain_wgt_th4 R2 0x7d,0x28, //mcmc_rg2_lum_sp1 R2 0x7e,0x50, //mcmc_rg2_lum_sp2 R2 0x7f,0x80, //mcmc_rg2_lum_sp3 R2 0x80,0xb0, //mcmc_rg2_lum_sp4 R2 0x81,0x28, //mcmc_lum_gain_wgt_th1 R3 dark green 0x82,0x3f, //mcmc_lum_gain_wgt_th2 R3 0x83,0x3f, //mcmc_lum_gain_wgt_th3 R3 0x84,0x3f, //mcmc_lum_gain_wgt_th4 R3 0x85,0x28, //mcmc_rg3_lum_sp1 R3 0x86,0x50, //mcmc_rg3_lum_sp2 R3 0x87,0x80, //mcmc_rg3_lum_sp3 R3 0x88,0xb0, //mcmc_rg3_lum_sp4 R3 0x89,0x1a, //mcmc_lum_gain_wgt_th1 R4 skin 0x8a,0x28, //mcmc_lum_gain_wgt_th2 R4 0x8b,0x3f, //mcmc_lum_gain_wgt_th3 R4 0x8c,0x3f, //mcmc_lum_gain_wgt_th4 R4 0x8d,0x10, //mcmc_rg3_lum_sp1 R4 0x8e,0x30, //mcmc_rg3_lum_sp2 R4 0x8f,0x60, //mcmc_rg3_lum_sp3 R4 0x90,0x90, //mcmc_rg3_lum_sp4 R4 0x91,0x1a, //mcmc_rg5_gain_wgt_th1 R5 cyan 0x92,0x28, //mcmc_rg5_gain_wgt_th2 R5 0x93,0x3f, //mcmc_rg5_gain_wgt_th3 R5 0x94,0x3f, //mcmc_rg5_gain_wgt_th4 R5 0x95,0x28, //mcmc_rg5_lum_sp1 R5 0x96,0x50, //mcmc_rg5_lum_sp2 R5 0x97,0x80, //mcmc_rg5_lum_sp3 R5 0x98,0xb0, //mcmc_rg5_lum_sp4 R5 0x99,0x1a, //mcmc_rg6_gain_wgt_th1 R6 blue 0x9a,0x28, //mcmc_rg6_gain_wgt_th2 R6 0x9b,0x3f, //mcmc_rg6_gain_wgt_th3 R6 0x9c,0x3f, //mcmc_rg6_gain_wgt_th4 R6 0x9d,0x28, //mcmc_rg6_lum_sp1 R6 0x9e,0x50, //mcmc_rg6_lum_sp2 R6 0x9f,0x80, //mcmc_rg6_lum_sp3 R6 0xa0,0xb0, //mcmc_rg6_lum_sp4 R6 0xa2,0x00, 0xe5,0x80, //add 20120709 Bit[7] On MCMC --> YC2D_LPF /////// PAGE 20 START /////// 0x03,0x20, 0x10,0x1c, 0x11,0x14, 0x18,0x30, 0x20,0x25, //8x8 Ae weight 0~7 Outdoor / Weight Outdoor On B[5] 0x21,0x30, 0x22,0x10, 0x23,0x00, 0x28,0xe7, 0x29,0x0d, 0x2a,0xff, 0x2b,0x04, //Adaptive Off,1/100 Flicker 0x2c,0x83, //AE After CI 0x2d,0x03, 0x2e,0x13, 0x2f,0x0b, 0x30,0x78, 0x31,0xd7, 0x32,0x10, 0x33,0x2e, 0x34,0x20, 0x35,0xd4, 0x36,0xfe, 0x37,0x32, 0x38,0x04, 0x39,0x22, 0x3a,0xde, 0x3b,0x22, 0x3c,0xde, 0x3d,0xe1, 0x50,0x45, 0x51,0x88, 0x56,0x1f, // for tracking 0x57,0xa6, // for tracking 0x58,0x1a, // for tracking 0x59,0x7a, // for tracking 0x5a,0x04, 0x5b,0x04, 0x5e,0xc7, 0x5f,0x95, 0x62,0x10, 0x63,0xc0, 0x64,0x10, 0x65,0x8a, 0x66,0x58, 0x67,0x58, 0x70,0x54, //6c 0x71,0x80, //81(+4),89(-4) 0x76,0x32, 0x77,0xb1, 0x78,0x22, //24 0x79,0x32, // Y Target 70 => 25,72 => 26 // 0x7a,0x23, //23 0x7b,0x22, //22 0x7d,0x23, 0x83,0x02, //EXP Normal 33.33 fps 0x84,0xbf, 0x85,0x20, 0x86,0x01, //EXPMin 12000.00 fps 0x87,0xf4, 0x88,0x0b, //EXP Max(120Hz) 8.00 fps 0x89,0x71, 0x8a,0xb0, 0xa5,0x0b, //EXP Max(100Hz) 7.69 fps 0xa6,0xe6, 0xa7,0xe0, 0x8B,0xea, //EXP100 0x8C,0x60, 0x8D,0xc3, //EXP120 0x8E,0x50, 0x9c,0x0f, //EXP Limit 1500.00 fps 0x9d,0xa0, 0x9e,0x01, //EXP Unit 0x9f,0xf4, 0xa3,0x00, 0xa4,0xfd, //Exp 12000 0xb0,0x15, 0xb1,0x14, 0xb2,0x60, 0xb3,0x1a, 0xb4,0x1c, 0xb5,0x48, 0xb6,0x32, 0xb7,0x2b, 0xb8,0x27, 0xb9,0x25, 0xba,0x23, 0xbb,0x22, 0xbc,0x22, 0xbd,0x21, 0xc0,0x10, 0xc1,0x40, 0xc2,0x40, 0xc3,0x40, 0xc4,0x06, 0xc8,0x80, 0xc9,0x80, ///// PAGE 20 END ///// ///// PAGE 21 START ///// 0x03,0x21, //page 21 //Indoor Weight 0x20,0x11, 0x21,0x11, 0x22,0x11, 0x23,0x11, 0x24,0x14, 0x25,0x44, 0x26,0x44, 0x27,0x41, 0x28,0x14, 0x29,0x44, 0x2a,0x44, 0x2b,0x41, 0x2c,0x14, 0x2d,0x47, 0x2e,0x74, 0x2f,0x41, 0x30,0x14, 0x31,0x47, 0x32,0x74, 0x33,0x41, 0x34,0x14, 0x35,0x44, 0x36,0x44, 0x37,0x41, 0x38,0x14, 0x39,0x44, 0x3a,0x44, 0x3b,0x41, 0x3c,0x11, 0x3d,0x11, 0x3e,0x11, 0x3f,0x11, //Outdoor Weight 0x40,0x11, 0x41,0x11, 0x42,0x11, 0x43,0x11, 0x44,0x14, 0x45,0x44, 0x46,0x44, 0x47,0x41, 0x48,0x14, 0x49,0x44, 0x4a,0x44, 0x4b,0x41, 0x4c,0x14, 0x4d,0x47, 0x4e,0x74, 0x4f,0x41, 0x50,0x14, 0x51,0x47, 0x52,0x74, 0x53,0x41, 0x54,0x14, 0x55,0x44, 0x56,0x44, 0x57,0x41, 0x58,0x14, 0x59,0x44, 0x5a,0x44, 0x5b,0x41, 0x5c,0x11, 0x5d,0x11, 0x5e,0x11, 0x5f,0x11, ///// PAGE 22 START ///// 0x03,0x22, //page 22 0x10,0xfd, 0x11,0x2e, 0x19,0x00, //Low On // 0x20,0x30, //For AWB Speed 0x21,0x80, 0x22,0x00, 0x23,0x00, 0x24,0x01, 0x25,0x7e, //for Tracking setting 0x30,0x80, 0x31,0x80, 0x38,0x11, 0x39,0x34, 0x40,0xe4, //Stb Yth 0x41,0x33, //Stb cdiff 0x42,0x22, //Stb csum 0x43,0xf3, //Unstb Yth 0x44,0x55, //Unstb cdiff 0x45,0x33, //Unstb csum 0x46,0x00, 0x47,0xa2, 0x48,0x02, 0x49,0x0a, 0x60,0x04, 0x61,0xc4, 0x62,0x04, 0x63,0x92, 0x66,0x04, 0x67,0xc4, 0x68,0x04, 0x69,0x92, 0x80,0x38, 0x81,0x20, 0x82,0x38, 0x83,0x58, 0x84,0x16, 0x85,0x4f, 0x86,0x1a, 0x87,0x42, 0x88,0x30, 0x89,0x27, 0x8a,0x18, 0x8b,0x3d, 0x8c,0x32, 0x8d,0x24, 0x8e,0x1d, 0x8f,0x4d, //4e 0x90,0x46, //4d 0x91,0x40, //4c 0x92,0x3a, //4a 0x93,0x2f, //46 0x94,0x21, 0x95,0x19, 0x96,0x16, 0x97,0x13, 0x98,0x12, 0x99,0x11, 0x9a,0x10, 0x9b,0xbb, 0x9c,0xaa, 0x9d,0x48, 0x9e,0x38, 0x9f,0x30, 0xa0,0x70, 0xa1,0x54, 0xa2,0x6f, 0xa3,0xff, 0xa4,0x14, //1536fps 0xa5,0x2c, //698fps 0xa6,0xcf, //148fps 0xad,0x40, 0xae,0x4a, 0xaf,0x28, //Low temp Rgain 0xb0,0x26, //Low temp Rgain 0xb1,0x00, 0xb4,0xbf, //For Tracking AWB Weight 0xb8,0x91, //(0+,1-)High Cb ,(0+,1-)Low Cr 0xb9,0x00, /////// PAGE 22 END /////// /////// PAGE 20 /////// 0x03,0x20, 0x10,0x9c, //AE On 50hz /////// PAGE 22 /////// 0x03,0x22, 0x10,0xe9, //AWB On /////// PAGE 0 /////// 0x03,0x00, 0x0e,0x03, 0x0e,0x73, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x18, 0x12,0x20, 0x10,0x07, 0x11,0x00, 0x20,0x02, 0x21,0x80, 0x22,0x03, 0x23,0xc0, 0x24,0x00, 0x25,0x00, 0x26,0x00, 0x27,0x00, 0x28,0x02, 0x29,0x80, 0x2a,0x03, 0x2b,0xc0, 0x2c,0x0a, 0x2d,0x00, 0x2e,0x0a, 0x2f,0x00, 0x30,0x24, 0x03,0x00, 0x01,0x00, }; uint8_t hi257_default_regs_init[]={ 0x01,0x01, //sleep on 0x01,0x03, //sleep off 0x01,0x01, //sleep on 0x03,0x00, //Dummy 750us 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x08,0x00, 0x09,0x77, // pad strength = max 0x0a,0x07, // pad strength = max 0x0e,0x03, //PLL On 0x0e,0x73, //PLLx2 0x03,0x00, //Dummy 750us 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, ///// PAGE 20 ///// 0x03,0x20, //page 20 0x10,0x1c, //AE off 50hz ///// PAGE 22 ///// 0x03,0x22, //page 22 0x10,0x69, //AWB off ///// Initial Start ///// ///// PAGE 0 Start ///// 0x03,0x00, //page 0 0x10,0x90, 0x11,0x90, //Windowing On + 1Frame Skip 0x12,0x04, //Rinsing edge 0x04 // Falling edge 0x00 0x14,0x05, 0x20,0x00, //Row H 0x21,0x02, //Row L 0x22,0x00, //Col H 0x23,0x04, //Col L 0x24,0x04, //Window height_H //= 1200 0x25,0xb0, //Window height_L // 0x26,0x06, //Window width_H //= 1600 0x27,0x40, //Window wight_L 0x40,0x01, //Hblank_360 0x41,0x78, 0x42,0x00, //Vblank 0x43,0x14, //Flick Stop 0x50,0x00, //Test Pattern ///// BLC ///// 0x80,0x2e, 0x81,0x7e, 0x82,0x90, 0x83,0x00, 0x84,0xcc, //20130604 0x0c->0xcc 0x85,0x00, 0x86,0x00, 0x87,0x0f, 0x88,0x34, 0x8a,0x0b, 0x8e,0x80, //Pga Blc Hold 0x90,0x0c, //BLC_TIME_TH_ON 0x91,0x0c, //BLC_TIME_TH_OFF 0x92,0x58, //BLC_AG_TH_ON 0x93,0x50, //BLC_AG_TH_OFF 0x96,0xdc, //BLC Outdoor Th On 0x97,0xfe, //BLC Outdoor Th Off 0x98,0x38, //OutDoor BLC 0x99,0x43, //R,Gr,B,Gb Offset //Dark BLC 0xa0,0x02, //R,Gr,B,Gb Offset //Normal BLC 0xa8,0x43, //R,Gr,B,Gb Offset ///// PAGE 0 END ///// ///// PAGE 2 START ///// 0x03,0x02, 0x10,0x00, 0x13,0x00, 0x14,0x00, 0x18,0xcc, 0x19,0x01, // pmos switch on (for cfpn) 0x1A,0x39, //20130604 0x09->0xcc 0x1B,0x00, 0x1C,0x1a, // for ncp 0x1D,0x14, // for ncp 0x1E,0x30, // for ncp 0x1F,0x10, 0x20,0x77, 0x21,0xde, 0x22,0xa7, 0x23,0x30, 0x24,0x77, 0x25,0x10, 0x26,0x10, 0x27,0x3c, 0x2b,0x80, 0x2c,0x02, 0x2d,0x58, 0x2e,0x11,//20130604 0xde->0x11 0x2f,0x11,//20130604 0xa7->0x11 0x30,0x00, 0x31,0x99, 0x32,0x00, 0x33,0x00, 0x34,0x22, 0x36,0x75, 0x38,0x88, 0x39,0x88, 0x3d,0x03, 0x3f,0x02, 0x49,0xc1,//20130604 0x87->0xd1 --> mode Change Issue modify -> 0xc1 0x4a,0x10, 0x50,0x21, 0x53,0xb1, 0x54,0x10, 0x55,0x1c, // for ncp 0x56,0x11, 0x58,0x3a,//20130604 add 0x59,0x38,//20130604 add 0x5d,0xa2, 0x5e,0x5a, 0x60,0x87, 0x61,0x98, 0x62,0x88, 0x63,0x96, 0x64,0x88, 0x65,0x96, 0x67,0x3f, 0x68,0x3f, 0x69,0x3f, 0x72,0x89, 0x73,0x95, 0x74,0x89, 0x75,0x95, 0x7C,0x84, 0x7D,0xaf, 0x80,0x01, 0x81,0x7a, 0x82,0x13, 0x83,0x24, 0x84,0x78, 0x85,0x7c, 0x92,0x44, 0x93,0x59, 0x94,0x78, 0x95,0x7c, 0xA0,0x02, 0xA1,0x74, 0xA4,0x74, 0xA5,0x02, 0xA8,0x85, 0xA9,0x8c, 0xAC,0x10, 0xAD,0x16, 0xB0,0x99, 0xB1,0xa3, 0xB4,0x9b, 0xB5,0xa2, 0xB8,0x9b, 0xB9,0x9f, 0xBC,0x9b, 0xBD,0x9f, 0xc4,0x29, 0xc5,0x40, 0xc6,0x5c, 0xc7,0x72, 0xc8,0x2a, 0xc9,0x3f, 0xcc,0x5d, 0xcd,0x71, 0xd0,0x10, 0xd1,0x14, 0xd2,0x20, 0xd3,0x00, 0xd4,0x0c, //DCDC_TIME_TH_ON 0xd5,0x0c, //DCDC_TIME_TH_OFF 0xd6,0x58, //DCDC_AG_TH_ON 0xd7,0x50, //DCDC_AG_TH_OFF 0xdc,0x00, 0xdd,0xa3, 0xde,0x00, 0xdf,0x84, 0xe0,0xa4, 0xe1,0xa4, 0xe2,0xa4, 0xe3,0xa4, 0xe4,0xa4, 0xe5,0x01, 0xe8,0x00, 0xe9,0x00, 0xea,0x77, 0xF0,0x00, 0xF1,0x00, 0xF2,0x00, ///// PAGE 2 END ///// ///// PAGE 10 START ///// 0x03,0x10, //page 10 0x10,0x03, //S2D enable _ YUYV Order o?? 0x11,0x03, 0x12,0xf0, 0x13,0x01, 0x20,0x00, 0x21,0x40, 0x22,0x0f, 0x24,0x20, 0x25,0x10, 0x26,0x01, 0x27,0x02, 0x28,0x11, 0x40,0x00, 0x41,0x00, //D-YOffset Th 0x42,0x04, //Cb Offset 0x43,0x04, //Cr Offset 0x44,0x80, 0x45,0x80, 0x46,0xf0, 0x48,0x80, 0x4a,0x80, 0x50,0xa0, //D-YOffset AG 0x60,0x0f, 0x61,0xc0, //Sat B 0x62,0xc0, //Sat R 0x63,0x58, //Auto-De Color 0x66,0x42, 0x67,0x22, 0x6a,0x7c, //White Protection Offset Dark/Indoor 0x74,0x0c, //White Protection Offset Outdoor 0x76,0x01, //White Protection Enable ///// PAGE 10 END ///// ///// PAGE 11 START ///// 0x03,0x11, //page 11 //LPF Auto Control 0x20,0x00, 0x21,0x00, 0x26,0x5a, // Double_AG 0x27,0x58, // Double_AG 0x28,0x0f, 0x29,0x10, 0x2b,0x30, 0x2c,0x32, //GBGR 0x70,0x2b, 0x74,0x30, 0x75,0x18, 0x76,0x30, 0x77,0xff, 0x78,0xa0, 0x79,0xff, //Dark GbGr Th 0x7a,0x30, 0x7b,0x20, 0x7c,0xf4, //Dark Dy Th B[7:4] ///// PAGE 11 END ///// ///// PAGE 12 START ///// 0x03,0x12, //page 11 //YC2D 0x10,0x03, //Y DPC Enable 0x11,0x08, // 0x12,0x10, //0x30 -> 0x10 0x20,0x53, //Y_lpf_enable 0x21,0x03, //C_lpf_enable_on 0x22,0xe6, //YC2D_CrCbY_Dy 0x23,0x14, //Outdoor Dy Th 0x24,0x20, //Indoor Dy Th // For reso Limit 0x20 0x25,0x30, //Dark Dy Th //Outdoor LPF Flat 0x30,0xff, //Y Hi Th 0x31,0x00, //Y Lo Th 0x32,0xf0, //Std Hi Th //Reso Improve Th Low //50 0x33,0x00, //Std Lo Th 0x34,0x00, //Median ratio //Indoor LPF Flat 0x35,0xff, //Y Hi Th 0x36,0x00, //Y Lo Th 0x37,0xff, //Std Hi Th //Reso Improve Th Low //50 0x38,0x00, //Std Lo Th 0x39,0x00, //Median ratio //Dark LPF Flat 0x3a,0xff, //Y Hi Th 0x3b,0x00, //Y Lo Th 0x3c,0x93, //Std Hi Th //Reso Improve Th Low //50 0x3d,0x00, //Std Lo Th 0x3e,0x00, //Median ratio //Outdoor Cindition 0x46,0xa0, //Out Lum Hi 0x47,0x40, //Out Lum Lo //Indoor Cindition 0x4c,0xb0, //Indoor Lum Hi 0x4d,0x40, //Indoor Lum Lo //Dark Cindition 0x52,0xb0, //Dark Lum Hi 0x53,0x50, //Dark Lum Lo //C-Filter 0x70,0x10, //Outdoor(2:1) AWM Th Horizontal 0x71,0x0a, //Outdoor(2:1) Diff Th Vertical 0x72,0x10, //Indoor,Dark1 AWM Th Horizontal 0x73,0x0a, //Indoor,Dark1 Diff Th Vertical 0x74,0x18, //Dark(2:3) AWM Th Horizontal 0x75,0x0f, //Dark(2:3) Diff Th Vertical //DPC 0x90,0x7d, 0x91,0x34, 0x99,0x28, 0x9c,0x14, 0x9d,0x15, 0x9e,0x28, 0x9f,0x28, 0xb0,0x0e, //Zipper noise Detault change (0x75->0x0e) 0xb8,0x44, 0xb9,0x15, ///// PAGE 12 END ///// ///// PAGE 13 START ///// 0x03,0x13, //page 13 0x80,0xfd, //Sharp2D enable _ YUYV Order o?? 0x81,0x07, //Sharp2D Clip/Limit 0x82,0x73, //Sharp2D Filter 0x83,0x00, //Sharp2D Low Clip 0x85,0x00, 0x92,0x33, //Sharp2D Slop n/p 0x93,0x30, //Sharp2D LClip 0x94,0x02, //Sharp2D HiClip1 Th 0x95,0xf0, //Sharp2D HiClip2 Th 0x96,0x1e, //Sharp2D HiClip2 Resolution 0x97,0x40, 0x98,0x80, 0x99,0x40, //Sharp Lclp 0xa2,0x04, //Outdoor Lclip_N 0xa3,0x05, //Outdoor Lclip_P 0xa4,0x06, //Indoor Lclip_N 0x03 For reso Limit 0x0e 0xa5,0x07, //Indoor Lclip_P 0x0f For reso Limit 0x0f 0xa6,0x80, //Dark Lclip_N 0xa7,0x80, //Dark Lclip_P //Outdoor Slope 0xb6,0x28, //Lum negative Hi 0xb7,0x20, //Lum negative middle 0xb8,0x24, //Lum negative Low 0xb9,0x28, //Lum postive Hi 0xba,0x20, //Lum postive middle 0xbb,0x24, //Lum postive Low //Indoor Slope 0xbc,0x20, //Lum negative Hi 0xbd,0x20, //Lum negative middle 0xbe,0x20, //Lum negative Low 0xbf,0x20, //Lum postive Hi 0xc0,0x20, //Lum postive middle 0xc1,0x20, //Lum postive Low //Dark Slope 0xc2,0x14, //Lum negative Hi 0xc3,0x24, //Lum negative middle 0xc4,0x1d, //Lum negative Low 0xc5,0x14, //Lum postive Hi 0xc6,0x24, //Lum postive middle 0xc7,0x1d, //Lum postive Low ///// PAGE 13 END ///// ///// PAGE 14 START ///// 0x03,0x14, //page 14 0x10,0x01, 0x20,0xA0,//X-Center 0x21,0x80,//Y-Center 0x22,0x12, //LSC R 1b->15 20130125 0x23,0x0f, //LSC G 0x24,0x0f, //LSC B 0x25,0xf0, //LSC Off 0x26,0xf0, //LSC On ///// PAGE 14 END ///// /////// PAGE 15 START /////// 0x03,0x15, //page 15 0x10,0x21, 0x14,0x44, 0x15,0x34, 0x16,0x26, 0x17,0x2f, //CMC 0x30,0xdd, 0x31,0x68, 0x32,0x0b, 0x33,0x2c, 0x34,0xce, 0x35,0x22, 0x36,0x0e, 0x37,0x42, 0x38,0xd0, //CMC OFS 0x40,0x90, 0x41,0x16, 0x42,0x86, 0x43,0x01, 0x44,0x10, 0x45,0x91, 0x46,0x82, 0x47,0x9c, 0x48,0x1d, //CMC POFS 0x50,0x0d, 0x51,0x91, 0x52,0x04, 0x53,0x07, 0x54,0x19, 0x55,0xa0, 0x56,0x00, 0x57,0x98, 0x58,0x18, ///// PAGE 15 END ///// ///// PAGE 16 START ///// 0x03,0x16, //page 16 0x10,0x31, 0x18,0x5a,// Double_AG 5e->37 0x19,0x58,// Double_AG 5e->36 0x1a,0x0e, 0x1b,0x01, 0x1c,0xdc, 0x1d,0xfe, //Indoor 0x30,0x00, 0x31,0x06, 0x32,0x12, 0x33,0x29, 0x34,0x4d, 0x35,0x6c, 0x36,0x81, 0x37,0x94, 0x38,0xa4, 0x39,0xb3, 0x3a,0xc0, 0x3b,0xcb, 0x3c,0xd5, 0x3d,0xde, 0x3e,0xe6, 0x3f,0xee, 0x40,0xf5, 0x41,0xfc, 0x42,0xff, //Outdoor 0x50,0x00, 0x51,0x06, 0x52,0x12, 0x53,0x29, 0x54,0x45, 0x55,0x60, 0x56,0x7a, 0x57,0x8e, 0x58,0xa1, 0x59,0xac, 0x5a,0xb8, 0x5b,0xc5, 0x5c,0xd0, 0x5d,0xda, 0x5e,0xe3, 0x5f,0xeb, 0x60,0xf0, 0x61,0xf4, 0x62,0xf5, //Dark 0x70,0x00, 0x71,0x0e, 0x72,0x17, 0x73,0x26, 0x74,0x3f, 0x75,0x56, 0x76,0x6c, 0x77,0x81, 0x78,0x94, 0x79,0xa5, 0x7a,0xb3, 0x7b,0xc4, 0x7c,0xce, 0x7d,0xd9, 0x7e,0xe4, 0x7f,0xec, 0x80,0xf5, 0x81,0xfc, 0x82,0xff, ///// PAGE 16 END ///// ///// PAGE 17 START ///// 0x03,0x17, //page 17 0xc1,0x00, 0xc4,0x4b, 0xc5,0x3f, 0xc6,0x02, 0xc7,0x20, ///// PAGE 17 END ///// ///// PAGE 18 START ///// 0x03,0x18, //page 18 0x14,0x00, //Cubic Off ///// PAGE 18 END ///// ///// PAGE 19 START ///// 0x03,0x19, //Page 0x18 0x10,0x7f, //mcmc_ctl1 MCMC Enable B:[0] 0x11,0x7f, //mcmc_ctl2 0x12,0x1b, //mcmc_delta1 0x13,0xac, //mcmc_center1 0x14,0x1e, //mcmc_delta2 0x15,0x6e, //mcmc_center2 0x16,0x0a, //mcmc_delta3 0x17,0xb8, //mcmc_center3 0x18,0x1e, //mcmc_delta4 0x19,0xe6, //mcmc_center4 0x1a,0x9e, //mcmc_delta5 0x1b,0x22, //mcmc_center5 0x1c,0x9e, //mcmc_delta6 0x1d,0x5e, //mcmc_center6 0x1e,0x70,//mcmc_sat_gain1 0x1f,0x37, //mcmc_sat_gain2 0x20,0x21, //mcmc_sat_gain3 0x21,0x43, //mcmc_sat_gain4 0x22,0x2f, //mcmc_sat_gain5 0x23,0x37, //mcmc_sat_gain6 0x24,0x00, //mcmc_hue_angle1 0x25,0x07, //mcmc_hue_angle2 0x26,0x09, //mcmc_hue_angle3 0x27,0x04, //mcmc_hue_angle4 0x28,0x00, //mcmc_hue_angle5 0x29,0x8c, //mcmc_hue_angle6 0x53,0x10, //mcmc_ctl3 0x6c,0xff, //mcmc_lum_ctl1 sat hue offset 0x6d,0x3f, //mcmc_lum_ctl2 gain 0x6e,0x00, //mcmc_lum_ctl3 hue 0x6f,0x00, //mcmc_lum_ctl4 rgb offset 0x70,0x00, //mcmc_lum_ctl5 rgb scale 0x71,0x3f, //mcmc_lum_gain_wgt_th1 R1 magenta 0x72,0x3f, //mcmc_lum_gain_wgt_th2 R1 0x73,0x3f, //mcmc_lum_gain_wgt_th3 R1 0x74,0x3f, //mcmc_lum_gain_wgt_th4 R1 0x75,0x30, //mcmc_rg1_lum_sp1 R1 0x76,0x50, //mcmc_rg1_lum_sp2 R1 0x77,0x80, //mcmc_rg1_lum_sp3 R1 0x78,0xb0, //mcmc_rg1_lum_sp4 R1 0x79,0x3f, //mcmc_lum_gain_wgt_th1 R2 bright green 0x7a,0x3f, //mcmc_lum_gain_wgt_th2 R2 0x7b,0x3f, //mcmc_lum_gain_wgt_th3 R2 0x7c,0x3f, //mcmc_lum_gain_wgt_th4 R2 0x7d,0x28, //mcmc_rg2_lum_sp1 R2 0x7e,0x50, //mcmc_rg2_lum_sp2 R2 0x7f,0x80, //mcmc_rg2_lum_sp3 R2 0x80,0xb0, //mcmc_rg2_lum_sp4 R2 0x81,0x28, //mcmc_lum_gain_wgt_th1 R3 dark green 0x82,0x3f, //mcmc_lum_gain_wgt_th2 R3 0x83,0x3f, //mcmc_lum_gain_wgt_th3 R3 0x84,0x3f, //mcmc_lum_gain_wgt_th4 R3 0x85,0x28, //mcmc_rg3_lum_sp1 R3 0x86,0x50, //mcmc_rg3_lum_sp2 R3 0x87,0x80, //mcmc_rg3_lum_sp3 R3 0x88,0xb0, //mcmc_rg3_lum_sp4 R3 0x89,0x1a, //mcmc_lum_gain_wgt_th1 R4 skin 0x8a,0x28, //mcmc_lum_gain_wgt_th2 R4 0x8b,0x3f, //mcmc_lum_gain_wgt_th3 R4 0x8c,0x3f, //mcmc_lum_gain_wgt_th4 R4 0x8d,0x10, //mcmc_rg3_lum_sp1 R4 0x8e,0x30, //mcmc_rg3_lum_sp2 R4 0x8f,0x60, //mcmc_rg3_lum_sp3 R4 0x90,0x90, //mcmc_rg3_lum_sp4 R4 0x91,0x1a, //mcmc_rg5_gain_wgt_th1 R5 cyan 0x92,0x28, //mcmc_rg5_gain_wgt_th2 R5 0x93,0x3f, //mcmc_rg5_gain_wgt_th3 R5 0x94,0x3f, //mcmc_rg5_gain_wgt_th4 R5 0x95,0x28, //mcmc_rg5_lum_sp1 R5 0x96,0x50, //mcmc_rg5_lum_sp2 R5 0x97,0x80, //mcmc_rg5_lum_sp3 R5 0x98,0xb0, //mcmc_rg5_lum_sp4 R5 0x99,0x1a, //mcmc_rg6_gain_wgt_th1 R6 blue 0x9a,0x28, //mcmc_rg6_gain_wgt_th2 R6 0x9b,0x3f, //mcmc_rg6_gain_wgt_th3 R6 0x9c,0x3f, //mcmc_rg6_gain_wgt_th4 R6 0x9d,0x28, //mcmc_rg6_lum_sp1 R6 0x9e,0x50, //mcmc_rg6_lum_sp2 R6 0x9f,0x80, //mcmc_rg6_lum_sp3 R6 0xa0,0xb0, //mcmc_rg6_lum_sp4 R6 0xa2,0x00, 0xe5,0x80, //add 20120709 Bit[7] On MCMC --> YC2D_LPF /////// PAGE 20 START /////// 0x03,0x20, 0x10,0x1c, 0x11,0x14, 0x18,0x30, 0x20,0x25, //8x8 Ae weight 0~7 Outdoor / Weight Outdoor On B[5] 0x21,0x30, 0x22,0x10, 0x23,0x00, 0x28,0xe7, 0x29,0x0d, 0x2a,0xff, 0x2b,0x04, //Adaptive Off,1/100 Flicker 0x2c,0x83, //AE After CI 0x2d,0x03, 0x2e,0x13, 0x2f,0x0b, 0x30,0x78, 0x31,0xd7, 0x32,0x10, 0x33,0x2e, 0x34,0x20, 0x35,0xd4, 0x36,0xfe, 0x37,0x32, 0x38,0x04, 0x39,0x22, 0x3a,0xde, 0x3b,0x22, 0x3c,0xde, 0x3d,0xe1, 0x50,0x45, 0x51,0x88, 0x56,0x1f, // for tracking 0x57,0xa6, // for tracking 0x58,0x1a, // for tracking 0x59,0x7a, // for tracking 0x5a,0x04, 0x5b,0x04, 0x5e,0xc7, 0x5f,0x95, 0x62,0x10, 0x63,0xc0, 0x64,0x10, 0x65,0x8a, 0x66,0x58, 0x67,0x58, 0x70,0x54, //6c 0x71,0x80, //81(+4),89(-4) 0x76,0x32, 0x77,0xb1, 0x78,0x22, //24 0x79,0x32, // Y Target 70 => 25,72 => 26 // 0x7a,0x23, //23 0x7b,0x22, //22 0x7d,0x23, 0x83,0x02, //EXP Normal 33.33 fps 0x84,0xbf, 0x85,0x20, 0x86,0x01, //EXPMin 12000.00 fps 0x87,0xf4, 0x88,0x0b, //EXP Max(120Hz) 8.00 fps 0x89,0x71, 0x8a,0xb0, 0xa5,0x0b, //EXP Max(100Hz) 7.69 fps 0xa6,0xe6, 0xa7,0xe0, 0x8B,0xea, //EXP100 0x8C,0x60, 0x8D,0xc3, //EXP120 0x8E,0x50, 0x9c,0x0f, //EXP Limit 1500.00 fps 0x9d,0xa0, 0x9e,0x01, //EXP Unit 0x9f,0xf4, 0xa3,0x00, 0xa4,0xfd, //Exp 12000 0xb0,0x15, 0xb1,0x14, 0xb2,0x60, 0xb3,0x1a, 0xb4,0x1c, 0xb5,0x48, 0xb6,0x32, 0xb7,0x2b, 0xb8,0x27, 0xb9,0x25, 0xba,0x23, 0xbb,0x22, 0xbc,0x22, 0xbd,0x21, 0xc0,0x10, 0xc1,0x40, 0xc2,0x40, 0xc3,0x40, 0xc4,0x06, 0xc8,0x80, 0xc9,0x80, ///// PAGE 20 END ///// ///// PAGE 21 START ///// 0x03,0x21, //page 21 //Indoor Weight 0x20,0x11, 0x21,0x11, 0x22,0x11, 0x23,0x11, 0x24,0x14, 0x25,0x44, 0x26,0x44, 0x27,0x41, 0x28,0x14, 0x29,0x44, 0x2a,0x44, 0x2b,0x41, 0x2c,0x14, 0x2d,0x47, 0x2e,0x74, 0x2f,0x41, 0x30,0x14, 0x31,0x47, 0x32,0x74, 0x33,0x41, 0x34,0x14, 0x35,0x44, 0x36,0x44, 0x37,0x41, 0x38,0x14, 0x39,0x44, 0x3a,0x44, 0x3b,0x41, 0x3c,0x11, 0x3d,0x11, 0x3e,0x11, 0x3f,0x11, //Outdoor Weight 0x40,0x11, 0x41,0x11, 0x42,0x11, 0x43,0x11, 0x44,0x14, 0x45,0x44, 0x46,0x44, 0x47,0x41, 0x48,0x14, 0x49,0x44, 0x4a,0x44, 0x4b,0x41, 0x4c,0x14, 0x4d,0x47, 0x4e,0x74, 0x4f,0x41, 0x50,0x14, 0x51,0x47, 0x52,0x74, 0x53,0x41, 0x54,0x14, 0x55,0x44, 0x56,0x44, 0x57,0x41, 0x58,0x14, 0x59,0x44, 0x5a,0x44, 0x5b,0x41, 0x5c,0x11, 0x5d,0x11, 0x5e,0x11, 0x5f,0x11, ///// PAGE 22 START ///// 0x03,0x22, //page 22 0x10,0xfd, 0x11,0x2e, 0x19,0x00, //Low On // 0x20,0x30, //For AWB Speed 0x21,0x80, 0x22,0x00, 0x23,0x00, 0x24,0x01, 0x25,0x7e, //for Tracking setting 0x30,0x80, 0x31,0x80, 0x38,0x11, 0x39,0x34, 0x40,0xe4, //Stb Yth 0x41,0x33, //Stb cdiff 0x42,0x22, //Stb csum 0x43,0xf3, //Unstb Yth 0x44,0x55, //Unstb cdiff 0x45,0x33, //Unstb csum 0x46,0x00, 0x47,0xa2, 0x48,0x02, 0x49,0x0a, 0x60,0x04, 0x61,0xc4, 0x62,0x04, 0x63,0x92, 0x66,0x04, 0x67,0xc4, 0x68,0x04, 0x69,0x92, 0x80,0x38, 0x81,0x20, 0x82,0x38, 0x83,0x58, 0x84,0x16, 0x85,0x4f, 0x86,0x1a, 0x87,0x42, 0x88,0x30, 0x89,0x27, 0x8a,0x18, 0x8b,0x3d, 0x8c,0x32, 0x8d,0x24, 0x8e,0x1d, 0x8f,0x4d, //4e 0x90,0x46, //4d 0x91,0x40, //4c 0x92,0x3a, //4a 0x93,0x2f, //46 0x94,0x21, 0x95,0x19, 0x96,0x16, 0x97,0x13, 0x98,0x12, 0x99,0x11, 0x9a,0x10, 0x9b,0xbb, 0x9c,0xaa, 0x9d,0x48, 0x9e,0x38, 0x9f,0x30, 0xa0,0x70, 0xa1,0x54, 0xa2,0x6f, 0xa3,0xff, 0xa4,0x14, //1536fps 0xa5,0x2c, //698fps 0xa6,0xcf, //148fps 0xad,0x40, 0xae,0x4a, 0xaf,0x28, //Low temp Rgain 0xb0,0x26, //Low temp Rgain 0xb1,0x00, 0xb4,0xbf, //For Tracking AWB Weight 0xb8,0x91, //(0+,1-)High Cb ,(0+,1-)Low Cr 0xb9,0x00, /////// PAGE 22 END /////// /////// PAGE 20 /////// 0x03,0x20, 0x10,0x9c, //AE On 50hz /////// PAGE 22 /////// 0x03,0x22, 0x10,0xe9, //AWB On /////// PAGE 0 /////// 0x03,0x00, 0x0e,0x03, 0x0e,0x73, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x00, 0x03,0x18, 0x12,0x20, 0x10,0x07, 0x11,0x00, 0x20,0x02, 0x21,0x80, 0x22,0x03, 0x23,0xc0, 0x24,0x00, 0x25,0x00, 0x26,0x00, 0x27,0x00, 0x28,0x02, 0x29,0x80, 0x2a,0x03, 0x2b,0xc0, 0x2c,0x0a, 0x2d,0x00, 0x2e,0x0a, 0x2f,0x00, 0x30,0x24, 0x03,0x00, 0x01,0x00, }; #endif