⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ae_table.c

📁 台湾凌阳方案300万数码相机源代码
💻 C
📖 第 1 页 / 共 3 页
字号:
//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]={{ 70, 0x00C8, 0x4C0}, { 71, 0x00C8, 0x458}, { 72, 0x00C8, 0x3F8}, { 73, 0x00C8, 0x3A0}, { 74, 0x00F0, 0x3D0}, { 75, 0x00F0, 0x380}, { 76, 0x00F0, 0x330}, { 77, 0x012C, 0x390}, { 78, 0x012C, 0x348}, { 79, 0x012C, 0x308},
				 { 80, 0x012C, 0x2C8}, { 81, 0x012C, 0x288}, { 82, 0x0190, 0x338}, { 83, 0x0190, 0x300}, { 84, 0x0190, 0x2C8}, { 85, 0x0190, 0x298}, { 86, 0x0190, 0x260}, { 87, 0x0190, 0x230}, { 88, 0x0190, 0x208}, { 89, 0x0258, 0x2E0},
				 { 90, 0x0258, 0x2B0}, { 91, 0x0258, 0x288}, { 92, 0x0258, 0x260}, { 93, 0x0258, 0x238}, { 94, 0x0258, 0x210}, { 95, 0x0258, 0x1E8}, { 96, 0x0258, 0x1C8}, { 97, 0x0258, 0x1A0}, { 98, 0x04B0, 0x300}, { 99, 0x04B0, 0x2C8},
				 {100, 0x04B0, 0x2A8}, {101, 0x04B0, 0x288}, {102, 0x04B0, 0x268}, {103, 0x04B0, 0x248}, {104, 0x04B0, 0x230}, {105, 0x04B0, 0x210}, {106, 0x04B0, 0x1F0}, {107, 0x04B0, 0x1D8}, {108, 0x04B0, 0x1C0}, {109, 0x04B0, 0x1A0},
				 {110, 0x04B0, 0x188}, {111, 0x04B0, 0x170}, {112, 0x04B0, 0x158}, {113, 0x04B0, 0x140}, {114, 0x04B0, 0x128}, {115, 0x04B0, 0x118}, {116, 0x04B0, 0x100}, {117, 0x04FF, 0x100}, {118, 0x058C, 0x100}, {119, 0x05F2, 0x100},
				 {120, 0x0698, 0x100}, {121, 0x0712, 0x100}, {122, 0x0794, 0x100}, {123, 0x081F, 0x100}, {124, 0x08B4, 0x100}, {125, 0x0954, 0x100}, {126, 0x0A00, 0x100}, {127, 0x0AB7, 0x100}, {128, 0x0B18, 0x100}, {129, 0x0BE4, 0x100},
				 {130, 0x0CBE, 0x100}, {131, 0x0D32, 0x100}, {132, 0x0E24, 0x100}, {133, 0x0EA4, 0x100}, {134, 0x0FB1, 0x100}, {135, 0x10D0, 0x100}, {136, 0x1168, 0x100}, {137, 0x12A9, 0x100}, {138, 0x1351, 0x100}, {139, 0x14B3, 0x100},
				 {140, 0x1570, 0x100}, {141, 0x21A5, 0x1DE}, {142, 0x21A5, 0x1BE}, {143, 0x21A5, 0x1A0}, {144, 0x21A5, 0x184}, {145, 0x21A5, 0x16A}, {146, 0x21A5, 0x152}, {147, 0x21A5, 0x13B}, {148, 0x21A5, 0x126}, {149, 0x21A5, 0x112},
				 {150, 0x21A5, 0x100}, {151, 0x3887, 0x19A}, {152, 0x3887, 0x17E}, {153, 0x3887, 0x165}, {154, 0x3887, 0x14D}, {155, 0x3887, 0x136}, {156, 0x3887, 0x122}, {157, 0x3887, 0x10E}, {158, 0x6993, 0x24C}, {159, 0x6993, 0x225},
				 {160, 0x6993, 0x200}, {161, 0x6993, 0x1DE}, {162, 0x6993, 0x1BE}, {163, 0x6993, 0x1A0}, {164, 0x6993, 0x184}, {165, 0x6993, 0x16A}, {166, 0x6993, 0x152}, {167, 0x6993, 0x13B}, {168, 0x6993, 0x126}, {169, 0x6993, 0x112},
				 {170, 0x6993, 0x100}};

