📄 camera_tuning_para_ov7660.c
字号:
{
0x40020821, 0x00080402, 0x1814100C
},
{
0x60020821, 0x00080402, 0x1A16120E
},
{
0x60020821, 0x00080402, 0x1A16120E
}
},
//autodefect
{
{
0x00000001, 0x50285050, 0x006003A0, 0x00300050, 0x000008B7
},
{
0x00000001, 0x50285050, 0x006003A0, 0x00300050, 0x000008B7
},
{
0x00000001, 0x50285050, 0x006003A0, 0x00300050, 0x000008B7
}
},
//saturation
{
{
0x00000001, 0x1020E0F0, 0x081E1E1E, 0x080A0000
},
{
0x00000001, 0x1020E0F0, 0x12323432, 0x120A0000
},
{
0x00000001, 0x1020E0F0, 0x20464846, 0x200A0000
},
{
0x00000001, 0x1020E0F0, 0x245A5C5A, 0x240A0000
},
{
0x00000001, 0x1020E0F0, 0x284C4E4C, 0x240A0000
},
{
0x00000001, 0x1020E0F0, 0x284C4E4C, 0x240A0000
},
{
0x00000001, 0x1020E0F0, 0x284C4E4C, 0x240A0000
}
},
//contrast
{
{
0x00000009, 0x400F0000, 0xFF00003D
},
{
0x00000009, 0x40000000, 0xFF000040
},
{
0x00000009, 0x40E20000, 0xFF000045
}
}
},
//MShutter
{
0x000001F4, 0x00000000
},
{OV7660_CAMERA_SENSOR_REG_DEFAULT_VALUE,
OV7660_CAMERA_SENSOR_CCT_DEFAULT_VALUE,
}
};
const nvram_camera_3a_struct OV7660_CAMERA_3A_DEFAULT_VALUE=
{
/* AE */
/* ISO gain & value */
{{{0x40, 0x80, 0x100}, {100, 200, 400}},
/* metering commom */
{90,/* target_mean default 90 */
40,/* init_expo_idx */
0,/* flare_fix_flag */
8,/* flare_fix_offset */
3,/* flare_search_dn_ratio with base 1000 */
0,/* allowable flare offset */
1,/* preview & video gamma */
4,/* preview flare offset */
110,/* indoor & outdoor ev */
125,/* indoor min gamma mean */
135,/* outdoor max gamma mean */
140,/* sky detection Ev step 0.1 */
140,/* sky detection mean */
180,/* sky max window mean */
45,/* min_under_expo_bin 33~63, default 45 */
100,/* lowlight ev */
59,/* lowlight min target mean */
1,/* non_over_exposure_stretch_enabled */
0,/* full_dark_background_check_enabled */
1,/* backlight_stretch_enabled */
/* gamma 0 */
{{7,14,26,37,47,57,66,74,82,90,97,104,110,116,122,128,
133,138,143,147,152,156,160,164,168,172,175,179,182,185,188,191,
194,197,200,202,205,207,210,212,214,216,218,220,223,225,227,229,
231,233,235,236,238,240,241,243,244,246,247,249,250,251,253,254},
/* gamma 1 */
{10,19,34,47,60,71,82,91,100,108,115,122,129,135,141,146,
151,156,160,165,169,173,177,180,184,187,190,193,196,199,202,204,
207,209,212,214,216,218,220,222,224,226,227,229,230,232,233,235,
236,238,239,241,242,243,245,246,247,248,249,250,251,252,253,254},
/* gamma 2 */
{13,24,43,58,73,85,97,107,116,124,132,139,146,152,157,162,
167,171,176,180,184,187,191,194,197,200,202,205,207,209,212,214,
216,218,220,222,224,226,227,229,230,231,233,234,236,237,238,240,
241,242,243,244,245,246,247,248,249,250,251,251,252,253,254,254},
/* gamma 3 */
{16,29,52,70,87,100,112,122,132,140,148,155,161,166,171,176,
181,185,189,192,196,199,202,204,207,209,212,214,216,218,220,222,
224,226,227,229,230,231,233,234,235,236,237,238,240,241,242,243,
244,245,246,246,247,248,249,249,250,251,252,252,253,254,254,255},
/* gamma 4 */
{20,36,62,81,100,113,126,136,146,154,161,168,174,179,184,188,
192,195,199,202,205,208,210,213,215,217,219,221,223,225,226,228,
229,231,232,234,235,236,237,238,239,240,241,242,243,243,244,245,
246,247,248,248,249,250,250,251,251,252,252,253,253,254,254,255}},
1,/* reserve 1 */
0},/* reserve 2 */
/* preview custom mode */
{{1,/* ae_smooth_method 0:disabled, 1:old */
3,/* media filter tape */
110,/* ae_smooth_normal_last_weight with base 128 */
2,/* ae_smooth_normal_max_step with 0.1 ev step */
32,/* ae_smooth_fast_last_weight with base 128 */
40,/* ae_smooth_fast_max_plus_step with 0.1 ev step */
40,/* ae_smooth_fast_max_change_step with 0.1 ev step */
0,/* ae_smooth_fast_check_count */
1,/* ae_smooth_fast_back_check_count */
0,/* ae_smooth_fast_back_count */
0,/* ae_smooth_fast_transition_count */
15,/* ae_smooth_fast_th_fast */
2,/* ae_smooth_fast_th_normal */
0,/* smooth fast enable (6238) */
0,/* speed normal enable (6238) */
1,/* moving check enable (6238) */
3,/* aeSmoothMovingStopNormalCheckCount (6238) */
2,/* aeSmoothMovingStopFastCheckCount (6238) */
0,/* reserve 1 */
0},/* reserve 2 */
{/* video custom mode */
1,/* ae_smooth_method 0:disabled, 1:old */
3,/* media filter tape */
110,/* ae_smooth_normal_last_weight with base 128 */
2,/* ae_smooth_normal_max_step with 0.1 ev step */
32,/* ae_smooth_fast_last_weight with base 128 */
40,/* ae_smooth_fast_max_plus_step with 0.1 ev step */
40,/* ae_smooth_fast_max_change_step with 0.1 ev step */
0,/* ae_smooth_fast_check_count */
1,/* ae_smooth_fast_back_check_count */
0,/* ae_smooth_fast_back_count */
0,/* ae_smooth_fast_transition_count */
15,/* ae_smooth_fast_th_fast */
2,/* ae_smooth_fast_th_normal */
0,/* smooth fast enable (6238) */
0,/* speed normal enable (6238) */
1,/* moving check enable (6238) */
3,/* aeSmoothMovingStopNormalCheckCount (6238) */
2,/* aeSmoothMovingStopFastCheckCount (6238) */
0,/* reserve 1 */
0},/* reserve 2 */
{/* night custom mode */
1,/* ae_smooth_method 0:disabled, 1:old */
3,/* media filter tape */
110,/* ae_smooth_normal_last_weight with base 128 */
2,/* ae_smooth_normal_max_step with 0.1 ev step */
32,/* ae_smooth_fast_last_weight with base 128 */
40,/* ae_smooth_fast_max_plus_step with 0.1 ev step */
40,/* ae_smooth_fast_max_change_step with 0.1 ev step */
0,/* ae_smooth_fast_check_count */
1,/* ae_smooth_fast_back_check_count */
0,/* ae_smooth_fast_back_count */
0,/* ae_smooth_fast_transition_count */
15,/* ae_smooth_fast_th_fast */
2,/* ae_smooth_fast_th_normal */
0,/* smooth fast enable (6238) */
0,/* speed normal enable (6238) */
1,/* moving check enable (6238) */
3,/* aeSmoothMovingStopNormalCheckCount (6238) */
2,/* aeSmoothMovingStopFastCheckCount (6238) */
0,/* reserve 1 */
0}}},/* reserve 2 */
{
/* STRUCT: AWB */
{
{
0x8500E60A, 0x1E1E00FF, 0x00800000, 0x00000080, //CAM+0x280h
0x7E7080FA, 0x7E708096, 0x7EC57F6A, 0x7E627F31, //CAM+0x290h
0x7F387FEC, 0x7E3E7F1A, 0x7F608014, 0x7DF87ED4, //CAM+0x2A0h
0x7FF680D2, 0x7E487F10, 0x7F387F6A, 0x7E8E7F06, //CAM+0x2B0h
0x7F387FEC, 0x7E5A7EFE, 0x7F608014, 0x7E147EB8, //CAM+0x2C0h
0x7FF6809B, 0x7E617EF7, 0x801280B7, 0x7E617EF7, //CAM+0x2D0h
0x802D80D2, 0x7E617EF7, 0x800080D2, 0x7E667F6A, //CAM+0x2E0h
0x7F247F9C, 0x7ED47F74
},
/* ARRAY: AWB.LightSource[7][4] */
{
/* ARRAY: AWB.LightSource[0][4] *///A
{
0x0089, 0x0080, 0x00F6, 0x0080
},
/* ARRAY: AWB.LightSource[1][4] *///TL84
{
0x00A8, 0x0080, 0x00DC, 0x0080
},
/* ARRAY: AWB.LightSource[2][4] *///CWF
{
0x00BD, 0x0080, 0x00E3, 0x0080
},
/* ARRAY: AWB.LightSource[3][4] *///D65
{
0x00C0, 0x0080, 0x00B6, 0x0080
},
/* ARRAY: AWB.LightSource[4][4] *///D75
{
0x00DF, 0x0080, 0x00A0, 0x0080
},
/* ARRAY: AWB.LightSource[5][4] *///Flash
{
0x00C9, 0x0080, 0x009C, 0x0080
},
/* ARRAY: AWB.LightSource[6][4] *///Manual
{
0x00C0, 0x0080, 0x00B6, 0x0080
},
},
/*speed use 0x80 as base, maximum is 0x80*/
/*AWB.AWB_speed_fast */ 0x73, /*AWB.AWB_speed_mid */ 0x59, /*AWB.AWB_speed_slow*/0x1A,
/*AWB.AWB_thres_fast */0x14, /*AWB.AWB_thres_mid */0x0C,
{/*AWBPreference*//*0x80->1x*/
{ 0x80, 0x84, 0x80}, //A, 0x80 base
{ 0x80, 0x80, 0x80}, //TL84
{ 0x7B, 0x80, 0x80} //D
},
/* AWB.change_state_gain_thr */0x0A, /* AWB.change_state_frame_thr */0x0F,
/* AWB.stable_state_gain_thr */0x4, /* AWB.stable_state_frame_thr */0x03,
/* AWB.finetune_state_gain_thr */0x0A, /* AWB.finetune_state_frame_thr */0x03,
/* AWB.awbSmFrameNum */0x05, /* AWB.AWBPreferEn */0x01, /* AWB.MWBFixedWinEn */0x00,
/*AWB.ALightMethod*/0x0,
/*AWB.smallAWinEn*/0x1,/*AWB.smallTL84WinEn*/0x0,/*AWB.smallCWFWinEn*/0x0,/*AWB.smallDWinEn*/0x1,
/*AWB.awbCaptureFastConvergeEn*/0x1,
{0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
}
},
/* STRUCT: CCM */
{
/* ARRAY: CCM.LightSource[3][3][3] */
{
{
0x3B, 0xA5, 0x0A,
0x88, 0x2D, 0x85,
0x84, 0x97, 0x3B
},
{
0x3B, 0xA5, 0x0A,
0x88, 0x2D, 0x85,
0x84, 0x97, 0x3B
},
{
0x3D, 0xA7, 0x0A,
0x88, 0x2E, 0x86,
0x83, 0x9B, 0x3E
}
},
/*CCM.CCMPreferEn*/ 0x0
},
},
OV7660_CAMERA_AF_DEFAULT_VALUE
};
#endif //#if !defined(ISP_SUPPORT)
#endif //#if (defined(DRV_ISP_6238_SERIES))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -