📄 ae_table.c
字号:
#include "general.h"
#include "main.h"
#include "l1_3a.h"
#include "unistd.h"//Davis:pacth2.0
//Joe@2003.3.25 10:52 add begin
#include "JoeToEvb.h"
//Joe@2003.3.25 10:52 add end
//patch4.3@andrew@0618
//move table here for customer modify themself
///code unsigned long AE_com[11]={282, 230, 187, 152, 123, 100 , 81, 66, 53, 44, 35};
// EV 1.5 1.2 0.9 0.6 0.3 0 -0.3 -0.6 -0.9 -1.2 -1.5
//Davis@05.3.3 modify Ae add 10
code unsigned long AE_com[5]={230, 152, 81, 60, 36};//wendy@2004/9/10
//{344, 201, 100, 50, 26};//{26, 50, 100, 201, 344};
// EV -2.0 -1 0 1 2.0
UCHAR G_OLD_PICTURE_WB_Flag; //hx@2003.4.14 add for old picture
xdata long Ylevel,Yreff,Ylayer,Kback;//patch4.4@jhyu@release_getavglum
xdata char method;//patch4.4@jhyu@release_getavglum
extern unsigned int stdlumi;//patch4.4@jhyu@release_getavglum
UCHAR spw_flag =1,spw_flag0 =1; //liumr add
//herb for IGBT start @03/03/24
extern xdata UCHAR preflash;
//herb for IGBT end @03/03/24
AEstr *G_LVtbl;//patch4.4@jhyu@50/60HzTable
//patch4.3@andrew@0610
#ifdef MN39472
#ifdef TLV990
#define AE_Table_in //3 New sensor must add this Line
#define R_DS 0x68 //Direct Sunlight Gain Settings
#define Gr_DS 0x40
#define B_DS 0x54
#define Gb_DS 0x40
#define R_IDS 0x68 //Indirect Sunlight Gain Settings
#define Gr_IDS 0x40
#define B_IDS 0x54
#define Gb_IDS 0x40
//patch4.3@andrew@0610
#define R_Off 0x07
#define Gr_Off 0x02
#define B_Off 0xFF
#define Gb_Off 0x00
#define K_Indoor_stdlumi (USHORT) 0x44
#define K_Outdoor_stdlumi (USHORT)0x41
//patch4.3@andrew@0610
#if (K_MINIGAIN==15)
//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,200,152,1},{92,200,138,1},{93,200,125,1},{94,200,112,1},{95,200,98,1},{96,200,85,1},{97,300,150,1},{98,300,136,1},{99,300,123,1},
{100,300,110,1},{101,300,96,1},{102,300,83,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,600,150,1},{108,600,136,1},{109,600,123,1},
{110,600,110,1},{111,600,96,1},{112,600,83,1},{113,628,78,1},{114,673,78,1},{115,722,78,1},{116,773,78,1},{117,829,78,1},{118,888,78,1},{119,952,78,1},
{120,1020,78,1},{121,1094,78,1},{122,1172,78,1},{123,1256,78,1},{124,1346,78,1},{125,1443,78,1},{126,1547,78,1},{127,1658,78,1},{128,1777,78,1},{129,1904,78,1},
{130,2041,78,1},{131,2187,78,1},{132,2344,78,1},{133,2513,78,1},{134,2693,78,1},{135,2886,78,1},{136,3093,78,1},{137,3315,78,1},{138,3553,78,1},{139,3808,78,1},
{140,4082,78,1},{141,848,78,0},{142,909,78,0},{143,974,78,0},{144,1044,78,0},{145,1119,78,0},{146,1199,78,0},{147,1285,78,0},{148,1377,78,0},{149,1476,78,0},
{150,1582,78,0},{151,1696,78,0},{152,1817,78,0},{153,1948,78,0},{154,2088,78,0},{155,2238,78,0},{156,2398,78,0},{157,2570,78,0},{158,2755,78,0},{159,2953,78,0},
{160,3164,78,0},{161,3392,78,0},{162,3635,78,0},{163,3896,78,0},{164,4175,78,0},{165,4475,78,0},{166,4796,78,0},{167,5141,78,0},{168,5510,78,0},{169,5905,78,0},{170,6329,78,0}};
code AEstr LVtbl50[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,200,152,1},{92,200,138,1},{93,200,125,1},{94,200,112,1},{95,200,98,1},{96,200,85,1},{97,300,150,1},{98,300,136,1},{99,300,123,1},
{100,300,110,1},{101,300,96,1},{102,300,83,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,600,150,1},{108,600,136,1},{109,600,123,1},
{110,600,110,1},{111,600,96,1},{112,600,83,1},{113,628,78,1},{114,673,78,1},{115,722,78,1},{116,773,78,1},{117,829,78,1},{118,888,78,1},{119,952,78,1},
{120,1020,78,1},{121,1094,78,1},{122,1172,78,1},{123,1256,78,1},{124,1346,78,1},{125,1443,78,1},{126,1547,78,1},{127,1658,78,1},{128,1777,78,1},{129,1904,78,1},
{130,2041,78,1},{131,2187,78,1},{132,2344,78,1},{133,2513,78,1},{134,2693,78,1},{135,2886,78,1},{136,3093,78,1},{137,3315,78,1},{138,3553,78,1},{139,3808,78,1},
{140,4082,78,1},{141,848,78,0},{142,909,78,0},{143,974,78,0},{144,1044,78,0},{145,1119,78,0},{146,1199,78,0},{147,1285,78,0},{148,1377,78,0},{149,1476,78,0},
{150,1582,78,0},{151,1696,78,0},{152,1817,78,0},{153,1948,78,0},{154,2088,78,0},{155,2238,78,0},{156,2398,78,0},{157,2570,78,0},{158,2755,78,0},{159,2953,78,0},
{160,3164,78,0},{161,3392,78,0},{162,3635,78,0},{163,3896,78,0},{164,4175,78,0},{165,4475,78,0},{166,4796,78,0},{167,5141,78,0},{168,5510,78,0},{169,5905,78,0},{170,6329,78,0}};
#endif
#if (K_MINIGAIN==20)
//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,200,152,1},{92,200,138,1},{93,300,203,1},{94,300,190,1},{95,300,176,1},{96,300,163,1},{97,300,150,1},{98,300,136,1},{99,600,257,1},
{100,600,243,1},{101,600,230,1},{102,600,217,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,600,150,1},{108,600,136,1},{109,635,134,1},
{110,680,134,1},{111,729,134,1},{112,781,134,1},{113,838,134,1},{114,898,134,1},{115,962,134,1},{116,1031,134,1},{117,1105,134,1},{118,1184,134,1},{119,1269,134,1},
{120,264,134,0},{121,283,134,0},{122,303,134,0},{123,325,134,0},{124,348,134,0},{125,373,134,0},{126,400,134,0},{127,428,134,0},{128,459,134,0},{129,492,134,0},
{130,527,134,0},{131,565,134,0},{132,606,134,0},{133,649,134,0},{134,696,134,0},{135,746,134,0},{136,799,134,0},{137,857,134,0},{138,918,134,0},{139,984,134,0},
{140,1055,134,0},{141,1131,134,0},{142,1212,134,0},{143,1299,134,0},{144,1392,134,0},{145,1492,134,0},{146,1599,134,0},{147,1714,134,0},{148,1837,134,0},{149,1968,134,0},
{150,2110,134,0},{151,2261,134,0},{152,2423,134,0},{153,2597,134,0},{154,2784,134,0},{155,2983,134,0},{156,3198,134,0},{157,3427,134,0},{158,3673,134,0},{159,3937,134,0},
{160,4219,134,0},{161,4522,134,0},{162,4847,134,0},{163,5194,134,0},{164,5567,134,0},{165,5967,134,0},{166,6395,134,0},{167,6854,134,0},{168,7346,134,0},{169,7873,134,0},
{170,8438,134,0}};
code AEstr LVtbl50[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,200,152,1},{92,200,138,1},{93,300,203,1},{94,300,190,1},{95,300,176,1},{96,300,163,1},{97,300,150,1},{98,300,136,1},{99,600,257,1},
{100,600,243,1},{101,600,230,1},{102,600,217,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,600,150,1},{108,600,136,1},{109,635,134,1},
{110,680,134,1},{111,729,134,1},{112,781,134,1},{113,838,134,1},{114,898,134,1},{115,962,134,1},{116,1031,134,1},{117,1105,134,1},{118,1184,134,1},{119,1269,134,1},
{120,264,134,0},{121,283,134,0},{122,303,134,0},{123,325,134,0},{124,348,134,0},{125,373,134,0},{126,400,134,0},{127,428,134,0},{128,459,134,0},{129,492,134,0},
{130,527,134,0},{131,565,134,0},{132,606,134,0},{133,649,134,0},{134,696,134,0},{135,746,134,0},{136,799,134,0},{137,857,134,0},{138,918,134,0},{139,984,134,0},
{140,1055,134,0},{141,1131,134,0},{142,1212,134,0},{143,1299,134,0},{144,1392,134,0},{145,1492,134,0},{146,1599,134,0},{147,1714,134,0},{148,1837,134,0},{149,1968,134,0},
{150,2110,134,0},{151,2261,134,0},{152,2423,134,0},{153,2597,134,0},{154,2784,134,0},{155,2983,134,0},{156,3198,134,0},{157,3427,134,0},{158,3673,134,0},{159,3937,134,0},
{160,4219,134,0},{161,4522,134,0},{162,4847,134,0},{163,5194,134,0},{164,5567,134,0},{165,5967,134,0},{166,6395,134,0},{167,6854,134,0},{168,7346,134,0},{169,7873,134,0},
{170,8438,134,0}};
#endif
//patch4.4@andrew@Mn39472
#if (K_MINIGAIN==22)
//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,300,230,1},{92,300,217,1},{93,300,203,1},{94,300,190,1},{95,300,176,1},{96,300,163,1},{97,600,283,1},{98,600,270,1},{99,600,257,1},
{100,600,243,1},{101,600,230,1},{102,600,217,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,608,152,1},{108,651,152,1},{109,698,152,1},
{110,748,152,1},{111,802,152,1},{112,860,152,1},{113,921,152,1},{114,987,152,1},{115,1058,152,1},{116,1134,152,1},{117,1216,152,1},{118,1303,152,1},{119,1396,152,1},
{120,290,152,0},{121,311,152,0},{122,333,152,0},{123,357,152,0},{124,383,152,0},{125,410,152,0},{126,440,152,0},{127,471,152,0},{128,505,152,0},{129,541,152,0},
{130,580,152,0},{131,622,152,0},{132,666,152,0},{133,714,152,0},{134,766,152,0},{135,820,152,0},{136,879,152,0},{137,942,152,0},{138,1010,152,0},{139,1083,152,0},
{140,1160,152,0},{141,1244,152,0},{142,1333,152,0},{143,1428,152,0},{144,1531,152,0},{145,1641,152,0},{146,1759,152,0},{147,1885,152,0},{148,2020,152,0},{149,2165,152,0},
{150,2321,152,0},{151,2487,152,0},{152,2666,152,0},{153,2857,152,0},{154,3062,152,0},{155,3282,152,0},{156,3517,152,0},{157,3770,152,0},{158,4040,152,0},{159,4330,152,0},
{160,4641,152,0},{161,4974,152,0},{162,5331,152,0},{163,5714,152,0},{164,6124,152,0},{165,6564,152,0},{166,7035,152,0},{167,7540,152,0},{168,8081,152,0},{169,8661,152,0},
{170,9282,152,0}};
code AEstr LVtbl50[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,200,165,1},{91,300,230,1},{92,300,217,1},{93,300,203,1},{94,300,190,1},{95,300,176,1},{96,300,163,1},{97,600,283,1},{98,600,270,1},{99,600,257,1},
{100,600,243,1},{101,600,230,1},{102,600,217,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,600,163,1},{107,608,152,1},{108,651,152,1},{109,698,152,1},
{110,748,152,1},{111,802,152,1},{112,860,152,1},{113,921,152,1},{114,987,152,1},{115,1058,152,1},{116,1134,152,1},{117,1216,152,1},{118,1303,152,1},{119,1396,152,1},
{120,290,152,0},{121,311,152,0},{122,333,152,0},{123,357,152,0},{124,383,152,0},{125,410,152,0},{126,440,152,0},{127,471,152,0},{128,505,152,0},{129,541,152,0},
{130,580,152,0},{131,622,152,0},{132,666,152,0},{133,714,152,0},{134,766,152,0},{135,820,152,0},{136,879,152,0},{137,942,152,0},{138,1010,152,0},{139,1083,152,0},
{140,1160,152,0},{141,1244,152,0},{142,1333,152,0},{143,1428,152,0},{144,1531,152,0},{145,1641,152,0},{146,1759,152,0},{147,1885,152,0},{148,2020,152,0},{149,2165,152,0},
{150,2321,152,0},{151,2487,152,0},{152,2666,152,0},{153,2857,152,0},{154,3062,152,0},{155,3282,152,0},{156,3517,152,0},{157,3770,152,0},{158,4040,152,0},{159,4330,152,0},
{160,4641,152,0},{161,4974,152,0},{162,5331,152,0},{163,5714,152,0},{164,6124,152,0},{165,6564,152,0},{166,7035,152,0},{167,7540,152,0},{168,8081,152,0},{169,8661,152,0},
{170,9282,152,0}};
#endif
//patch4.4@andrew@Mn39472
#if (K_MINIGAIN==24)
//patch4.4@jhyu@50/60HzTable
code AEstr LVtbl60[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
{80,200,299,1},{81,200,285,1},{82,200,272,1},{83,200,259,1},{84,200,245,1},{85,200,232,1},{86,200,219,1},{87,200,205,1},{88,200,192,1},{89,200,178,1},
{90,300,243,1},{91,300,230,1},{92,300,217,1},{93,300,203,1},{94,300,190,1},{95,300,176,1},{96,600,297,1},{97,600,283,1},{98,600,270,1},{99,600,257,1},
{100,600,243,1},{101,600,230,1},{102,600,217,1},{103,600,203,1},{104,600,190,1},{105,600,176,1},{106,619,169,1},{107,663,169,1},{108,711,169,1},{109,762,169,1},
{110,816,169,1},{111,875,169,1},{112,938,169,1},{113,1005,169,1},{114,1077,169,1},{115,1154,169,1},{116,1237,169,1},{117,1326,169,1},{118,1421,169,1},{119,1523,169,1},
{120,316,169,0},{121,339,169,0},{122,363,169,0},{123,390,169,0},{124,418,169,0},{125,448,169,0},{126,480,169,0},{127,514,169,0},{128,551,169,0},{129,591,169,0},
{130,633,169,0},{131,678,169,0},{132,727,169,0},{133,779,169,0},{134,835,169,0},{135,895,169,0},{136,959,169,0},{137,1028,169,0},{138,1102,169,0},{139,1181,169,0},
{140,1266,169,0},{141,1357,169,0},{142,1454,169,0},{143,1558,169,0},{144,1670,169,0},{145,1790,169,0},{146,1919,169,0},{147,2056,169,0},{148,2204,169,0},{149,2362,169,0},
{150,2532,169,0},{151,2713,169,0},{152,2908,169,0},{153,3117,169,0},{154,3340,169,0},{155,3580,169,0},{156,3837,169,0},{157,4113,169,0},{158,4408,169,0},{159,4724,169,0},
{160,5063,169,0},{161,5426,169,0},{162,5816,169,0},{163,6233,169,0},{164,6681,169,0},{165,7160,169,0},{166,7674,169,0},{167,8225,169,0},{168,8815,169,0},{169,9448,169,0},
{170,10126,169,0}};
code AEstr LVtbl50[101]=
{{70,200,433,1},{71,200,419,1},{72,200,406,1},{73,200,393,1},{74,200,379,1},{75,200,366,1},{76,200,352,1},{77,200,339,1},{78,200,326,1},{79,200,312,1},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -