#ifndef GC0328_H #define GC0328_H // Scene Mode unsigned char gc0328_scene_mode_auto[] = { 0xfa, 0x00, }; unsigned char gc0328_scene_mode_night[] = { 0xfa, 0x11, }; // White Balance unsigned char gc0328_wb_auto [] = { 0xfe, 0x00, 0x77, 0x60,//57 0x78, 0x40,//4 0x79, 0x60,//45 0x42, 0xfe, }; unsigned char gc0328_wb_incandescent [] = { //bai re guang 0xfe, 0x00, 0x42, 0xfd, 0x77, 0x48, 0x78, 0x40, 0x79, 0x5c, }; unsigned char gc0328_wb_fluorescent [] = { //ri guang deng 0xfe, 0x00, 0x42, 0xfd, 0x77, 0x40, 0x78, 0x42, 0x79, 0x50, }; unsigned char gc0328_wb_daylight [] = { //tai yang guang 0xfe, 0x00, 0x42, 0xfd, 0x77, 0x74, 0x78, 0x52, 0x79, 0x40, }; unsigned char gc0328_wb_cloudy [] = { 0xfe, 0x00, 0x42, 0xfd, 0x77, 0x8c, 0x78, 0x50, 0x79, 0x40, }; unsigned char gc0328_wb_tungsten [] = { //wu si deng 0xfe, 0x00, 0x42, 0xfd, 0x77, 0x40, 0x78, 0x54, 0x79, 0x70 }; // Exposure unsigned char gc0328_exposure_neg6[] = { 0xfe, 0x00, 0xd5, 0xe0, 0xfe, 0x01, 0x13, 0x35, 0xfe, 0x00 }; unsigned char gc0328_exposure_neg3[] = { 0xfe, 0x00, 0xd5, 0xf0, 0xfe, 0x01, 0x13, 0x37, 0xfe, 0x00 }; unsigned char gc0328_exposure_zero[] = { 0xfe, 0x00, 0xd5, 0x00, 0xfe, 0x01, 0x13, 0x38, 0xfe, 0x00 }; unsigned char gc0328_exposure_pos3[] = { 0xfe, 0x00, 0xd5, 0x10, 0xfe, 0x01, 0x13, 0x55, 0xfe, 0x00 }; unsigned char gc0328_exposure_pos6[] = { 0xfe, 0x00, 0xd5, 0x20, 0xfe, 0x01, 0x13, 0x65, 0xfe, 0x00 }; // Color Effect unsigned char gc0328_colorfx_none[] = { 0x43, 0x00 }; unsigned char gc0328_colorfx_bw[] = { 0x43, 0x02, 0xda, 0xd0, 0xdb, 0x28 }; unsigned char gc0328_colorfx_sepia[] = { 0x43, 0x02, 0xda, 0xc0, 0xdb, 0xc0 }; unsigned char gc0328_colorfx_negative[] = { 0x43, 0x01 }; unsigned char gc0328_colorfx_emboss[] = { 0x43, 0x02, 0xda, 0x50, 0xdb, 0xe0 }; unsigned char gc0328_colorfx_sketch[] = { 0x43, 0x02, 0xda, 0x00, 0xdb, 0x00 }; unsigned char gc0328_colorfx_sky_blue[] = { 0x43,0x02, 0xda,0x50, 0xdb,0xe0, }; unsigned char gc0328_colorfx_grass_green[] = { 0x43,0x02, 0xda,0xc0, 0xdb,0xc0, }; unsigned char gc0328_colorfx_skin_whiten[] = { }; unsigned char gc0328_colorfx_vivid[] = { }; // Brightness unsigned char gc0328_brightness_neg4[] = { }; unsigned char gc0328_brightness_neg3[] = { }; unsigned char gc0328_brightness_neg2[] = { }; unsigned char gc0328_brightness_neg1[] = { }; unsigned char gc0328_brightness_zero[] = { }; unsigned char gc0328_brightness_pos1[] = { }; unsigned char gc0328_brightness_pos2[] = { }; unsigned char gc0328_brightness_pos3[] = { }; unsigned char gc0328_brightness_pos4[] = { }; // Contrast unsigned char gc0328_contrast_neg4[] = { }; unsigned char gc0328_contrast_neg3[] = { }; unsigned char gc0328_contrast_neg2[] = { }; unsigned char gc0328_contrast_neg1[] = { }; unsigned char gc0328_contrast_zero[] = { }; unsigned char gc0328_contrast_pos1[] = { }; unsigned char gc0328_contrast_pos2[] = { }; unsigned char gc0328_contrast_pos3[] = { }; unsigned char gc0328_contrast_pos4[] = { }; // Saturation unsigned char gc0328_saturation_neg4[] = { }; unsigned char gc0328_saturation_neg3[] = { }; unsigned char gc0328_saturation_neg2[] = { }; unsigned char gc0328_saturation_neg1[] = { }; unsigned char gc0328_saturation_zero[] = { }; unsigned char gc0328_saturation_pos1[] = { }; unsigned char gc0328_saturation_pos2[] = { }; unsigned char gc0328_saturation_pos3[] = { }; unsigned char gc0328_saturation_pos4[] = { }; // Resolution // QCIF unsigned char gc0328_176x144[]={ }; unsigned char gc0328_320x240[]={ }; unsigned char gc0328_640x480[]={ }; // Initiliztion unsigned char gc0328_default_regs_init[] = { 0xfe , 0x80, 0xfe , 0x80, 0xfc , 0x16, 0xfc , 0x16, 0xfc , 0x16, 0xfc , 0x16, 0xf1 , 0x00, 0xf2 , 0x00, 0xfe , 0x00, 0x4f , 0x00, 0x03 , 0x00, 0x04 , 0xc0, 0x42 , 0x00, 0x77 , 0x5a, 0x78 , 0x40, 0x79 , 0x56, 0xfe , 0x00, 0x0d , 0x01, 0x0e , 0xe8, 0x0f , 0x02, 0x10 , 0x88, 0x09 , 0x00, 0x0a , 0x00, 0x0b , 0x00, 0x0c , 0x00, 0x16 , 0x00, 0x17 , 0x14, 0x18 , 0x0e, 0x19 , 0x06, 0x1b , 0x48, 0x1f , 0xC8, 0x20 , 0x01, 0x21 , 0x78, 0x22 , 0xb0, 0x23 , 0x06, 0x24 , 0x11, 0x26 , 0x00, 0x50 , 0x01, //crop mode //global gain for range 0x70 , 0x45, /////////////banding///////////// 0x05 , 0x02,//hb 0x06 , 0x2c,// 0x07 , 0x00,//vb 0x08 , 0xb8,// 0xfe , 0x01,// 0x29 , 0x00,//anti-flicker step [11:8] 0x2a , 0x60,//anti-flicker step [7:0] 0x2b , 0x02,//exp level 0 14.28fps 0x2c , 0xa0,// 0x2d , 0x03,//exp level 1 12.50fps 0x2e , 0x00,// 0x2f , 0x03,//exp level 2 10.00fps 0x30 , 0xc0,// 0x31 , 0x05,//exp level 3 7.14fps 0x32 , 0x40,// 0xfe , 0x00,// ///////////////AWB////////////// 0xfe , 0x01, 0x50 , 0x00, 0x4f , 0x00, 0x4c , 0x01, 0x4f , 0x00, 0x4f , 0x00, 0x4f , 0x00, 0x4f , 0x00, 0x4f , 0x00, 0x4d , 0x30, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x40, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x50, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x60, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x70, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4f , 0x01, 0x50 , 0x88, 0xfe , 0x00, //////////// BLK////////////////////// 0xfe , 0x00, 0x27 , 0xb7, 0x28 , 0x7F, 0x29 , 0x20, 0x33 , 0x20, 0x34 , 0x20, 0x35 , 0x20, 0x36 , 0x20, 0x32 , 0x08, 0x3b , 0x00, 0x3c , 0x00, 0x3d , 0x00, 0x3e , 0x00, 0x47 , 0x00, 0x48 , 0x00, //////////// block enable///////////// 0x40 , 0x7f, 0x41 , 0x26, 0x42 , 0xfb, 0x44 , 0x02, //yuv 0x45 , 0x00, 0x46 , 0x02, 0x4f , 0x01, 0x4b , 0x01, 0x50 , 0x01, /////DN & EEINTP///// 0x7e , 0x0a, 0x7f , 0x03, 0x81 , 0x15, 0x82 , 0x90, 0x83 , 0x02, 0x84 , 0xe5, 0x90 , 0x2c, 0x92 , 0x02, 0x94 , 0x02, 0x95 , 0x35, ////////////YCP/////////// 0xd1 , 0x24,// 0x30 for front 0xd2 , 0x24,// 0x30 for front 0xd3 , 0x40, 0xdd , 0xd3, 0xde , 0x38, 0xe4 , 0x88, 0xe5 , 0x40, 0xd7 , 0x0e, ///////////rgb gamma //////////// 0xfe , 0x00, 0xbf , 0x0e, 0xc0 , 0x1c, 0xc1 , 0x34, 0xc2 , 0x48, 0xc3 , 0x5a, 0xc4 , 0x6e, 0xc5 , 0x80, 0xc6 , 0x9c, 0xc7 , 0xb4, 0xc8 , 0xc7, 0xc9 , 0xd7, 0xca , 0xe3, 0xcb , 0xed, 0xcc , 0xf2, 0xcd , 0xf8, 0xce , 0xfd, 0xcf , 0xff, /////////////Y gamma////////// 0xfe , 0x00, 0x63 , 0x00, 0x64 , 0x05, 0x65 , 0x0b, 0x66 , 0x19, 0x67 , 0x2e, 0x68 , 0x40, 0x69 , 0x54, 0x6a , 0x66, 0x6b , 0x86, 0x6c , 0xa7, 0x6d , 0xc6, 0x6e , 0xe4, 0x6f , 0xff, //////////////ASDE///////////// 0xfe , 0x01, 0x18 , 0x02, 0xfe , 0x00, 0x97 , 0x30, 0x98 , 0x00, 0x9b , 0x60, 0x9c , 0x60, 0xa4 , 0x50, 0xa8 , 0x80, 0xaa , 0x40, 0xa2 , 0x23, 0xad , 0x28, //////////////abs/////////// 0xfe , 0x01, 0x9c , 0x00, 0x9e , 0xc0, 0x9f , 0x40, ////////////// AEC//////////// 0xfe , 0x01, 0x08 , 0xa0, 0x09 , 0xe8, 0x10 , 0x08, 0x11 , 0x21, 0x12 , 0x11, 0x13 , 0x45, 0x15 , 0xfc, 0x18 , 0x02, 0x21 , 0xf0, 0x22 , 0x60, 0x23 , 0x30, 0x25 , 0x00, 0x24 , 0x14, 0x3d , 0x80, 0x3e , 0x40, ////////////////AWB/////////// 0xfe , 0x01, 0x51 , 0x88, 0x52 , 0x12, 0x53 , 0x80, 0x54 , 0x60, 0x55 , 0x01, 0x56 , 0x02, 0x58 , 0x00, 0x5b , 0x02, 0x5e , 0xa4, 0x5f , 0x8a, 0x61 , 0xdc, 0x62 , 0xdc, 0x70 , 0xfc, 0x71 , 0x10, 0x72 , 0x30, 0x73 , 0x0b, 0x74 , 0x0b, 0x75 , 0x01, 0x76 , 0x00, 0x77 , 0x40, 0x78 , 0x70, 0x79 , 0x00, 0x7b , 0x00, 0x7c , 0x71, 0x7d , 0x00, 0x80 , 0x70, 0x81 , 0x58, 0x82 , 0x98, 0x83 , 0x60, 0x84 , 0x58, 0x85 , 0x50, 0xfe , 0x00, ////////////////LSC//////////////// 0xfe , 0x01, 0xc0 , 0x10, 0xc1 , 0x0c, 0xc2 , 0x0a, 0xc6 , 0x0e, 0xc7 , 0x0b, 0xc8 , 0x0a, 0xba , 0x26, 0xbb , 0x1c, 0xbc , 0x1d, 0xb4 , 0x23, 0xb5 , 0x1c, 0xb6 , 0x1a, 0xc3 , 0x00, 0xc4 , 0x00, 0xc5 , 0x00, 0xc9 , 0x00, 0xca , 0x00, 0xcb , 0x00, 0xbd , 0x00, 0xbe , 0x00, 0xbf , 0x00, 0xb7 , 0x07, 0xb8 , 0x05, 0xb9 , 0x05, 0xa8 , 0x07, 0xa9 , 0x06, 0xaa , 0x00, 0xab , 0x04, 0xac , 0x00, 0xad , 0x02, 0xae , 0x0d, 0xaf , 0x05, 0xb0 , 0x00, 0xb1 , 0x07, 0xb2 , 0x03, 0xb3 , 0x00, 0xa4 , 0x00, 0xa5 , 0x00, 0xa6 , 0x00, 0xa7 , 0x00, 0xa1 , 0x3c, 0xa2 , 0x50, 0xfe , 0x00, ///////////////CCT /////////// 0xb1 , 0x12, 0xb2 , 0xf5, 0xb3 , 0xfe, 0xb4 , 0xe0, 0xb5 , 0x15, 0xb6 , 0xc8, /////skin CC for front ////// //0xb1 , 0x00, //0xb2 , 0x00, //0xb3 , 0x00, //0xb4 , 0xf0, //0xb5 , 0x00, //0xb6 , 0x00, ///////////////AWB//////////////// 0xfe , 0x01, 0x50 , 0x00, 0xfe , 0x01, 0x4f , 0x00, 0x4c , 0x01, 0x4f , 0x00, 0x4f , 0x00, 0x4f , 0x00, 0x4d , 0x34, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x02, 0x4e , 0x02, 0x4d , 0x44, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x53, 0x4e , 0x00, 0x4e , 0x04, 0x4e , 0x04, 0x4e , 0x04, 0x4d , 0x65, 0x4e , 0x04, 0x4d , 0x73, 0x4e , 0x20, 0x4d , 0x83, 0x4e , 0x20, 0x4f , 0x01, 0x50 , 0x88, /////////output//////// 0xfe , 0x00, 0xf1 , 0x07, 0xf2 , 0x01, }; #endif