code AEstr LVtbl50[101]={{ 70, 0x00C8, 0x4C0}, { 71, 0x00C8, 0x458}, { 72, 0x00C8, 0x3F8}, { 73, 0x00C8, 0x3A0}, { 74, 0x00F0, 0x3D0}, { 75, 0x00F0, 0x380}, { 76, 0x00F0, 0x330}, { 77, 0x012C, 0x390}, { 78, 0x012C, 0x348}, { 79, 0x012C, 0x308},
				 { 80, 0x012C, 0x2C8}, { 81, 0x012C, 0x288}, { 82, 0x0190, 0x338}, { 83, 0x0190, 0x300}, { 84, 0x0190, 0x2C8}, { 85, 0x0190, 0x298}, { 86, 0x0190, 0x260}, { 87, 0x0190, 0x230}, { 88, 0x0190, 0x208}, { 89, 0x0258, 0x2E0},
				 { 90, 0x0258, 0x2B0}, { 91, 0x0258, 0x288}, { 92, 0x0258, 0x260}, { 93, 0x0258, 0x238}, { 94, 0x0258, 0x210}, { 95, 0x0258, 0x1E8}, { 96, 0x0258, 0x1C8}, { 97, 0x0258, 0x1A0}, { 98, 0x04B0, 0x300}, { 99, 0x04B0, 0x2C8},
				 {100, 0x04B0, 0x2A8}, {101, 0x04B0, 0x288}, {102, 0x04B0, 0x268}, {103, 0x04B0, 0x248}, {104, 0x04B0, 0x230}, {105, 0x04B0, 0x210}, {106, 0x04B0, 0x1F0}, {107, 0x04B0, 0x1D8}, {108, 0x04B0, 0x1C0}, {109, 0x04B0, 0x1A0},
				 {110, 0x04B0, 0x188}, {111, 0x04B0, 0x170}, {112, 0x04B0, 0x158}, {113, 0x04B0, 0x140}, {114, 0x04B0, 0x128}, {115, 0x04B0, 0x118}, {116, 0x04B0, 0x100}, {117, 0x04FF, 0x100}, {118, 0x058C, 0x100}, {119, 0x05F2, 0x100},
				 {120, 0x0698, 0x100}, {121, 0x0712, 0x100}, {122, 0x0794, 0x100}, {123, 0x081F, 0x100}, {124, 0x08B4, 0x100}, {125, 0x0954, 0x100}, {126, 0x0A00, 0x100}, {127, 0x0AB7, 0x100}, {128, 0x0B18, 0x100}, {129, 0x0BE4, 0x100},
				 {130, 0x0CBE, 0x100}, {131, 0x0D32, 0x100}, {132, 0x0E24, 0x100}, {133, 0x0EA4, 0x100}, {134, 0x0FB1, 0x100}, {135, 0x10D0, 0x100}, {136, 0x1168, 0x100}, {137, 0x12A9, 0x100}, {138, 0x1351, 0x100}, {139, 0x14B3, 0x100},
				 {140, 0x1570, 0x100}, {141, 0x21A5, 0x1DE}, {142, 0x21A5, 0x1BE}, {143, 0x21A5, 0x1A0}, {144, 0x21A5, 0x184}, {145, 0x21A5, 0x16A}, {146, 0x21A5, 0x152}, {147, 0x21A5, 0x13B}, {148, 0x21A5, 0x126}, {149, 0x21A5, 0x112},
				 {150, 0x21A5, 0x100}, {151, 0x3887, 0x19A}, {152, 0x3887, 0x17E}, {153, 0x3887, 0x165}, {154, 0x3887, 0x14D}, {155, 0x3887, 0x136}, {156, 0x3887, 0x122}, {157, 0x3887, 0x10E}, {158, 0x6993, 0x24C}, {159, 0x6993, 0x225},
				 {160, 0x6993, 0x200}, {161, 0x6993, 0x1DE}, {162, 0x6993, 0x1BE}, {163, 0x6993, 0x1A0}, {164, 0x6993, 0x184}, {165, 0x6993, 0x16A}, {166, 0x6993, 0x152}, {167, 0x6993, 0x13B}, {168, 0x6993, 0x126}, {169, 0x6993, 0x112},
				 {170, 0x6993, 0x100}};


#endif


