From 2bd7c83247a02d871be285f8af47a4676404b6b4 Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 6 Nov 2023 19:28:02 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=BF=9E=E6=8B=8D=E6=BC=8F=E5=9B=BE=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c index 490b28d06..e407ee9fa 100755 --- a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c +++ b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFast.c @@ -1149,7 +1149,7 @@ static void PhotoFast_CaptureStop(void) PhotoFast_Sliceencode2_Stop(); } -static void PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) +static INT32 PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) { HD_PATH_ID vprc_path; @@ -1177,7 +1177,7 @@ static void PhotoFast_CaptureStart(HD_VIDEO_FRAME *p_video_frame) } #if POWERON_FAST_SLICE_ENC_VER2 == ENABLE - PhotoFast_Sliceencode2_Enq_Frame(p_video_frame); + return PhotoFast_Sliceencode2_Enq_Frame(p_video_frame); #else PhotoFast_SliceEncode(vprc_path, p_video_frame); #endif @@ -1719,8 +1719,14 @@ THREAD_RETTYPE PhotoFast_FlowPreviewThread(void *arg) sf_ir_led_set(0, 0, 0, 0); } #endif - - PhotoFast_CaptureStart(&video_frame); + + if(PhotoFast_CaptureStart(&video_frame) == E_OK){ + g_u32PrvCapCnt++; + } + else{ + DBG_WRN("enq frame failed...\n"); + } + if (g_u32PrvCapCnt >= max_cnt) { g_bPreViewPullFlag = FALSE; }