#ifndef GC0307_H #define GC0307_H // Scene Mode uint8_t gc0307_scene_mode_auto[] = { }; uint8_t gc0307_scene_mode_night[] = { }; // White Balance uint8_t gc0307_wb_auto [] = { 0xf0,0x00, // 0x41,0x2b, 0xc7,0x4c, 0xc8,0x40, 0xc9,0x4a, }; uint8_t gc0307_wb_incandescent [] = { //bai re guang 0xf0,0x00, // 0x41,0x2b, 0xc7,0x48, 0xc8,0x40, 0xc9,0x5c, }; uint8_t gc0307_wb_fluorescent [] = { //ri guang deng 0xf0,0x00, // 0x41,0x2b, 0xc7,0x40, 0xc8,0x42, 0xc9,0x50, }; uint8_t gc0307_wb_daylight [] = { //tai yang guang 0xf0,0x00, // 0x41,0x2b, 0xc7,0x50, 0xc8,0x45, 0xc9,0x40, }; uint8_t gc0307_wb_cloudy [] = { 0xf0,0x00, // 0x41,0x2b, 0xc7,0x5a, 0xc8,0x42, 0xc9,0x40, }; // Exposure uint8_t gc0307_exposure_neg6[] = { 0xf0,0x00, 0x7a,0xd0, 0xd1,0x38, }; uint8_t gc0307_exposure_neg3[] = { 0xf0,0x00, 0x7a,0xe0, 0xd1,0x48, }; uint8_t gc0307_exposure_zero[] = { 0xf0,0x00, 0x7a,0x00, 0xd1,0x50, }; uint8_t gc0307_exposure_pos3[] = { 0xf0,0x00, 0x7a,0x20, 0xd1,0x58, }; uint8_t gc0307_exposure_pos6[] = { 0xf0,0x00, 0x7a,0x40, 0xd1,0x68, }; // Resolution uint8_t gc0307_320x240[]= { 0x05,0x00, 0x06,0x78, 0x07,0x00, 0x08,0xa0, 0x09,0x00, 0x0a,0xf8, 0x0b,0x01, 0x0c,0x48, 0x45,0x24, // bit[7:2]=001001 0x48,0x04, // bit[7]= 0 0xe0,0x02, 0xe1,0x01, 0xe2,0x13, 0xe3,0x0f, 0xe8,0x1c, 0xe9,0x35, 0xea,0x17, 0xeb,0x29, 0xec,0x39, }; uint8_t gc0307_640x480[] = { #if 0 0x05,0x00, 0x06,0x00, 0x07,0x00, 0x08,0x00, 0x09,0x01, 0x0a,0xe8, 0x0b,0x02, 0x0c,0x80, 0x45,0x26, // bit[7:2]=001001 0x48,0x84, // bit[7]=1 0xe0,0x03, 0xe1,0x02, 0xe2,0x27, 0xe3,0x1e, 0xe8,0x3b, 0xe9,0x6e, 0xea,0x2c, 0xeb,0x50, 0xec,0x73, #endif }; uint8_t gc0307_default_regs_init[] = { 0x43 ,0x00, 0x44 ,0xa2, 0x40 ,0x10, 0x41 ,0x00, 0x42 ,0x10, 0x47 ,0x00, 0x48 ,0xc3, 0x49 ,0x00, 0x4a ,0x00, 0x4b ,0x00, 0x4E ,0x22, 0x4F ,0x01, 0x1C ,0x00, 0x1D ,0x00, 0x11 ,0x05, 0x01 ,0xfa, 0x02 ,0x70, 0x1C ,0x00, 0x1D ,0x00, 0x10 ,0x01, 0x11 ,0x05, 0x05 ,0x00, 0x06 ,0x00, 0x07 ,0x00, 0x08 ,0x00, 0x09 ,0x01, 0x0A ,0xE8, 0x0B ,0x02, 0x0C ,0x80, 0x0D ,0x22, 0x0E ,0x02, 0x12 ,0x70, 0x13 ,0x00, 0x14 ,0x00, 0x15 ,0xba, 0x16 ,0x13, 0x17 ,0x52, 0x1E ,0x41, 0x1F ,0x32, 0x47 ,0x00, 0x19 ,0x06, 0x1a ,0x06, 0x31 ,0x00, 0x3B ,0x00, 0x59 ,0x0f, 0x58 ,0xc6, 0x57 ,0x08, 0x56 ,0x77, 0x35 ,0xd8, 0x36 ,0x40, 0x3C ,0x00, 0x3D ,0x00, 0x3E ,0x00, 0x3F ,0x00, 0xb5 ,0x70, 0xb6 ,0x40, 0xb7 ,0x00, 0xb8 ,0x38, 0xb9 ,0xc3, 0xba ,0x0f, 0x7e ,0x35, 0x7f ,0x86, 0x5c ,0x68, 0x5d ,0x78, 0x61 ,0x80, 0x63 ,0x80, 0x65 ,0x98, 0x67 ,0x80, 0x68 ,0x18, 0x69 ,0x58, 0x6A ,0xf6, 0x6B ,0xfb, 0x6C ,0xf4, 0x6D ,0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