1.根据prd将图片logo改为小logo
This commit is contained in:
parent
328213fda5
commit
943e269b3d
|
@ -1130,9 +1130,9 @@ void UiDateImprint_AttachLogo(DS_STAMP_INFOR *stampInfo, HD_VIDEO_FRAME* Img)
|
||||||
param.engine = 0;
|
param.engine = 0;
|
||||||
param.dst_img = *Img;
|
param.dst_img = *Img;
|
||||||
param.dst_region.x = 0;
|
param.dst_region.x = 0;
|
||||||
param.dst_region.y = Img->dim.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]*3;
|
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]*3;
|
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);
|
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);
|
vf_gfx_scale(¶m, 1);
|
||||||
|
|
|
@ -828,7 +828,7 @@ INT32 PhotoFastCapDateImprint_GenYuvData(HD_VIDEO_FRAME *pDstImg)
|
||||||
x_curr_ofs = param_text.dst_pos.x;
|
x_curr_ofs = param_text.dst_pos.x;
|
||||||
|
|
||||||
//logo stamp
|
//logo stamp
|
||||||
UiDateImprint_AttachLogo(src_img.dim.h * 3, pDstImg);
|
UiDateImprint_AttachLogo(src_img.dim.h, pDstImg);
|
||||||
|
|
||||||
//moon stamp
|
//moon stamp
|
||||||
year = DateTime_Get(DATETIME_YEAR);
|
year = DateTime_Get(DATETIME_YEAR);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user