//patch4.4@jhyu@lens_change@start
#ifdef  OV13
#define AE_Table_in     //3 New sensor must add this Line

#if 0
#define R_Off 0x01
#define Gr_Off 0xff
#define B_Off 0x00
#define Gb_Off 0x00

#define R_DS  0x55		//Direct Sunlight Gain Settings
#define Gr_DS 0x40
#define B_DS  0x56
#define Gb_DS 0x40

//Indirect Sunlight Gain Settings
#define R_IDS  0x55
#define Gr_IDS 0x40
#define B_IDS  0x56
#define Gb_IDS 0x40
#endif

#if 1  //James

#define R_Off 0xff
#define Gr_Off 0xff
#define B_Off 0x00
#define Gb_Off 0x00

#define R_DS  0x51		//Direct Sunlight Gain Settings
#define Gr_DS 0x40
#define B_DS  0x53
#define Gb_DS 0x40

//Indirect Sunlight Gain Settings
#define R_IDS  0x51
#define Gr_IDS 0x40
#define B_IDS  0x53
#define Gb_IDS 0x40
#endif

#define K_Indoor_stdlumi (USHORT)0x44
#define K_Outdoor_stdlumi (USHORT)0x41//patch4.4@jhyu@lens_change@end


//added tbl for fast AE snap

//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]={{70,200,0x14},{71,200,0x12},{72,200,0x10},{73,200,0x0d},{74,200,0x0a},{75,200,0x08},{76,200,0x06},{77,200,0x03},{78,200,0x02},{79,200,0x01},
{80,200,0x00},{81,240,0x00},{82,300,0x03},{83,300,0x02},{84,300,0x00},{85,400,0x04},{86,400,0x03},{87,400,0x01},{88,400,0x00},{89,600,0x06},
{90,600,0x05},{91,600,0x03},{92,600,0x02},{93,600,0x01},{94,600,0x00},{95,1200,0x0e},{96,1200,0x0c},{97,1200,0x0a},{98,1200,0x08},{99,1200,0x06},
{100,1200,0x04},{101,1200,0x03},{102,1200,0x01},{103,1200,0x00},{104,1538,0x04},{105,1612,0x04},{106,1724,0x04},{107,1851,0x04},{108,2000,0x04},{109,2173,0x04},
{110,2380,0x04},{111,2631,0x05},{112,2777,0x04},{113,2941,0x04},{114,3125,0x04},{115,3571,0x05},{116,3846,0x05},{117,3846,0x04},{118,4166,0x04},{119,4545,0x05},
{120,5000,0x05},{121,5000,0x04},{122,6250,0x06},{123,6250,0x05},{124,6250,0x04},{125,7142,0x05},{126,8333,0x07},{127,8333,0x06},{128,8333,0x04},{129,10000,0x07},
{130,10000,0x05},{131,12500,0x08},{132,12500,0x07},{133,12500,0x05},{134,16666,0x0a},{135,16666,0x09},{136,16666,0x07},{137,16666,0x06},{138,16666,0x05},{139,25000,0x0d},
{140,25000,0x0b},{141,25000,0x09},{142,25000,0x07},{143,25000,0x06},{144,25000,0x04},{145,50000,0x13},{146,50000,0x12},{147,50000,0x10},{148,50000,0x0f},{149,50000,0x0d},
{150,50000,0x0b},{151,50000,0x08},{152,50000,0x06},{153,50000,0x05},{154,50000,0x04},{155,100000,0x13},{156,100000,0x12},{157,100000,0x11},{158,100000,0x0f},{159,100000,0x0d},
{160,100000,0x0b},{161,100000,0x09},{162,100000,0x07},{163,100000,0x05},{164,100000,0x03},{165,100000,0x02},{166,100000,0x01},{167,100000,0x00},{168,100000,0x00},{169,100000,0x00},
{170,100000,0x00}};


//patch4.4@jhyu@OV9620_50Hz_table

