Home
last modified time | relevance | path

Searched refs:u32Width (Results 1 – 25 of 86) sorted by relevance

1234

/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
Dhi_buffer.h32 __inline static HI_VOID COMMON_GetPicBufferConfig(HI_U32 u32Width, HI_U32 u32Height, in COMMON_GetPicBufferConfig() argument
49 if ((u32Width > HI_MAXINUM_LIMIT) || (u32Height > HI_MAXINUM_LIMIT)) { in COMMON_GetPicBufferConfig()
80 u32MainStride = HI_ALIGN_UP((u32Width * u32BitWidth + 7) >> 3, u32Align); in COMMON_GetPicBufferConfig()
96 if (u32Width <= 4096) { in COMMON_GetPicBufferConfig()
98 } else if (u32Width <= 8192) { in COMMON_GetPicBufferConfig()
105 u32MainStride = HI_ALIGN_UP(u32Width, u32Align); in COMMON_GetPicBufferConfig()
154 __inline static HI_U32 COMMON_GetPicBufferSize(HI_U32 u32Width, HI_U32 u32Height, in COMMON_GetPicBufferSize() argument
160 …COMMON_GetPicBufferConfig(u32Width, u32Height, enPixelFormat, enBitWidth, enCmpMode, u32Align, &st… in COMMON_GetPicBufferSize()
165 __inline static HI_U32 VI_GetRawBufferSizeEx(HI_U32 u32Width, HI_U32 u32Height, in VI_GetRawBufferSizeEx() argument
174 if ((u32Width > HI_MAXINUM_LIMIT) || (u32Height > HI_MAXINUM_LIMIT)) { in VI_GetRawBufferSizeEx()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/
Dhi_buffer.h32 __inline static HI_VOID COMMON_GetPicBufferConfig(HI_U32 u32Width, HI_U32 u32Height, in COMMON_GetPicBufferConfig() argument
49 if ((u32Width > HI_MAXINUM_LIMIT) || (u32Height > HI_MAXINUM_LIMIT)) { in COMMON_GetPicBufferConfig()
80 u32MainStride = HI_ALIGN_UP((u32Width * u32BitWidth + 7) >> 3, u32Align); in COMMON_GetPicBufferConfig()
96 if (u32Width <= 4096) { in COMMON_GetPicBufferConfig()
98 } else if (u32Width <= 8192) { in COMMON_GetPicBufferConfig()
105 u32MainStride = HI_ALIGN_UP(u32Width, u32Align); in COMMON_GetPicBufferConfig()
154 __inline static HI_U32 COMMON_GetPicBufferSize(HI_U32 u32Width, HI_U32 u32Height, in COMMON_GetPicBufferSize() argument
160 …COMMON_GetPicBufferConfig(u32Width, u32Height, enPixelFormat, enBitWidth, enCmpMode, u32Align, &st… in COMMON_GetPicBufferSize()
165 __inline static HI_U32 VI_GetRawBufferSizeEx(HI_U32 u32Width, HI_U32 u32Height, in VI_GetRawBufferSizeEx() argument
174 if ((u32Width > HI_MAXINUM_LIMIT) || (u32Height > HI_MAXINUM_LIMIT)) { in VI_GetRawBufferSizeEx()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/color_space_convert/smp/
Dsmp_color_space_convert.c195 img->u32Width = width; in IveImgCreate()
197 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate()
300 HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) in SampleIveColorConvertInit() argument
306 …PLE_COMM_IVE_CreateImage(&g_stColorSpaceInfo->stSrc, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Height); in SampleIveColorConvertInit()
348 HI_ASSERT(img->au32Stride[0] >= img->u32Width); in ImgRgbToBgr()
349 HI_ASSERT(img->au32Stride[1] >= img->u32Width); in ImgRgbToBgr()
350 …HI_ASSERT(img->au32Stride[2] >= img->u32Width); // 2: au32Stride array subscript, not out of bounds in ImgRgbToBgr()
356 for (j = 0; j < img->u32Width; j++) { in ImgRgbToBgr()
383 img->u32Width = frm->stVFrame.u32Width; in FrmToOrigImg()
418 frm->stVFrame.u32Width = img->u32Width; in OrigImgToFrm()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/ive/sample/
Dsample_ive_test_memory.c56 HI_U32 u32Width, HI_U32 u32Height) in SAMPLE_IVE_TestMemory_Init() argument
63 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stSrc1), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heig… in SAMPLE_IVE_TestMemory_Init()
67 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stSrc2), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heig… in SAMPLE_IVE_TestMemory_Init()
71 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stDst), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heigh… in SAMPLE_IVE_TestMemory_Init()
121 stSrcData.u32Width = pstTestMem->stSrc1.u32Width; in SAMPLE_IVE_TestMemoryProc()
127 stDstData.u32Width = pstTestMem->stSrc2.u32Width; in SAMPLE_IVE_TestMemoryProc()
152 if (pu32Hist[0] != pstTestMem->stSrc1.u32Width * pstTestMem->stSrc1.u32Height) { in SAMPLE_IVE_TestMemoryProc()
177 HI_U32 u32Width = IVE_D1_WIDTH; in SAMPLE_IVE_TestMemory() local
194 s32Ret = SAMPLE_IVE_TestMemory_Init(&s_stTestMem, achSrcFile, achDstFile, u32Width, u32Height); in SAMPLE_IVE_TestMemory()
Dsample_ive_gmm2.c114 static HI_S32 SAMPLE_IVE_Gmm2_Init(SAMPLE_IVE_GMM2_S *pstGmm2, HI_U32 u32Width, HI_U32 u32Height, in SAMPLE_IVE_Gmm2_Init() argument
124 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->astSrc[i]), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heig… in SAMPLE_IVE_Gmm2_Init()
129 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stFg), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_Gmm2_Init()
131 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stBg), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_Gmm2_Init()
133 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stFactor), IVE_IMAGE_TYPE_U16C1, u32Width, u32Heig… in SAMPLE_IVE_Gmm2_Init()
137 for (j = 0; j < pstGmm2->stFactor.u32Width; j++) { in SAMPLE_IVE_Gmm2_Init()
143 …AMPLE_COMM_IVE_CreateImage(&(pstGmm2->stMatchModelInfo), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_Gmm2_Init()
146 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stFgMask), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heigh… in SAMPLE_IVE_Gmm2_Init()
148 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stDiffImg), IVE_IMAGE_TYPE_U8C1, u32Width, u32Heig… in SAMPLE_IVE_Gmm2_Init()
150 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stMagImg), IVE_IMAGE_TYPE_U16C1, u32Width, u32Heig… in SAMPLE_IVE_Gmm2_Init()
[all …]
Dsample_ive_st_and_lk.c73 stDataSrc.u32Width = pstSrc->u32Width; in SAMPLE_IVE_St_Lk_DMA()
79 stDataDst.u32Width = pstDst->u32Width; in SAMPLE_IVE_St_Lk_DMA()
135 …HI_S32 SAMPLE_IVE_St_Lk_Init(SAMPLE_IVE_ST_LK_S *pstStLk, HI_CHAR *pchSrcFileName, HI_U32 u32Width, in SAMPLE_IVE_St_Lk_Init() argument
154 …SAMPLE_COMM_IVE_CreateImage(&pstStLk->astPrevPyr[i], IVE_IMAGE_TYPE_U8C1, u32Width >> i, u32Height… in SAMPLE_IVE_St_Lk_Init()
159 pstStLk->astPrevPyr[i].u32Width, pstStLk->astPrevPyr[i].u32Height); in SAMPLE_IVE_St_Lk_Init()
188 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstStLk->stStSrc, IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_St_Lk_Init()
191 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstStLk->stStDst, IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_St_Lk_Init()
195 …u32Size = 4 * SAMPLE_COMM_IVE_CalcStride(u32Width, IVE_ALIGN) * u32Height + sizeof(IVE_ST_MAX_EIG_… in SAMPLE_IVE_St_Lk_Init()
211 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstStLk->stSrcYuv, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Hei… in SAMPLE_IVE_St_Lk_Init()
235 pstStLk->stPyrTmp.u32Width = pstSrc->u32Width; in SAMPLE_IVE_St_Lk_PyrDown()
Dsample_ive_sobel_with_cached_mem.c66 …I_S32 SAMPLE_IVE_Sobel_Init(SAMPLE_IVE_SOBEL_S *pstSobel, HI_CHAR *pchSrcFileName, HI_U32 u32Width, in SAMPLE_IVE_Sobel_Init() argument
82 …s32Ret = SAMPLE_COMM_IVE_CreateImageByCached(&(pstSobel->stSrc1), IVE_IMAGE_TYPE_U8C1, u32Width, u… in SAMPLE_IVE_Sobel_Init()
85 …s32Ret = SAMPLE_COMM_IVE_CreateImageByCached(&(pstSobel->stSrc2), IVE_IMAGE_TYPE_U8C1, u32Width, u… in SAMPLE_IVE_Sobel_Init()
88 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstH1), IVE_IMAGE_TYPE_S16C1, u32Width, u32Heig… in SAMPLE_IVE_Sobel_Init()
91 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstH2), IVE_IMAGE_TYPE_S16C1, u32Width, u32Heig… in SAMPLE_IVE_Sobel_Init()
94 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstV1), IVE_IMAGE_TYPE_S16C1, u32Width, u32Heig… in SAMPLE_IVE_Sobel_Init()
97 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstV2), IVE_IMAGE_TYPE_S16C1, u32Width, u32Heig… in SAMPLE_IVE_Sobel_Init()
216 HI_U32 u32Width = IVE_D1_WIDTH; in SAMPLE_IVE_Sobel() local
226 s32Ret = SAMPLE_IVE_Sobel_Init(&s_stSobel, achSrcFileName, u32Width, u32Height); in SAMPLE_IVE_Sobel()
Dsample_ive_od.c63 static HI_S32 SAMPLE_IVE_Od_Init(SAMPLE_IVE_OD_S *pstOd, HI_U32 u32Width, HI_U32 u32Height) in SAMPLE_IVE_Od_Init() argument
67 s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstOd->stSrc, IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_Od_Init()
69 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstOd->stInteg, IVE_IMAGE_TYPE_U64C1, u32Width, u32Height); in SAMPLE_IVE_Od_Init()
72 pstOd->u32W = u32Width / IVE_CHAR_CALW; in SAMPLE_IVE_Od_Init()
170 stSrc.u32Width = stExtFrmInfo.stVFrame.u32Width; in SAMPLE_IVE_OdProc()
176 stDst.u32Width = stExtFrmInfo.stVFrame.u32Width; in SAMPLE_IVE_OdProc()
292 s32Ret = SAMPLE_IVE_Od_Init(&s_stOd, stSize.u32Width, stSize.u32Height); in SAMPLE_IVE_Od()
Dsample_ive_md.c71 static HI_S32 SAMPLE_IVE_Md_Init(SAMPLE_IVE_MD_S *pstMd, HI_U32 u32Width, HI_U32 u32Height) in SAMPLE_IVE_Md_Init() argument
80 … s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstMd->astImg[i], IVE_IMAGE_TYPE_U8C1, u32Width, u32Height); in SAMPLE_IVE_Md_Init()
93 pstMd->stMdAttr.u32Width = u32Width; in SAMPLE_IVE_Md_Init()
167 …&(pstMd->stRegion), IVE_RECT_NUM, SAMPLE_IVE_MD_AREA_THR_STEP, pstMdAttr->u32Width, pstMdAttr->u32… in SAMPLE_IVE_MdProc()
168 stBaseFrmInfo.stVFrame.u32Width, stBaseFrmInfo.stVFrame.u32Height); in SAMPLE_IVE_MdProc()
253 s32Ret = SAMPLE_IVE_Md_Init(&s_stMd, stSize.u32Width, stSize.u32Height); in SAMPLE_IVE_Md()
Dsample_ive_canny.c67 HI_CHAR *pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) in SAMPLE_IVE_Canny_Init() argument
93 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stSrc, IVE_IMAGE_TYPE_U8C1, u32Width, u32Heigh… in SAMPLE_IVE_Canny_Init()
95 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stEdge, IVE_IMAGE_TYPE_U8C1, u32Width, u32Heig… in SAMPLE_IVE_Canny_Init()
97 …s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stMag, IVE_IMAGE_TYPE_U16C1, u32Width, u32Heig… in SAMPLE_IVE_Canny_Init()
200 HI_U16 u32Width = IVE_D1_WIDTH; in SAMPLE_IVE_Canny() local
228 …s32Ret = SAMPLE_IVE_Canny_Init(&s_stCannyInfo, achSrcFileName, achDstFileName, u32Width, u32Height… in SAMPLE_IVE_Canny()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/mpp_help/src/
Dosd_img.c367 pstOsdParam->stMaxSize.u32Width = 0; in HI_OSD_Stop()
448 rgnAttr->stContent.stFontSize.u32Width = OSD_FONT_WIDTH_DEF; in TxtRgnInit()
483 stImageSize.u32Width = stChnAttr.u32Width; in OSD_Ratio2Absolute()
495 stImageSize.u32Width = stChnAttr.stRect.u32Width; in OSD_Ratio2Absolute()
505 pstAbsCoor->s32X = HiAppcommAlign(stImageSize.u32Width * pstRatioCoor->s32X / MULTIPLE_NUM, 2); in OSD_Ratio2Absolute()
593 for (s32BmCol = 0; s32BmCol < pstContent->stBitmap.u32Width; ++s32BmCol) { in OSD_Bitmap_Cal()
603 HI_S32 s32CharIdx = s32BmCol / pstContent->stFontSize.u32Width; in OSD_Bitmap_Cal()
613 HI_S32 s32CharCol = (s32BmCol - (pstContent->stFontSize.u32Width * s32CharIdx)) * in OSD_Bitmap_Cal()
614 OSD_LIB_FONT_W / pstContent->stFontSize.u32Width; in OSD_Bitmap_Cal()
644 pstContent->stBitmap.u32Width = pstContent->stFontSize.u32Width * in OSD_Generate_Bitmap()
[all …]
Dive_img.c61 img->u32Width = frm->stVFrame.u32Width; in FrmToOrigImg()
140 img->u32Width = width; in IveImgCreate()
142 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate()
217 HI_ASSERT(boxWidth > 0 && boxWidth <= src->u32Width); in ImgYuvCrop()
220 HI_ASSERT(src->au32Stride[0] >= src->u32Width); in ImgYuvCrop()
310 frm->stVFrame.u32Width = img->u32Width; in OrigImgToFrm()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/
Dsample_comm_vo.c221 HI_U32 u32Width = 0; in SAMPLE_COMM_VO_StartChn() local
249 u32Width = stLayerAttr.stImageSize.u32Width; in SAMPLE_COMM_VO_StartChn()
251 SAMPLE_PRT("u32Width:%d, u32Height:%d, u32Square:%d\n", u32Width, u32Height, u32Square); in SAMPLE_COMM_VO_StartChn()
253 … stChnAttr.stRect.s32X = HI_ALIGN_DOWN((u32Width / u32Square) * (i % u32Square), 2); /* 2 align */ in SAMPLE_COMM_VO_StartChn()
255 stChnAttr.stRect.u32Width = HI_ALIGN_DOWN(u32Width / u32Square, 2); /* 2 align */ in SAMPLE_COMM_VO_StartChn()
542 s32Ret = SAMPLE_COMM_VO_GetWH(stVoPubAttr.enIntfSync, &stLayerAttr.stDispRect.u32Width, in SAMPLE_COMM_VO_StartVO()
563 stLayerAttr.stImageSize.u32Width = stLayerAttr.stDispRect.u32Width; in SAMPLE_COMM_VO_StartVO()
566 stLayerAttr.stImageSize.u32Width = stLayerAttr.stDispRect.u32Width = 240; /* width: 240 */ in SAMPLE_COMM_VO_StartVO()
663 HI_U32 u32Frmt, u32Width, u32Height; in SAMPLE_COMM_VO_StartLayerChn() local
672 s32Ret = SAMPLE_COMM_VO_GetWH(enIntfSync, &u32Width, &u32Height, &u32Frmt); in SAMPLE_COMM_VO_StartLayerChn()
[all …]
Dsample_comm_region.c88 pstBitmap->u32Width = Surface.u16Width; in REGION_MST_LoadBmp()
104 for (j = 0; j < pstBitmap->u32Width; j++) { in REGION_MST_LoadBmp()
118 for (j = 0; j < pstBitmap->u32Width / 4; j++) { /* 4 align */ in REGION_MST_LoadBmp()
174 …CreateSurfaceByCanvas(filename, &Surface, (HI_U8 *)(pstBitmap->pData), pstSize->u32Width, pstSize-… in REGION_MST_UpdateCanvas()
177 pstBitmap->u32Width = Surface.u16Width; in REGION_MST_UpdateCanvas()
190 for (j = 0; j < pstBitmap->u32Width; j++) { in REGION_MST_UpdateCanvas()
238 stRegion.unAttr.stOverlay.stSize.u32Width = RECT_WIDTH; in SAMPLE_REGION_CreateOverLay()
261 stRegion.unAttr.stOverlayEx.stSize.u32Width = RECT_WIDTH; in SAMPLE_REGION_CreateOverLayEx()
497 stChnAttr.unChnAttr.stOverlayChn.stInvertColor.stInvColArea.u32Width = 16; /* set 16 */ in SAMPLE_COMM_REGION_AttachToChn()
518 stChnAttr.unChnAttr.stCoverChn.stRect.u32Width = RECT_WIDTH; in SAMPLE_COMM_REGION_AttachToChn()
[all …]
Dsample_comm_sys.c147 pstSize->u32Width = 800; /* PIC_D1_MIPI width is 800 */ in SAMPLE_COMM_SYS_GetPicSize()
152 pstSize->u32Width = 352; /* PIC_CIF width is 352 */ in SAMPLE_COMM_SYS_GetPicSize()
157 pstSize->u32Width = 640; /* PIC_360P width is 640 */ in SAMPLE_COMM_SYS_GetPicSize()
162 pstSize->u32Width = 720; /* PIC_D1_PAL width is 720 */ in SAMPLE_COMM_SYS_GetPicSize()
167 pstSize->u32Width = 1280; /* PIC_720P width is 1280 */ in SAMPLE_COMM_SYS_GetPicSize()
172 pstSize->u32Width = IMG_2M_WIDTH; in SAMPLE_COMM_SYS_GetPicSize()
177 pstSize->u32Width = IMG_5M_WIDTH; in SAMPLE_COMM_SYS_GetPicSize()
182 pstSize->u32Width = IMG_4M_WIDTH; in SAMPLE_COMM_SYS_GetPicSize()
187 pstSize->u32Width = IMG_4M_WIDTH; in SAMPLE_COMM_SYS_GetPicSize()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/resize_crop/smp/
Dsmp_resize_crop.c206 img->u32Width = width; in IveImgCreate()
208 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate()
283 HI_ASSERT(boxWidth > 0 && boxWidth <= src->u32Width); in ImgYuvCrop()
286 HI_ASSERT(src->au32Stride[0] >= src->u32Width); in ImgYuvCrop()
385 HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) in SampleIveResizeInit() argument
391 …MPLE_COMM_IVE_CreateImage(&pstResizeCropInfo->stSrc, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Height); in SampleIveResizeInit()
418 HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) in SampleIveCropInit() argument
424 …MPLE_COMM_IVE_CreateImage(&pstResizeCropInfo->stSrc, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Height); in SampleIveCropInit()
497 HI_ASSERT((src->u32Height % HI_OVEN_BASE) == 0 && (src->u32Width % HI_OVEN_BASE) == 0); in IveResizeOnce()
599 uint32_t srcWidth = src->u32Width; in IveImgResize()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/
Dsample_comm_ive.c42 HI_U16 SAMPLE_COMM_IVE_CalcStride(HI_U32 u32Width, HI_U8 u8Align) in SAMPLE_COMM_IVE_CalcStride() argument
44 return (u32Width + (u8Align - u32Width % u8Align) % u8Align); in SAMPLE_COMM_IVE_CalcStride()
160 width = pstImg->u32Width; in SAMPLE_COMM_IVE_ReadFile()
274 width = pstImg->u32Width; in SAMPLE_COMM_IVE_WriteFile()
441 HI_S32 SAMPLE_COMM_IVE_CreateImage(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width, H… in SAMPLE_COMM_IVE_CreateImage() argument
451 pstImg->u32Width = u32Width; in SAMPLE_COMM_IVE_CreateImage()
453 pstImg->au32Stride[0] = SAMPLE_COMM_IVE_CalcStride(pstImg->u32Width, IVE_ALIGN); in SAMPLE_COMM_IVE_CreateImage()
577 … SAMPLE_COMM_IVE_CreateImageByCached(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width, in SAMPLE_COMM_IVE_CreateImageByCached() argument
589 pstImg->u32Width = u32Width; in SAMPLE_COMM_IVE_CreateImageByCached()
591 pstImg->au32Stride[0] = SAMPLE_COMM_IVE_CalcStride(pstImg->u32Width, IVE_ALIGN); in SAMPLE_COMM_IVE_CreateImageByCached()
[all …]
Dsample_comm_ive.h137 HI_U16 SAMPLE_COMM_IVE_CalcStride(HI_U32 u32Width, HI_U8 u8Align);
142 HI_S32 SAMPLE_COMM_IVE_CreateImage(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width, H…
146 … SAMPLE_COMM_IVE_CreateImageByCached(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width,
149 HI_S32 SAMPLE_COMM_IVE_CreateData(IVE_DATA_S *pstData, HI_U32 u32Width, HI_U32 u32Height);
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/tennis_detect/
Dtennis_detect.cpp64 pstSrc->u32Width = srcFrame->stVFrame.u32Width; in IveImageParamCfg()
68 pstDst->u32Width = pstSrc->u32Width; in IveImageParamCfg()
118 dstImage->u32Width = pstDst.u32Width; in yuvFrame2rgb()
126 HI_U32 w = srcFrame->stVFrame.u32Width; in frame2Mat()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/vio/smp/
Dsample_vio.c113 …u32BlkSize = COMMON_GetPicBufferSize(stSize.u32Width, stSize.u32Height, SAMPLE_PIXEL_FORMAT, DATA_… in SAMPLE_VIO_ViOnlineVpssOfflineRoute()
118 … u32BlkSize = VI_GetRawBufferSize(stSize.u32Width, stSize.u32Height, PIXEL_FORMAT_RGB_BAYER_16BPP, in SAMPLE_VIO_ViOnlineVpssOfflineRoute()
142 stVpssGrpAttr.u32MaxW = stSize.u32Width; in SAMPLE_VIO_ViOnlineVpssOfflineRoute()
148 astVpssChnAttr[VpssChn].u32Width = stSize.u32Width; in SAMPLE_VIO_ViOnlineVpssOfflineRoute()
331 …u32BlkSize = COMMON_GetPicBufferSize(stSize.u32Width, stSize.u32Height, SAMPLE_PIXEL_FORMAT, DATA_… in SAMPLE_VIO_WDR_LDC_DIS_SPREAD()
336 … u32BlkSize = VI_GetRawBufferSize(stSize.u32Width, stSize.u32Height, PIXEL_FORMAT_RGB_BAYER_16BPP, in SAMPLE_VIO_WDR_LDC_DIS_SPREAD()
366 stVpssGrpAttr.u32MaxW = stSize.u32Width; in SAMPLE_VIO_WDR_LDC_DIS_SPREAD()
372 astVpssChnAttr[VpssChn].u32Width = stSize.u32Width; in SAMPLE_VIO_WDR_LDC_DIS_SPREAD()
507 stSpreadAttr.stDestSize.u32Width = stSize.u32Width; in SAMPLE_VIO_WDR_LDC_DIS_SPREAD()
618 …u32BlkSize = COMMON_GetPicBufferSize(stSize.u32Width, stSize.u32Height, SAMPLE_PIXEL_FORMAT, DATA_… in SAMPLE_VIO_ViDoublePipeRoute()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/store_sample/smp/
Dsample_store.c147 u64BlkSize = COMMON_GetPicBufferSize(stSnsSize.u32Width, stSnsSize.u32Height, in SAMPLE_VENC_SYS_Init()
255 pstSize->u32Width = stSnsSize.u32Width; in SAMPLE_VENC_ModifyResolution()
278 if ((stSnsSize.u32Width < stSize.u32Width) || (stSnsSize.u32Height < stSize.u32Height)) { in SAMPLE_VENC_CheckSensor()
280 stSnsSize.u32Width, stSnsSize.u32Height, stSize.u32Width, stSize.u32Height); in SAMPLE_VENC_CheckSensor()
311 stVpssGrpAttr.u32MaxW = stSnsSize.u32Width; in SAMPLE_VENC_VPSS_Init()
322 stVpssChnAttr[i].u32Width = stSize[i].u32Width; in SAMPLE_VENC_VPSS_Init()
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ai_infer_process/
Dai_infer_process.c92 HI_U32 u32ClassNum = pstCnnPara->pstModel->astSeg[0].astDstNode[0].unShape.stWhc.u32Width; in SampleSvpNnieCnnSoftwareParaInit()
123 pstCnnSoftWarePara->stGetTopN.unShape.stWhc.u32Width = u32GetTopFrameSize / sizeof(HI_U32); in SampleSvpNnieCnnSoftwareParaInit()
288 g_stCnnNnieParam.astSegData[0].astSrc[0].unShape.stWhc.u32Width, in CnnCreate()
336 HI_U32 u32Width = 0; in FillNnieByImg() local
361 u32Width = pstNnieParam->astSegData[segId].astSrc[nodeId].unShape.stWhc.u32Width; in FillNnieByImg()
374 … if (memcpy_s(pu8PicAddr, u32Width * u32VarSize, srcData, u32Width * u32VarSize) != EOK) { in FillNnieByImg()
384 … if (memcpy_s(pu8PicAddr, u32Width * u32VarSize, srcData, u32Width * u32VarSize) != EOK) { in FillNnieByImg()
399 … if (memcpy_s(pu8PicAddr, u32Width * u32VarSize, srcData, u32Width * u32VarSize) != EOK) { in FillNnieByImg()
622 pstSoftWareParam->u32OriImWidth = pstNnieParam->astSegData[0].astSrc[0].unShape.stWhc.u32Width; in SampleSvpNnieYolov2SoftwareInit()
679 pstSoftWareParam->stDstRoi.unShape.stWhc.u32Width = u32ClassNum * in SampleSvpNnieYolov2SoftwareInit()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/smp/
Dsample_media_opencv.cpp101 g_aicTennisMediaInfo.u32BlkSize = COMMON_GetPicBufferSize(g_aicTennisMediaInfo.stSize.u32Width, in TennisStVbParamCfg()
111 g_aicTennisMediaInfo.u32BlkSize = VI_GetRawBufferSize(g_aicTennisMediaInfo.stSize.u32Width, in TennisStVbParamCfg()
122 g_aicTennisMediaInfo.stSize.u32Width, g_aicTennisMediaInfo.stSize.u32Width); in TennisVpssParamCfg()
194 …SAMPLE_PRT("get vpss frame success, weight:%d, height:%d\n", frm.stVFrame.u32Width, frm.stVFrame.u… in GetVpssChnFrameTennisDetect()
261 …SAMPLE_PRT("AIC: snsMaxSize=%ux%u\n", g_aicTennisMediaInfo.stSize.u32Width, g_aicTennisMediaInfo.s… in SAMPLE_MEDIA_TENNIS_DETECT()
Dsample_media_ai.c118 pstLayerAttr->stDispRect.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserLayerAttr()
121 pstLayerAttr->stImageSize.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserLayerAttr()
135 pstChnAttr[i].stRect.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserChnAttr()
1179 HI_U32 u32Width = 0; in SampleCommVoStartChnMipi() local
1193 u32Width = stLayerAttr.stImageSize.u32Width; in SampleCommVoStartChnMipi()
1196 u32Width, u32Height, g_sampleVoModeMux.u32Square); in SampleCommVoStartChnMipi()
1202 stChnAttr.stRect.s32X = HI_ALIGN_DOWN((u32Width / g_sampleVoModeMux.u32Square) * in SampleCommVoStartChnMipi()
1206 …stChnAttr.stRect.u32Width = HI_ALIGN_DOWN(u32Width / g_sampleVoModeMux.u32Square, ALIGN_DOWN_SIZ… in SampleCommVoStartChnMipi()
1211 stChnAttr.stRect.s32X = HI_ALIGN_DOWN((u32Width / g_sampleVoModeMux.u32Col) * in SampleCommVoStartChnMipi()
1215 … stChnAttr.stRect.u32Width = HI_ALIGN_DOWN(u32Width / g_sampleVoModeMux.u32Col, ALIGN_DOWN_SIZE); in SampleCommVoStartChnMipi()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/helloworld/smp/
Dsample_lcd.c84 pstLayerAttr->stDispRect.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserLayerAttr()
87 pstLayerAttr->stImageSize.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserLayerAttr()
101 pstChnAttr[i].stRect.u32Width = pstDevSize->u32Width; in SAMPLE_VO_GetUserChnAttr()
1145 HI_U32 u32Width = 0; in SampleCommVoStartChnMipi() local
1159 u32Width = stLayerAttr.stImageSize.u32Width; in SampleCommVoStartChnMipi()
1162 u32Width, u32Height, g_sampleVoModeMux.u32Square); in SampleCommVoStartChnMipi()
1168 stChnAttr.stRect.s32X = HI_ALIGN_DOWN((u32Width / g_sampleVoModeMux.u32Square) * in SampleCommVoStartChnMipi()
1172 …stChnAttr.stRect.u32Width = HI_ALIGN_DOWN(u32Width / g_sampleVoModeMux.u32Square, ALIGN_DOWN_SIZ… in SampleCommVoStartChnMipi()
1177 stChnAttr.stRect.s32X = HI_ALIGN_DOWN((u32Width / g_sampleVoModeMux.u32Col) * in SampleCommVoStartChnMipi()
1181 … stChnAttr.stRect.u32Width = HI_ALIGN_DOWN(u32Width / g_sampleVoModeMux.u32Col, ALIGN_DOWN_SIZE); in SampleCommVoStartChnMipi()
[all …]

1234