#ifndef BF3A03_H #define BF3A03_H // Scene Mode uint8_t bf3a03_scene_mode_auto[] = { 0x89, 0x6d, }; uint8_t bf3a03_scene_mode_night[] = { 0x89, 0x9d, }; // White Balance uint8_t bf3a03_wb_auto [] = { 0x13,0x07, 0x01, 0x12, 0x02, 0x22, }; uint8_t bf3a03_wb_incandescent [] = { 0x13,0x05, 0x01, 0x1f, 0x02, 0x20, }; uint8_t bf3a03_wb_fluorescent [] = { 0x13,0x05, 0x01, 0x1a, 0x02, 0x15, }; uint8_t bf3a03_wb_daylight [] = { 0x13,0x05, 0x01, 0x15, 0x02, 0x20, }; uint8_t bf3a03_wb_cloudy [] = { 0x13,0x05, 0x01, 0x10, 0x02, 0x2c, }; // Exposure uint8_t bf3a03_exposure_neg6[] = { 0x55, 0xb8, }; uint8_t bf3a03_exposure_neg3[] = { 0x55, 0x98, }; uint8_t bf3a03_exposure_zero[] = { 0x55, 0x00, }; uint8_t bf3a03_exposure_pos3[] = { 0x55, 0x18, }; uint8_t bf3a03_exposure_pos6[] = { 0x55, 0x38, }; // Resolution uint8_t bf3a03_320x240[]= { 0xda, 0x00, 0xdb, 0xa2, 0xdc, 0x00, 0xdd, 0x7a, 0xde, 0x00, 0x4a, 0x98, 0x0a, 0x21, 0x10, 0x21, 0x3d, 0x59, 0x6b, 0x02, 0x17, 0x00, 0x18, 0xa0, 0x19, 0x00, 0x1a, 0x78, 0x03, 0x00, 0x12, 0x10, }; uint8_t bf3a03_640x480[] = { 0xda, 0x00, 0xdb, 0xa2, 0xdc, 0x00, 0xdd, 0x7a, 0xde, 0x00, 0x4a, 0x98, 0x0a, 0x21, 0x10, 0x21, 0x3d, 0x59, 0x6b, 0x02, 0x17, 0x00, 0x18, 0xa0, 0x19, 0x00, 0x1a, 0x78, 0x03, 0x00, 0x12, 0x00, }; uint8_t bf3a03_default_regs_init[] = { //0x12,0x80, 0x09,0x55, 0x15,0x00, 0x1e,0x70,//HV mirror //Analog signals 0x06,0x78, 0x21,0x00, 0x3e,0x37, 0x29,0x2b, 0x27,0x98, 0x16,0x25, 0x20,0x00, //Clock 0x2f,0x42,//有绿色雪花点时,写为0x4e; 0x11,0x10,//分频[1:0] 0x1b,0x09,//倍频 PLL使能与0x2f[1]、0x1b[3] //数据输出格式 0x4a,0x98,//Sub、Win 0x12,0x00,//YUV、sub时序 0x3a,0x00,//YUV时序 //Manual 0x13,0x08,//手写bit[3]GLB GAIN0 0x01,0x14, 0x02,0x20, 0x8c,0x02, 0x8d,0x4c, 0x87,0x16,//GLB GAIN0 ///Auto 0x13,0x07, //Denoise 0x70,0x0f,//插值模块开关 0x3b,0x00,//去格子噪声 0x71,0x0c,//插值模块开关 0x73,0x27,//Denoise 0x75,0x88,//Outdoor denoise 0x76,0xd8, 0x77,0x0a,//Low light denoise 0x78,0xff, 0x79,0x14, 0x7a,0x24,//边缘增强 0x9e,0x04, 0x7d,0x2a,//去紫边 //Gamma default 0x39,0xa0,//Gamma offset 0x3f,0xa0, /* 0x90,0x20, 0x5f,0x03,//Dark_sel gamma 0x40,0x22, 0x41,0x23, 0x42,0x28, 0x43,0x25, 0x44,0x1d, 0x45,0x17, 0x46,0x13, 0x47,0x12, 0x48,0x10, 0x49,0x0d, 0x4b,0x0b, 0x4c,0x0b, 0x4e,0x09, 0x4f,0x07, 0x50,0x06, //Gamma low noise 0x40,0x24, 0x41,0x30, 0x42,0x24, 0x43,0x1d, 0x44,0x1a, 0x45,0x14, 0x46,0x11, 0x47,0x0e, 0x48,0x0d, 0x49,0x0c, 0x4b,0x0b, 0x4c,0x09, 0x4e,0x09, 0x4f,0x08, 0x50,0x07, */ //Gamma smooth under over-ex 0x40,0x18, 0x41,0x2c, 0x42,0x28, 0x43,0x20, 0x44,0x16, 0x45,0x10, 0x46,0x0f, 0x47,0x0f, 0x48,0x0e, 0x49,0x0a, 0x4b,0x0b, 0x4c,0x09, 0x4e,0x09, 0x4f,0x08, 0x50,0x06, /* //Gamma sharp and pretty 清晰亮丽 0x40,0x19, 0x41,0x1e, 0x42,0x1f, 0x43,0x20, 0x44,0x1d, 0x45,0x19, 0x46,0x17, 0x47,0x17, 0x48,0x14, 0x49,0x12, 0x4b,0x0f, 0x4c,0x0c, 0x4e,0x08, 0x4f,0x06, 0x50,0x03, */ //AE 0x24,0x48,//非A光Y_target 0x50 0x97,0x40,//A光Y_target 0x25,0x88,//AE_LOC 0x81,0x00,//AE speed 0x82,0x18, 0x83,0x30, 0x84,0x20, 0x85,0x38, 0x86,0x55, 0x94,0x82,//对AE亮度权重调节 0x80,0x92,//对过曝点数调节,bit[1]choose 50HZ or 60HZ step; 0x98,0xbb,//对窗口权重调节 0x8a 0x89,0x6d,//帧率调节bit[7:3] 0x8e,0x2c, 0x8f,0x86, //Banding 0x2b,0x20, 0x8a,0x93,//50HZ 0x8b,0x7a,//60HZ 0x92,0x6D, //Color 0x5a,0xec,//Outdoor color 0x51,0x90, 0x52,0x10, 0x53,0x8d, 0x54,0x88, 0x57,0x82, 0x58,0x8d, 0x5a,0x7c,//A light color 0x51,0x80, 0x52,0x04, 0x53,0x8d, 0x54,0x88, 0x57,0x82, 0x58,0x8d, //Color default 0x5a,0x6c,//Indoor color 0x51,0x93, 0x52,0x04, 0x53,0x8a, 0x54,0x88, 0x57,0x02, 0x58,0x8d, /*//Color色彩艳丽 0x5a,0x6c,//Indoor color 0x51,0xa0, 0x52,0x01, 0x53,0x8d, 0x54,0x85, 0x57,0x01, 0x58,0x90, //Color肤色较好 0x5a,0x6c,//Indoor color 0x51,0x90, 0x52,0x0a, 0x53,0x84, 0x54,0x05, 0x57,0x05, 0x58,0x87, //Color色彩淡 0x5a,0x6c,//Indoor color 0x51,0x85, 0x52,0x06, 0x53,0x8a, 0x54,0x81, 0x57,0x02, 0x58,0x8a, */ //Saturation 0xb0,0xa0,//A光饱和度 0xb1,0x26, 0xb2,0x1c, 0xb4,0xfd, 0xb0,0x30,//非A光饱和度 0xb1,0xc0, ///0xd8 0xb2,0xa0, ///0xb0 0xb4,0xf1, //Contrast 0x3c,0x40,//K1 0x56,0x48,//K2 0xb4[4]选择new or old 0x4d,0x40,//K3 0x59,0x40,//K4 /*//G gain大一些 0x35,0x56,//shading R 0x65,0x36,//shading G 0x66,0x44,//shading B //AWB 0x6a,0x91, 0x23,0x44, 0xa2,0x04, 0xa3,0x26, 0xa4,0x04, 0xa5,0x26, 0xa7,0x1a, 0xa8,0x10, 0xa9,0x1f, 0xaa,0x16, 0xab,0x16, 0xac,0x30, 0xad,0xf0, 0xae,0x57, 0xc5,0xaa, 0xc7,0x38, 0xc8,0x0d, 0xc9,0x16, 0xd3,0x09, 0xd4,0x15, 0xd0,0x00, 0xd1,0x01, 0xd2,0x18, */ //G gain小一些 0x35,0x46,//shading R 0x65,0x38,//shading G 0x66,0x42,//shading B //AWB 0x6a,0xd1,//AWB 0x23,0x11,//G GAIN 0xa2,0x0b,//非户外 B上下线 0xa3,0x26, 0xa4,0x04,//非户外 R上下线 0xa5,0x26, 0xa7,0x13,//B GAIN 0xa8,0x8e,//R GAIN 0xa9,0x16,//白点 0xaa,0x16, 0xab,0x16, 0xac,0x30, 0xad,0xf0, 0xae,0x57, 0xc5,0x66, 0xc7,0x38,//户内、外开关bit[4] 0xc8,0x0d,//非户外 B上下线 0xc9,0x16, 0xd3,0x09,//非户外 R上下线 0xd4,0x15, 0xd0,0x00,//A光下的offset 0xd1,0x01,//非A光下的offset 0xd2,0x18, 0x20,0x40, ////[6] dependent or not 0x09,0x5c,///0x55 0x57 }; uint8_t bf3a03_default_regs_exit[]={ }; #endif