//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl50[101]={{70,200,0x31},{71,200,0x1f},{72,200,0x1c},{73,200,0x19},{74,200,0x16},{75,200,0x14},{76,200,0x12},{77,200,0x10},{78,200,0x0d},{79,200,0x0a},
{80,200,0x07},{81,200,0x05},{82,200,0x04},{83,200,0x02},{84,200,0x01},{85,250,0x03},{86,250,0x01},{87,250,0x00},{88,333,0x04},{89,333,0x02},
{90,333,0x01},{91,500,0x07},{92,500,0x06},{93,500,0x04},{94,500,0x02},{95,500,0x01},{96,1000,0x0f},{97,1000,0x0d},{98,1000,0x0b},{99,1000,0x09},
{100,1000,0x07},{101,1000,0x06},{102,1000,0x04},{103,1000,0x02},{104,1000,0x01},{105,1000,0x00},{106,1041,0x00},{107,1111,0x00},{108,1190,0x00},{109,1282,0x00},
{110,1388,0x00},{111,1470,0x00},{112,1612,0x00},{113,1724,0x00},{114,1851,0x00},{115,2000,0x00},{116,2173,0x00},{117,2272,0x00},{118,2500,0x00},{119,2631,0x00},
{120,2941,0x00},{121,3125,0x00},{122,3333,0x00},{123,3571,0x00},{124,3846,0x00},{125,4166,0x00},{126,4545,0x01},{127,4545,0x00},{128,5555,0x01},{129,5555,0x00},
{130,6250,0x01},{131,6250,0x00},{132,7142,0x01},{133,7142,0x00},{134,8333,0x01},{135,8333,0x00},{136,10000,0x02},{137,10000,0x01},{138,10000,0x00},{139,12500,0x02},
{140,12500,0x01},{141,12500,0x00},{142,16666,0x04},{143,16666,0x02},{144,16666,0x01},{145,16666,0x00},{146,25000,0x07},{147,25000,0x05},{148,25000,0x04},{149,25000,0x02},
{150,25000,0x01},{151,25000,0x00},{152,50000,0x0e},{153,50000,0x0d},{154,50000,0x0b},{155,50000,0x09},{156,50000,0x07},{157,50000,0x05},{158,50000,0x04},{159,50000,0x02},
{160,50000,0x01},{161,50000,0x00},{162,100000,0x0e},{163,100000,0x0d},{164,100000,0x0a},{165,100000,0x08},{166,100000,0x07},{167,100000,0x05},{168,100000,0x03},{169,100000,0x02},
{170,100000,0x01}};

#endif


#ifdef  OV2610
#define AE_Table_in     //3 New sensor must add this Line

#define R_Off 0x00     //patch4.5@jhyu@OV2610
#define Gr_Off 0xf8	//patch4.5@jhyu@OV2610
#define B_Off 0x00	//patch4.5@jhyu@OV2610
#define Gb_Off 0xf8	//patch4.5@jhyu@OV2610

#define R_DS 0x50	//patch4.5@jhyu@OV2610
#define Gr_DS 0x3e	//patch4.5@jhyu@OV2610
#define B_DS  0x50	//patch4.5@jhyu@OV2610
#define Gb_DS 0x40	//patch4.5@jhyu@OV2610

//Indirect Sunlight Gain Settings
#define R_IDS 0x50	//patch4.5@jhyu@OV2610
#define Gr_IDS 0x3e	//patch4.5@jhyu@OV2610
#define B_IDS  0x50	//patch4.5@jhyu@OV2610
#define Gb_IDS 0x40	//patch4.5@jhyu@OV2610

#define K_Indoor_stdlumi (USHORT)0x44
#define K_Outdoor_stdlumi (USHORT)0x41//patch4.4@jhyu@lens_change@end



