1.根据周总的方式,最小350ms,最大420ms之间调整AE,并修改AE table

This commit is contained in:
payton 2023-07-12 09:41:15 +08:00
parent 8130eb8d5d
commit a10147e64d
3 changed files with 26 additions and 11 deletions

View File

@ -1100,15 +1100,15 @@ static UINT32 ae_adc_tbl[57][3] = {
{945, 99, 1130}, {945, 99, 1130},
{930, 103, 1000}, {930, 103, 1000},
{910, 126, 1070}, {910, 126, 1070},
{900, 135, 1020}, {900, 203, 1020},
{885, 203, 1010}, {885, 267, 1000},
{870, 381, 1020}, {870, 320, 1010},
{859, 499, 1000}, {859, 524, 1000},
{854, 512, 1010}, {854, 826, 1000},
{849, 826, 1010}, {849, 1128, 1000},
{845, 1021, 1000}, {845, 1372, 1000},
{842, 1128, 1000}, {842, 2236, 1000},
{839, 1372, 1000}, {839, 3459, 1000},
{830, 2236, 1000}, {830, 2236, 1000},
{828, 3459, 1000}, {828, 3459, 1000},
{824, 5213, 1000}, {824, 5213, 1000},

View File

@ -1446,7 +1446,7 @@ THREAD_RETTYPE PhotoFast_FlowPreviewThread(void *arg)
PhotoFast_SliceEncode2_Open(vprc_path, max_cnt); PhotoFast_SliceEncode2_Open(vprc_path, max_cnt);
nvt_cmdsys_runcmd("ae set_speed 0 128 600 600 100 "); nvt_cmdsys_runcmd("ae set_speed 0 128 700 700 100 ");
#endif #endif
#if (FASTCAPTURE_AE_DEBUG == 1) #if (FASTCAPTURE_AE_DEBUG == 1)
@ -1999,6 +1999,7 @@ void Set_NIGHTMODE(UINT32 id, UINT8 isSnapVideo)
void Set_AEMODE(UINT32 id) void Set_AEMODE(UINT32 id)
{ {
AET_MANUAL ae_manual = {0}; AET_MANUAL ae_manual = {0};
AWBT_MANUAL manual = {0};
AWBT_STATUS status = {0}; AWBT_STATUS status = {0};
ISPT_C_GAIN c_gain = {0}; ISPT_C_GAIN c_gain = {0};
HD_RESULT hd_ret; HD_RESULT hd_ret;
@ -2067,6 +2068,20 @@ void Set_AEMODE(UINT32 id)
c_gain.gain[1] = status.status.cur_g_gain; c_gain.gain[1] = status.status.cur_g_gain;
c_gain.gain[2] = status.status.cur_b_gain; c_gain.gain[2] = status.status.cur_b_gain;
vendor_isp_set_common(ISPT_ITEM_C_GAIN, &c_gain); vendor_isp_set_common(ISPT_ITEM_C_GAIN, &c_gain);
manual.id = 0;
if (id == 1)
{
manual.manual.en = 1;
manual.manual.r_gain = status.status.cur_r_gain;
manual.manual.g_gain = status.status.cur_g_gain;
manual.manual.b_gain = status.status.cur_b_gain;
}
else
{
manual.manual.en = 0;
}
vendor_isp_set_awb(AWBT_ITEM_MANUAL, &manual);
} }
} }
if ((hd_ret = vendor_isp_uninit()) != HD_OK) { if ((hd_ret = vendor_isp_uninit()) != HD_OK) {

View File

@ -9,7 +9,7 @@
#define FLGPHOTOFAST_SHUTDOWN 0x00000002 #define FLGPHOTOFAST_SHUTDOWN 0x00000002
#define FLGPHOTOFAST_MASK FLGPTN_BIT_ALL #define FLGPHOTOFAST_MASK FLGPTN_BIT_ALL
#define PHOTOFAST_AE_PRESET_FRAME_CNT 6 /* lock AE */ #define PHOTOFAST_AE_PRESET_FRAME_CNT 11 /* lock AE */
#define PHOTOFAST_START_CAP_FRAME_CNT (PHOTOFAST_AE_PRESET_FRAME_CNT + 3*2) /* capture frame, it should be larger than PHOTOFAST_AE_PRESET_FRAME_CNT by 3 */ #define PHOTOFAST_START_CAP_FRAME_CNT (PHOTOFAST_AE_PRESET_FRAME_CNT + 3*2) /* capture frame, it should be larger than PHOTOFAST_AE_PRESET_FRAME_CNT by 3 */
#define PHOTOFAST_HD_PUSH_PULL_TIMEOUT_MS 3000 #define PHOTOFAST_HD_PUSH_PULL_TIMEOUT_MS 3000