/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/ |
D | sample_comm_svp.c | 126 pstImg->au32Stride[0] = SAMPLE_COMM_SVP_Align(pstImg->u32Width, SAMPLE_SVP_ALIGN_16); in SAMPLE_COMM_SVP_CreateImage() 131 u32Size = pstImg->au32Stride[0] * pstImg->u32Height + u32AddrOffset; in SAMPLE_COMM_SVP_CreateImage() 142 …pstImg->au32Stride[0] * pstImg->u32Height * 3 / 2 + u32AddrOffset; /* YUV420SP: stride * h * 3 / 2… in SAMPLE_COMM_SVP_CreateImage() 149 pstImg->au32Stride[1] = pstImg->au32Stride[0]; in SAMPLE_COMM_SVP_CreateImage() 150 … pstImg->au64PhyAddr[1] = pstImg->au64PhyAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height; in SAMPLE_COMM_SVP_CreateImage() 151 … pstImg->au64VirAddr[1] = pstImg->au64VirAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height; in SAMPLE_COMM_SVP_CreateImage() 155 …u32Size = pstImg->au32Stride[0] * pstImg->u32Height * 2 + u32AddrOffset; /* YUV422: stride * h * 2… in SAMPLE_COMM_SVP_CreateImage() 162 pstImg->au32Stride[1] = pstImg->au32Stride[0]; in SAMPLE_COMM_SVP_CreateImage() 163 … pstImg->au64PhyAddr[1] = pstImg->au64PhyAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height; in SAMPLE_COMM_SVP_CreateImage() 164 … pstImg->au64VirAddr[1] = pstImg->au64VirAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height; in SAMPLE_COMM_SVP_CreateImage() [all …]
|
D | sample_comm_ive.c | 170 pU8 += pstImg->au32Stride[0]; in SAMPLE_COMM_IVE_ReadFile() 182 pU8 += pstImg->au32Stride[0]; in SAMPLE_COMM_IVE_ReadFile() 192 pU8 += pstImg->au32Stride[1]; in SAMPLE_COMM_IVE_ReadFile() 204 pU8 += pstImg->au32Stride[0]; in SAMPLE_COMM_IVE_ReadFile() 214 pU8 += pstImg->au32Stride[1]; in SAMPLE_COMM_IVE_ReadFile() 226 pU8 += pstImg->au32Stride[0] * 3; /* next fread addr: pstImg->au32Stride[0] * 3 */ in SAMPLE_COMM_IVE_ReadFile() 239 pU8 += pstImg->au32Stride[loop]; in SAMPLE_COMM_IVE_ReadFile() 253 pU8 += pstImg->au32Stride[0] * 2; /* next fread addr: pstImg->au32Stride[0] * 2 */ in SAMPLE_COMM_IVE_ReadFile() 286 pU8 += pstImg->au32Stride[0]; in SAMPLE_COMM_IVE_WriteFile() 298 pU8 += pstImg->au32Stride[0]; in SAMPLE_COMM_IVE_WriteFile() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/mpp_help/src/ |
D | ive_img.c | 76 img->au32Stride[i] = frm->stVFrame.u32Stride[i]; in FrmToOrigImg() 142 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate() 147 size = img->au32Stride[0] * img->u32Height; in IveImgCreate() 162 size = img->au32Stride[0] * img->u32Height * THREE_TIMES / TWO_TIMES; in IveImgCreate() 164 size = img->au32Stride[0] * img->u32Height * TWO_TIMES; in IveImgCreate() 173 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() 174 … img->au64PhyAddr[1] = img->au64PhyAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 175 … img->au64VirAddr[1] = img->au64VirAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 179 oneChnSize = img->au32Stride[0] * img->u32Height; in IveImgCreate() 190 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/tennis_detect/ |
D | tennis_detect.cpp | 60 pstSrc->au32Stride[0] = srcFrame->stVFrame.u32Stride[0]; in IveImageParamCfg() 61 pstSrc->au32Stride[1] = srcFrame->stVFrame.u32Stride[1]; in IveImageParamCfg() 62 pstSrc->au32Stride[2] = srcFrame->stVFrame.u32Stride[2]; // 2: Image data span in IveImageParamCfg() 70 pstDst->au32Stride[0] = pstSrc->au32Stride[0]; in IveImageParamCfg() 71 pstDst->au32Stride[1] = 0; in IveImageParamCfg() 72 pstDst->au32Stride[2] = 0; // 2: Image data span in IveImageParamCfg() 83 "User", HI_NULL, pstDst.u32Height*pstDst.au32Stride[0] * 3); // 3: multiple in yuvFrame2rgb() 91 pstDst.u32Height*pstDst.au32Stride[0] * 3); // 3: multiple in yuvFrame2rgb() 97 memset_s((void *)pstDst.au64VirAddr[0], pstDst.u32Height*pstDst.au32Stride[0] * 3, in yuvFrame2rgb() 98 0, pstDst.u32Height*pstDst.au32Stride[0] * 3); // 3: multiple in yuvFrame2rgb()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/resize_crop/smp/ |
D | smp_resize_crop.c | 208 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate() 213 size = img->au32Stride[0] * img->u32Height; in IveImgCreate() 228 size = img->au32Stride[0] * img->u32Height * THREE_TIMES / TWO_TIMES; in IveImgCreate() 230 size = img->au32Stride[0] * img->u32Height * TWO_TIMES; in IveImgCreate() 239 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() 240 … img->au64PhyAddr[1] = img->au64PhyAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 241 … img->au64VirAddr[1] = img->au64VirAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 245 oneChnSize = img->au32Stride[0] * img->u32Height; in IveImgCreate() 256 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() 259 … img->au32Stride[2] = img->au32Stride[0]; // 2: au64VirAddr array subscript, not out of bounds in IveImgCreate() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/color_space_convert/smp/ |
D | smp_color_space_convert.c | 197 img->au32Stride[0] = IveCalStride(img->enType, img->u32Width, ALIGN_TYPE_16); in IveImgCreate() 202 size = img->au32Stride[0] * img->u32Height; in IveImgCreate() 217 size = img->au32Stride[0] * img->u32Height * THREE_TIMES / TWO_TIMES; in IveImgCreate() 219 size = img->au32Stride[0] * img->u32Height * TWO_TIMES; in IveImgCreate() 228 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() 229 … img->au64PhyAddr[1] = img->au64PhyAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 230 … img->au64VirAddr[1] = img->au64VirAddr[0] + img->au32Stride[0] * (uint64_t)img->u32Height; in IveImgCreate() 234 oneChnSize = img->au32Stride[0] * img->u32Height; in IveImgCreate() 245 img->au32Stride[1] = img->au32Stride[0]; in IveImgCreate() 248 … img->au32Stride[2] = img->au32Stride[0]; // 2: au64VirAddr array subscript, not out of bounds in IveImgCreate() [all …]
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/ive/sample/ |
D | sample_ive_gmm2.c | 141 pu8Tmp += pstGmm2->stFactor.au32Stride[0] * sizeof(HI_U16); in SAMPLE_IVE_Gmm2_Init() 226 pu8Tmp += pstFactor->au32Stride[0] * sizeof(HI_U16); in SAMPLE_IVE_ReduFactor() 263 pu8Tmp += pstDiffImg->au32Stride[0]; in SAMPLE_IVE_ChgFactorByDiffFrm() 276 pu8Tmp += pstDiffImg->au32Stride[0]; in SAMPLE_IVE_ChgFactorByDiffFrm() 277 pu8Factor += pstFactor->au32Stride[0] * sizeof(HI_U16); in SAMPLE_IVE_ChgFactorByDiffFrm() 381 …COMM_IVE_CONVERT_64BIT_ADDR(HI_U8, pstFgMask->au64VirAddr[0])) + u16Top * pstFgMask->au32Stride[0]; in SAMPLE_IVE_ChgFactorByGrad() 383 u16Top * pstDiffImg->au32Stride[0]; in SAMPLE_IVE_ChgFactorByGrad() 394 pu8FgCur += pstFgMask->au32Stride[0]; in SAMPLE_IVE_ChgFactorByGrad() 395 pu8GradDiff += pstDiffImg->au32Stride[0]; in SAMPLE_IVE_ChgFactorByGrad() 400 SAMPLE_IVE_GMM2_FACTOR_OFFSET * u16Top * pstFactor->au32Stride[0]; in SAMPLE_IVE_ChgFactorByGrad() [all …]
|
D | sample_ive_sobel_with_cached_mem.c | 154 pstSobel->stSrc2.au32Stride[0] * pstSobel->stSrc2.u32Height, in SAMPLE_IVE_SobelProc() 156 pstSobel->stSrc2.au32Stride[0] * pstSobel->stSrc2.u32Height); in SAMPLE_IVE_SobelProc() 159 pstSobel->stSrc1.au32Stride[0] * pstSobel->stSrc1.u32Height); in SAMPLE_IVE_SobelProc() 183 pstSobel->stSrc2.au32Stride[0] * pstSobel->stSrc2.u32Height); in SAMPLE_IVE_SobelProc()
|
D | sample_ive_test_memory.c | 123 stSrcData.u32Stride = pstTestMem->stSrc1.au32Stride[0]; in SAMPLE_IVE_TestMemoryProc() 129 stDstData.u32Stride = pstTestMem->stSrc2.au32Stride[0]; in SAMPLE_IVE_TestMemoryProc()
|
D | sample_ive_canny.c | 100 u32Size = pstCannyInfo->stSrc.au32Stride[0] * pstCannyInfo->stSrc.u32Height * u32Size + in SAMPLE_IVE_Canny_Init() 105 u32Size = pstCannyInfo->stSrc.au32Stride[0] * pstCannyInfo->stSrc.u32Height * u32Size; in SAMPLE_IVE_Canny_Init()
|
D | sample_ive_od.c | 197 … (j == 0) ? (pu64VirData) : (pu64VirData + (j * pstOd->u32H - 1) * pstOd->stInteg.au32Stride[0]); in SAMPLE_IVE_OdProc() 198 pu64BtmRow = pu64VirData + ((j + 1) * pstOd->u32H - 1) * pstOd->stInteg.au32Stride[0]; in SAMPLE_IVE_OdProc()
|
D | sample_ive_st_and_lk.c | 75 stDataSrc.u32Stride = pstSrc->au32Stride[0]; in SAMPLE_IVE_St_Lk_DMA() 81 stDataDst.u32Stride = pstDst->au32Stride[0]; in SAMPLE_IVE_St_Lk_DMA()
|
D | sample_ive_kcf.c | 1861 pstImage->au32Stride[0] = pstFrameInfo->stVFrame.u32Stride[0]; in SAMPLE_IVE_FillImage() 1862 pstImage->au32Stride[1] = pstFrameInfo->stVFrame.u32Stride[1]; in SAMPLE_IVE_FillImage()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
D | hi_comm_svp.h | 130 HI_U32 au32Stride[HI_SVP_IMG_STRIDE_NUM]; /* RW;The stride of the image */ member
|
D | hi_comm_ive.h | 155 HI_U32 au32Stride[3]; /* RW;The stride of the image */ member
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
D | hi_comm_svp.h | 130 HI_U32 au32Stride[HI_SVP_IMG_STRIDE_NUM]; /* RW;The stride of the image */ member
|
D | hi_comm_ive.h | 155 HI_U32 au32Stride[3]; /* RW;The stride of the image */ member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ai_infer_process/ |
D | ai_infer_process.c | 378 srcData += img->au32Stride[0]; in FillNnieByImg() 388 srcData += img->au32Stride[1]; in FillNnieByImg() 403 srcData += img->au32Stride[i]; in FillNnieByImg()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/nnie/sample_nnie_software/ |
D | sample_svp_nnie_software.c | 2220 …HI_U32 au32GridNumHeight[], HI_U32 au32Stride[], HI_U32 u32EachGridBbox, HI_U32 u32ClassNum, HI_U3… in SVP_NNIE_Yolov3_GetResult() argument 2270 u32ChnOffset = au32GridNumHeight[i] * au32Stride[i] / sizeof(HI_S32); in SVP_NNIE_Yolov3_GetResult() 2271 u32HeightOffset = au32Stride[i] / sizeof(HI_S32); in SVP_NNIE_Yolov3_GetResult() 3072 HI_U32 au32Stride[SAMPLE_SVP_NNIE_YOLOV3_REPORT_BLOB_NUM] = {0}; in SAMPLE_SVP_NNIE_Yolov3_GetResult() local 3078 au32Stride[i] = pstNnieParam->astSegData[0].astDst[i].u32Stride; in SAMPLE_SVP_NNIE_Yolov3_GetResult() 3081 pstSoftwareParam->au32GridNumHeight, au32Stride, pstSoftwareParam->u32BboxNumEachGrid, in SAMPLE_SVP_NNIE_Yolov3_GetResult()
|