//patch4.5@jhyu@OV2610
//60Hz table  for F#2.8
code AEstr LVtbl60[101]={{70,200,0x17},{71,200,0x15},{72,200,0x14},{73,200,0x12},{74,200,0x11},{75,200,0x10},{76,200,0x0e},{77,200,0x0c},{78,200,0x0a},{79,200,0x08},
{80,200,0x07},{81,200,0x05},{82,200,0x04},{83,240,0x06},{84,240,0x04},{85,299,0x08},{86,240,0x02},{87,240,0x01},{88,299,0x04},{89,299,0x02},
{90,600,0x11},{91,600,0x10},{92,400,0x04},{93,400,0x02},{94,600,0x09},{95,600,0x08},{96,600,0x06},{97,600,0x05},{98,600,0x04},{99,600,0x02},
{100,1196,0x11},{101,1196,0x10},{102,1196,0x0e},{103,1196,0x0c},{104,1196,0x0a},{105,1196,0x08},{106,1196,0x06},{107,1196,0x05},{108,1196,0x03},{109,1196,0x02},
{110,1339,0x03},{111,1339,0x02},{112,1540,0x03},{113,1811,0x05},{114,1760,0x03},{115,1866,0x03},{116,1925,0x02},{117,2053,0x02},{118,2369,0x03},{119,2369,0x02},
{120,2566,0x02},{121,2933,0x03},{122,3080,0x03},{123,3850,0x06},{124,3850,0x05},{125,3850,0x03},{126,3850,0x02},{127,4106,0x02},{128,4400,0x02},{129,5133,0x04},
{130,5600,0x04},{131,8800,0x0d},{132,7700,0x08},{133,7700,0x06},{134,7700,0x05},{135,8800,0x06},{136,7700,0x02},{137,12320,0x0b},{138,8800,0x02},{139,10266,0x04},
{140,10266,0x02},{141,12320,0x04},{142,12320,0x03},{143,12320,0x02},{144,15400,0x05},{145,15400,0x03},{146,15400,0x02},{147,30800,0x11},{148,20533,0x05},{149,20533,0x04},
{150,20533,0x02},{151,20533,0x01},{152,30800,0x08},{153,30800,0x06},{154,30800,0x05},{155,30800,0x03},{156,30800,0x02},{157,61601,0x11},{158,61601,0x0f},{159,61601,0x0d},
{160,61601,0x0b},{161,61601,0x09},{162,61601,0x08},{163,61601,0x06},{164,61601,0x05},{165,61601,0x03},{166,61601,0x02},{167,123203,0x11},{168,123203,0x0f},{169,123203,0x0d},
{170,123203,0x0b}};

//patch4.5@jhyu@OV2610
//50Hz table for F#2.8
code AEstr LVtbl50[101]={{70,200,0x18},{71,200,0x16},{72,200,0x15},{73,200,0x13},{74,200,0x12},{75,200,0x11},{76,200,0x0f},{77,200,0x0d},{78,200,0x0b},{79,200,0x09},
{80,200,0x08},{81,200,0x06},{82,200,0x05},{83,249,0x08},{84,332,0x0e},{85,249,0x05},{86,332,0x0a},{87,249,0x02},{88,500,0x11},{89,500,0x10},
{90,500,0x0e},{91,500,0x0c},{92,500,0x0a},{93,500,0x08},{94,500,0x07},{95,500,0x05},{96,500,0x04},{97,500,0x02},{98,1001,0x11},{99,1001,0x10},
{100,1001,0x0e},{101,1001,0x0c},{102,1001,0x0a},{103,1001,0x08},{104,1026,0x07},{105,1001,0x05},{106,1026,0x04},{107,1044,0x03},{108,1062,0x02},{109,1184,0x03},
{110,1283,0x03},{111,1310,0x02},{112,1466,0x03},{113,1502,0x02},{114,1621,0x02},{115,1925,0x04},{116,1925,0x03},{117,2200,0x04},{118,2200,0x03},{119,2369,0x03},
{120,2800,0x05},{121,2566,0x02},{122,3080,0x04},{123,3850,0x07},{124,3850,0x06},{125,3850,0x04},{126,3850,0x03},{127,3850,0x02},{128,7700,0x10},{129,5133,0x04},
{130,6844,0x09},{131,5600,0x03},{132,6844,0x07},{133,6844,0x05},{134,7700,0x06},{135,7700,0x04},{136,8800,0x06},{137,8000,0x04},{138,8800,0x03},{139,10266,0x04},
{140,10266,0x03},{141,10266,0x02},{142,12320,0x04},{143,15400,0x07},{144,15400,0x06},{145,15400,0x04},{146,15400,0x03},{147,20533,0x07},{148,20533,0x06},{149,20533,0x04},
{150,20533,0x03},{151,20533,0x02},{152,30800,0x09},{153,30800,0x07},{154,30800,0x06},{155,30800,0x04},{156,30800,0x03},{157,30800,0x02},{158,61601,0x10},{159,61601,0x0f},
{160,61601,0x0d},{161,61601,0x0b},{162,61601,0x09},{163,61601,0x07},{164,61601,0x06},{165,61601,0x04},{166,61601,0x03},{167,61601,0x02},{168,123203,0x10},{169,123203,0x0f},
{170,123203,0x0d}};


#endif

#ifdef  OV3610	//patch5.2.1@jhyu@OV3610
#define AE_Table_in     // 穝

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -