/device/soc/hisilicon/hi3516dv300/sdk_linux/include/ |
H A D | hi_buffer.h | 32 __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() 77 u32AlignHeight = HI_ALIGN_UP(u32Height, 2); 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, &stCalConfig); 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() 231 u32Size = u32Stride * u32Height; in VI_GetRawBufferSizeEx() 236 u32Size = u32Stride * u32Height; in VI_GetRawBufferSizeEx() 238 u32Size = HI_ALIGN_UP(u32Height * u32Widt in VI_GetRawBufferSizeEx() 244 VI_GetRawBufferSize(HI_U32 u32Width, HI_U32 u32Height, PIXEL_FORMAT_E enPixelFormat, COMPRESS_MODE_E enCmpMode, HI_U32 u32Align) VI_GetRawBufferSize() argument 250 VDEC_GetPicBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, __attribute__((unused))PIXEL_FORMAT_E enPixelFormat, __attribute__((unused))DATA_BITWIDTH_E enBitWidth, __attribute__((unused))HI_U32 u32Align) VDEC_GetPicBufferSize() argument 282 VDEC_GetTmvBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height) VDEC_GetTmvBufferSize() argument 309 VENC_GetRefPicInfoBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, __attribute__((unused))HI_U32 u32Align) VENC_GetRefPicInfoBufferSize() argument 352 VENC_GetRefBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, DATA_BITWIDTH_E enBitWidth, __attribute__((unused))HI_U32 u32Align) VENC_GetRefBufferSize() argument 410 VENC_GetQpmapSize(HI_U32 u32Width, HI_U32 u32Height) VENC_GetQpmapSize() argument 442 VENC_GetSkipWeightSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height) VENC_GetSkipWeightSize() argument [all...] |
H A D | hi_comm_ive.h | 157 HI_U32 u32Height; /* RW;The height of the image */
member 183 HI_U32 u32Height; /* RW;The height of 2D data by byte */
member 238 HI_U32 u32Height; /* RW;The height of the rectangle */
member 245 HI_U32 u32Height;
member 308 HI_U32 u32Height; /* H: frame height, correspond to caffe blob's h */
member
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | hi_buffer.h | 32 __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() 77 u32AlignHeight = HI_ALIGN_UP(u32Height, 2); 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, &stCalConfig); 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() 231 u32Size = u32Stride * u32Height; in VI_GetRawBufferSizeEx() 236 u32Size = u32Stride * u32Height; in VI_GetRawBufferSizeEx() 238 u32Size = HI_ALIGN_UP(u32Height * u32Widt in VI_GetRawBufferSizeEx() 244 VI_GetRawBufferSize(HI_U32 u32Width, HI_U32 u32Height, PIXEL_FORMAT_E enPixelFormat, COMPRESS_MODE_E enCmpMode, HI_U32 u32Align) VI_GetRawBufferSize() argument 250 VDEC_GetPicBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, __attribute__((unused))PIXEL_FORMAT_E enPixelFormat, __attribute__((unused))DATA_BITWIDTH_E enBitWidth, __attribute__((unused))HI_U32 u32Align) VDEC_GetPicBufferSize() argument 282 VDEC_GetTmvBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height) VDEC_GetTmvBufferSize() argument 309 VENC_GetRefPicInfoBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, __attribute__((unused))HI_U32 u32Align) VENC_GetRefPicInfoBufferSize() argument 352 VENC_GetRefBufferSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height, DATA_BITWIDTH_E enBitWidth, __attribute__((unused))HI_U32 u32Align) VENC_GetRefBufferSize() argument 410 VENC_GetQpmapSize(HI_U32 u32Width, HI_U32 u32Height) VENC_GetQpmapSize() argument 442 VENC_GetSkipWeightSize(PAYLOAD_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height) VENC_GetSkipWeightSize() argument [all...] |
H A D | hi_comm_ive.h | 157 HI_U32 u32Height; /* RW;The height of the image */
member 183 HI_U32 u32Height; /* RW;The height of 2D data by byte */
member 238 HI_U32 u32Height; /* RW;The height of the rectangle */
member 245 HI_U32 u32Height;
member 308 HI_U32 u32Height; /* H: frame height, correspond to caffe blob's h */
member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/ |
H A D | sample_comm_svp.c | 114 HI_S32 SAMPLE_COMM_SVP_CreateImage(SVP_IMAGE_S *pstImg, SVP_IMAGE_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height,
in SAMPLE_COMM_SVP_CreateImage() argument 125 pstImg->u32Height = u32Height;
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() 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() 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...] |
H A D | sample_comm_ive.c | 159 height = pstImg->u32Height;
in SAMPLE_COMM_IVE_ReadFile() 273 height = pstImg->u32Height;
in SAMPLE_COMM_IVE_WriteFile() 441 HI_S32 SAMPLE_COMM_IVE_CreateImage(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height)
in SAMPLE_COMM_IVE_CreateImage() argument 452 pstImg->u32Height = u32Height;
in SAMPLE_COMM_IVE_CreateImage() 458 u32Size = pstImg->au32Stride[0] * pstImg->u32Height;
in SAMPLE_COMM_IVE_CreateImage() 468 u32Size = pstImg->au32Stride[0] * pstImg->u32Height * 3 / 2; /* YUV420SP size: stride * height * 3 / 2 */
in SAMPLE_COMM_IVE_CreateImage() 476 pstImg->au64PhyAddr[1] = pstImg->au64PhyAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height;
in SAMPLE_COMM_IVE_CreateImage() 477 pstImg->au64VirAddr[1] = pstImg->au64VirAddr[0] + pstImg->au32Stride[0] * pstImg->u32Height;
in SAMPLE_COMM_IVE_CreateImage() 481 u32Size = pstImg->au32Stride[0] * pstImg->u32Height * in SAMPLE_COMM_IVE_CreateImage() 577 SAMPLE_COMM_IVE_CreateImageByCached(IVE_IMAGE_S *pstImg, IVE_IMAGE_TYPE_E enType, HI_U32 u32Width, HI_U32 u32Height) SAMPLE_COMM_IVE_CreateImageByCached() argument 661 SAMPLE_COMM_IVE_CreateData(IVE_DATA_S *pstData, HI_U32 u32Width, HI_U32 u32Height) SAMPLE_COMM_IVE_CreateData() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/color_space_convert/smp/ |
H A D | smp_color_space_convert.c | 196 img->u32Height = height;
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() 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() 300 HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height)
in SampleIveColorConvertInit() 306 s32Ret = SAMPLE_COMM_IVE_CreateImage(&g_stColorSpaceInfo->stSrc, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Height);
in SampleIveColorConvertInit() 355 for (i = 0; i < img->u32Height; in ImgRgbToBgr() 299 SampleIveColorConvertInit(SampleIveColorSpaceConvInfo* g_stColorSpaceInfo, HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) SampleIveColorConvertInit() argument 554 HI_U16 u32Height = 1080; SampleIveOrigImgToFrm() local 602 HI_U16 u32Height = 1080; SampleIveFrmToOrigImg() local 662 HI_U16 u32Height = 1080; SampleIveFrmToU8c1Img() local 722 HI_U16 u32Height = 1080; SampleIveFrmToRgbImgToYuv() local 787 HI_U16 u32Height = 1080; SampleIveFrmToRgbImgToBgr() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/scenario/tennis_detect/ |
H A D | tennis_detect.cpp | 65 pstSrc->u32Height = srcFrame->stVFrame.u32Height;
in IveImageParamCfg() 69 pstDst->u32Height = pstSrc->u32Height;
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() 119 dstImage->u32Height = pstDst.u32Height;
in yuvFrame2rgb() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/ive/sample/ |
H A D | sample_ive_sobel_with_cached_mem.c | 67 HI_U32 u32Height)
in SAMPLE_IVE_Sobel_Init() 82 s32Ret = SAMPLE_COMM_IVE_CreateImageByCached(&(pstSobel->stSrc1), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 85 s32Ret = SAMPLE_COMM_IVE_CreateImageByCached(&(pstSobel->stSrc2), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 88 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstH1), IVE_IMAGE_TYPE_S16C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 91 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstH2), IVE_IMAGE_TYPE_S16C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 94 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstV1), IVE_IMAGE_TYPE_S16C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 97 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstSobel->stDstV2), IVE_IMAGE_TYPE_S16C1, u32Width, u32Height);
in SAMPLE_IVE_Sobel_Init() 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() 66 SAMPLE_IVE_Sobel_Init(SAMPLE_IVE_SOBEL_S *pstSobel, HI_CHAR *pchSrcFileName, HI_U32 u32Width, HI_U32 u32Height) SAMPLE_IVE_Sobel_Init() argument 217 HI_U32 u32Height = IVE_D1_HEIGHT; SAMPLE_IVE_Sobel() local [all...] |
H A D | sample_ive_test_memory.c | 56 HI_U32 u32Width, HI_U32 u32Height)
in SAMPLE_IVE_TestMemory_Init() 63 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stSrc1), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_TestMemory_Init() 67 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stSrc2), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_TestMemory_Init() 71 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstTestMem->stDst), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_TestMemory_Init() 122 stSrcData.u32Height = pstTestMem->stSrc1.u32Height;
in SAMPLE_IVE_TestMemoryProc() 128 stDstData.u32Height = pstTestMem->stSrc2.u32Height;
in SAMPLE_IVE_TestMemoryProc() 152 if (pu32Hist[0] != pstTestMem->stSrc1.u32Width * pstTestMem->stSrc1.u32Height) {
in SAMPLE_IVE_TestMemoryProc() 178 HI_U32 u32Height in SAMPLE_IVE_TestMemory() local 55 SAMPLE_IVE_TestMemory_Init(TEST_MEMORY_S *pstTestMem, HI_CHAR *pchSrcFileName, HI_CHAR *pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) SAMPLE_IVE_TestMemory_Init() argument [all...] |
H A D | sample_ive_st_and_lk.c | 74 stDataSrc.u32Height = pstSrc->u32Height;
in SAMPLE_IVE_St_Lk_DMA() 80 stDataDst.u32Height = pstDst->u32Height;
in SAMPLE_IVE_St_Lk_DMA() 136 HI_U32 u32Height, HI_U32 u32PyrWidth, HI_U32 u32PyrHeight, HI_U8 u8MaxLevel)
in SAMPLE_IVE_St_Lk_Init() 154 SAMPLE_COMM_IVE_CreateImage(&pstStLk->astPrevPyr[i], IVE_IMAGE_TYPE_U8C1, u32Width >> i, u32Height >> i);
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 in SAMPLE_IVE_St_Lk_Init() 135 SAMPLE_IVE_St_Lk_Init(SAMPLE_IVE_ST_LK_S *pstStLk, HI_CHAR *pchSrcFileName, HI_U32 u32Width, HI_U32 u32Height, HI_U32 u32PyrWidth, HI_U32 u32PyrHeight, HI_U8 u8MaxLevel) SAMPLE_IVE_St_Lk_Init() argument [all...] |
H A D | sample_ive_gmm2.c | 114 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, u32Height);
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, u32Height);
in SAMPLE_IVE_Gmm2_Init() 136 for (i = 0; i < pstGmm2->stFactor.u32Height; i++) {
in SAMPLE_IVE_Gmm2_Init() 143 s32Ret = SAMPLE_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, u32Height);
in SAMPLE_IVE_Gmm2_Init() 148 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stDiffImg), IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_Gmm2_Init() 150 s32Ret = SAMPLE_COMM_IVE_CreateImage(&(pstGmm2->stMagImg), IVE_IMAGE_TYPE_U16C1, u32Width, u32Height);
in SAMPLE_IVE_Gmm2_Init() 520 HI_U32 u32Height = IVE_CIF_HEIGHT; SAMPLE_IVE_Gmm2() local [all...] |
H A D | sample_ive_canny.c | 67 HI_CHAR *pchDstFileName, HI_U32 u32Width, HI_U32 u32Height)
in SAMPLE_IVE_Canny_Init() 93 s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stSrc, IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_Canny_Init() 95 s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stEdge, IVE_IMAGE_TYPE_U8C1, u32Width, u32Height);
in SAMPLE_IVE_Canny_Init() 97 s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstCannyInfo->stMag, IVE_IMAGE_TYPE_U16C1, u32Width, u32Height);
in SAMPLE_IVE_Canny_Init() 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() 201 HI_U16 u32Height = IVE_D1_HEIGHT;
in SAMPLE_IVE_Canny() local 228 s32Ret = SAMPLE_IVE_Canny_Init(&s_stCannyInfo, achSrcFileName, achDstFileName, u32Width, u32Height);
in SAMPLE_IVE_Canny() 66 SAMPLE_IVE_Canny_Init(SAMPLE_IVE_CANNY_INFO_S *pstCannyInfo, HI_CHAR *pchSrcFileName, HI_CHAR *pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) SAMPLE_IVE_Canny_Init() argument
|
H A D | sample_ive_md.c | 71 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() 94 pstMd->stMdAttr.u32Height = u32Height;
in SAMPLE_IVE_Md_Init() 167 &(pstMd->stRegion), IVE_RECT_NUM, SAMPLE_IVE_MD_AREA_THR_STEP, pstMdAttr->u32Width, pstMdAttr->u32Height,
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()
|
H A D | sample_ive_od.c | 63 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() 73 pstOd->u32H = u32Height / IVE_CHAR_CALH;
in SAMPLE_IVE_Od_Init() 171 stSrc.u32Height = stExtFrmInfo.stVFrame.u32Height;
in SAMPLE_IVE_OdProc() 177 stDst.u32Height = stExtFrmInfo.stVFrame.u32Height;
in SAMPLE_IVE_OdProc() 292 s32Ret = SAMPLE_IVE_Od_Init(&s_stOd, stSize.u32Width, stSize.u32Height);
in SAMPLE_IVE_Od()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/mpp_help/src/ |
H A D | ive_img.c | 62 img->u32Height = frm->stVFrame.u32Height;
in FrmToOrigImg() 141 img->u32Height = height;
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() 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() 218 HI_ASSERT(boxHeight > 0 && boxHeight <= src->u32Height);
in ImgYuvCrop() [all...] |
H A D | osd_img.c | 368 pstOsdParam->stMaxSize.u32Height= 0;
in HI_OSD_Stop() 449 rgnAttr->stContent.stFontSize.u32Height = OSD_FONT_HEIGHT_DEF;
in TxtRgnInit() 484 stImageSize.u32Height = stChnAttr.u32Height;
in OSD_Ratio2Absolute() 496 stImageSize.u32Height = stChnAttr.stRect.u32Height;
in OSD_Ratio2Absolute() 507 pstAbsCoor->s32Y = HiAppcommAlign(stImageSize.u32Height * pstRatioCoor->s32Y / MULTIPLE_NUM, 2);
in OSD_Ratio2Absolute() 615 HI_S32 s32CharRow = s32BmRow * OSD_LIB_FONT_H / pstContent->stFontSize.u32Height;
in OSD_Bitmap_Cal() 646 pstContent->stBitmap.u32Height = pstContent->stFontSize.u32Height;
in OSD_Generate_Bitmap() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/resize_crop/smp/ |
H A D | smp_resize_crop.c | 207 img->u32Height = height;
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() 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() 284 HI_ASSERT(boxHeight > 0 && boxHeight <= src->u32Height);
in ImgYuvCrop() 385 HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height)
in SampleIveResizeInit() 391 s32Ret = SAMPLE_COMM_IVE_CreateImage(&pstResizeCropInfo->stSrc, IVE_IMAGE_TYPE_YUV420SP, u32Width, u32Height);
in SampleIveResizeInit() 384 SampleIveResizeInit(SampleIveResizeCropInfo* pstResizeCropInfo, HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) SampleIveResizeInit() argument 417 SampleIveCropInit(SampleIveResizeCropInfo* pstResizeCropInfo, HI_CHAR* pchSrcFileName, HI_CHAR* pchDstFileName, HI_U32 u32Width, HI_U32 u32Height) SampleIveCropInit() argument 752 HI_U16 u32Height = 1080; // 1080: Original image size Height SampleIveImgResize() local 803 HI_U16 u32Height = 1080; // 1080: Original image size Height SampleIveImgCrop() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/ |
H A D | sample_comm_vo.c | 222 HI_U32 u32Height = 0; in SAMPLE_COMM_VO_StartChn() local 250 u32Height = stLayerAttr.stImageSize.u32Height; in SAMPLE_COMM_VO_StartChn() 251 SAMPLE_PRT("u32Width:%d, u32Height:%d, u32Square:%d\n", u32Width, u32Height, u32Square); in SAMPLE_COMM_VO_StartChn() 254 stChnAttr.stRect.s32Y = HI_ALIGN_DOWN((u32Height / u32Square) * (i / u32Square), 2); /* 2 align */ in SAMPLE_COMM_VO_StartChn() 256 stChnAttr.stRect.u32Height = HI_ALIGN_DOWN(u32Height / u32Square, 2); /* 2 align */ in SAMPLE_COMM_VO_StartChn() 543 &stLayerAttr.stDispRect.u32Height, &stLayerAttr.u32DispFrmRt); in SAMPLE_COMM_VO_StartVO() 564 stLayerAttr.stImageSize.u32Height in SAMPLE_COMM_VO_StartVO() 663 HI_U32 u32Frmt, u32Width, u32Height; SAMPLE_COMM_VO_StartLayerChn() local [all...] |
H A D | sample_comm_region.c | 89 pstBitmap->u32Height = Surface.u16Height; in REGION_MST_LoadBmp() 103 for (i = 0; i < pstBitmap->u32Height; i++) { in REGION_MST_LoadBmp() 117 for (i = 0; i < pstBitmap->u32Height; i++) { in REGION_MST_LoadBmp() 174 CreateSurfaceByCanvas(filename, &Surface, (HI_U8 *)(pstBitmap->pData), pstSize->u32Width, pstSize->u32Height, in REGION_MST_UpdateCanvas() 178 pstBitmap->u32Height = Surface.u16Height; in REGION_MST_UpdateCanvas() 189 for (i = 0; i < pstBitmap->u32Height; i++) { in REGION_MST_UpdateCanvas() 237 stRegion.unAttr.stOverlay.stSize.u32Height = RECT_HEIGHT; in SAMPLE_REGION_CreateOverLay() 260 stRegion.unAttr.stOverlayEx.stSize.u32Height = RECT_HEIGHT; in SAMPLE_REGION_CreateOverLayEx() 496 stChnAttr.unChnAttr.stOverlayChn.stInvertColor.stInvColArea.u32Height = 16; /* set 16 */ in SAMPLE_COMM_REGION_AttachToChn() 517 stChnAttr.unChnAttr.stCoverChn.stRect.u32Height in SAMPLE_COMM_REGION_AttachToChn() [all...] |
H A D | sample_comm_sys.c | 148 pstSize->u32Height = 480; /* PIC_D1_MIPI width is 480 */ in SAMPLE_COMM_SYS_GetPicSize() 153 pstSize->u32Height = 288; /* PIC_CIF height is 288 */ in SAMPLE_COMM_SYS_GetPicSize() 158 pstSize->u32Height = 360; /* PIC_360P height is 360 */ in SAMPLE_COMM_SYS_GetPicSize() 163 pstSize->u32Height = 576; /* PIC_D1_PAL height is 576 */ in SAMPLE_COMM_SYS_GetPicSize() 168 pstSize->u32Height = 720; /* PIC_720P height is 720 */ in SAMPLE_COMM_SYS_GetPicSize() 173 pstSize->u32Height = IMG_2M_HEIGHT; in SAMPLE_COMM_SYS_GetPicSize() 178 pstSize->u32Height = IMG_5M_HEIGHT; in SAMPLE_COMM_SYS_GetPicSize() 183 pstSize->u32Height = IMG_4M_HEIGHT; in SAMPLE_COMM_SYS_GetPicSize() 188 pstSize->u32Height = IMG_4M_HEIGHT; in SAMPLE_COMM_SYS_GetPicSize()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/store_sample/smp/ |
H A D | sample_store.c | 147 u64BlkSize = COMMON_GetPicBufferSize(stSnsSize.u32Width, stSnsSize.u32Height,
in SAMPLE_VENC_SYS_Init() 256 pstSize->u32Height = stSnsSize.u32Height;
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() 312 stVpssGrpAttr.u32MaxH = stSnsSize.u32Height;
in SAMPLE_VENC_VPSS_Init() 323 stVpssChnAttr[i].u32Height = stSize[i].u32Height;
in SAMPLE_VENC_VPSS_Init() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/vio/smp/ |
H A D | sample_vio.c | 113 u32BlkSize = COMMON_GetPicBufferSize(stSize.u32Width, stSize.u32Height, SAMPLE_PIXEL_FORMAT, DATA_BITWIDTH_8, in SAMPLE_VIO_ViOnlineVpssOfflineRoute() 118 u32BlkSize = VI_GetRawBufferSize(stSize.u32Width, stSize.u32Height, PIXEL_FORMAT_RGB_BAYER_16BPP, in SAMPLE_VIO_ViOnlineVpssOfflineRoute() 143 stVpssGrpAttr.u32MaxH = stSize.u32Height; in SAMPLE_VIO_ViOnlineVpssOfflineRoute() 149 astVpssChnAttr[VpssChn].u32Height = stSize.u32Height; in SAMPLE_VIO_ViOnlineVpssOfflineRoute() 331 u32BlkSize = COMMON_GetPicBufferSize(stSize.u32Width, stSize.u32Height, SAMPLE_PIXEL_FORMAT, DATA_BITWIDTH_8, 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() 367 stVpssGrpAttr.u32MaxH = stSize.u32Height; in SAMPLE_VIO_WDR_LDC_DIS_SPREAD() 373 astVpssChnAttr[VpssChn].u32Height = stSize.u32Height; in SAMPLE_VIO_WDR_LDC_DIS_SPREAD() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/smp/ |
H A D | sample_media_ai.c | 117 pstLayerAttr->stDispRect.u32Height = pstDevSize->u32Height;
in SAMPLE_VO_GetUserLayerAttr() 120 pstLayerAttr->stImageSize.u32Height = pstDevSize->u32Height;
in SAMPLE_VO_GetUserLayerAttr() 134 pstChnAttr[i].stRect.u32Height = pstDevSize->u32Height;
in SAMPLE_VO_GetUserChnAttr() 1180 HI_U32 u32Height = 0;
in SampleCommVoStartChnMipi() local 1194 u32Height = stLayerAttr.stImageSize.u32Height;
in SampleCommVoStartChnMipi() 1195 SAMPLE_PRT("enMode:%d, u32Width:%d, u32Height in SampleCommVoStartChnMipi() [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ai_infer_process/ |
H A D | ai_infer_process.c | 122 pstCnnSoftWarePara->stGetTopN.unShape.stWhc.u32Height = 1;
in SampleSvpNnieCnnSoftwareParaInit() 289 g_stCnnNnieParam.astSegData[0].astSrc[0].unShape.stWhc.u32Height,
in CnnCreate() 335 HI_U32 u32Height = 0;
in FillNnieByImg() local 360 u32Height = pstNnieParam->astSegData[segId].astSrc[nodeId].unShape.stWhc.u32Height;
in FillNnieByImg() 373 for (j = 0; j < u32Height; j++) {
in FillNnieByImg() 383 for (j = 0; j < u32Height / 2; j++) { // 2: 1/2Height
in FillNnieByImg() 398 for (j = 0; j < u32Height; j++) {
in FillNnieByImg() 411 pstNnieParam->astSegData[segId].astSrc[nodeId].u32Num*u32Chn*u32Height*u32Stride);
in FillNnieByImg() 473 pstNnieParam->astSegData[pstProcSegIdx->u32SegIdx].astDst[i].unShape.stWhc.u32Height*
in SAMPLE_SVP_NNIE_Forward() [all...] |