From 943e269b3d73c5b3eedff11e69b37b828858dc9a Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 25 Sep 2023 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=A0=B9=E6=8D=AEprd=E5=B0=86=E5=9B=BE?= =?UTF-8?q?=E7=89=87logo=E6=94=B9=E4=B8=BA=E5=B0=8Flogo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../source/cardv/SrcCode/UIApp/Photo/UIDateImprint.c | 6 +++--- .../cardv/SrcCode/UIApp/PhotoFast/PhotoFastCapDateImprint.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/application/source/cardv/SrcCode/UIApp/Photo/UIDateImprint.c b/code/application/source/cardv/SrcCode/UIApp/Photo/UIDateImprint.c index fdc5ca1de..09c3a3be2 100755 --- a/code/application/source/cardv/SrcCode/UIApp/Photo/UIDateImprint.c +++ b/code/application/source/cardv/SrcCode/UIApp/Photo/UIDateImprint.c @@ -1130,9 +1130,9 @@ void UiDateImprint_AttachLogo(DS_STAMP_INFOR *stampInfo, HD_VIDEO_FRAME* Img) param.engine = 0; param.dst_img = *Img; param.dst_region.x = 0; - param.dst_region.y = Img->dim.h - stampInfo->Img.ph[0]*3; - param.dst_region.w = (g_WaterLogo_yuv420_486.uiWidth / g_WaterLogo_yuv420_486.uiHeight) * stampInfo->Img.ph[0]*3; - param.dst_region.h = stampInfo->Img.ph[0]*3; + param.dst_region.y = Img->dim.h - stampInfo->Img.ph[0]; + param.dst_region.w = (g_WaterLogo_yuv420_486.uiWidth / g_WaterLogo_yuv420_486.uiHeight) * stampInfo->Img.ph[0]; + param.dst_region.h = stampInfo->Img.ph[0]; DBG_IND("[%s:%d]param.dst_region:%d %d %d %d\n", __FUNCTION__, __LINE__, param.dst_region.x, param.dst_region.y, param.dst_region.w, param.dst_region.h); vf_gfx_scale(¶m, 1); diff --git a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFastCapDateImprint.c b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFastCapDateImprint.c index ffc9b59ac..88a841c9c 100755 --- a/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFastCapDateImprint.c +++ b/rtos/code/application/source/cardv/SrcCode/UIApp/PhotoFast/PhotoFastCapDateImprint.c @@ -828,7 +828,7 @@ INT32 PhotoFastCapDateImprint_GenYuvData(HD_VIDEO_FRAME *pDstImg) x_curr_ofs = param_text.dst_pos.x; //logo stamp - UiDateImprint_AttachLogo(src_img.dim.h * 3, pDstImg); + UiDateImprint_AttachLogo(src_img.dim.h, pDstImg); //moon stamp year = DateTime_Get(DATETIME_YEAR);