| /OK3568_Linux_fs/external/rockit/mpi/example/common/ |
| H A D | test_comm_vgs.cpp | 41 RK_U32 u32DstWidth = pstCtx->stImgOut.stVFrame.u32Width; in TEST_VGS_Save_DstFrame() 42 RK_U32 u32DstHeight = pstCtx->stImgOut.stVFrame.u32Height; in TEST_VGS_Save_DstFrame() 43 RK_U32 u32DstPixelFormat = pstCtx->stImgOut.stVFrame.enPixelFormat; in TEST_VGS_Save_DstFrame() 44 RK_S32 s32DstCompressMode = pstCtx->stImgOut.stVFrame.enCompressMode; in TEST_VGS_Save_DstFrame() 57 fwrite(RK_MPI_MB_Handle2VirAddr(pstCtx->stImgOut.stVFrame.pMbBlk), in TEST_VGS_Save_DstFrame() 104 RK_U32 u32SrcWidth = pstCtx->stImgIn.stVFrame.u32Width; in TEST_VGS_LoadSrcFrame() 105 RK_U32 u32SrcHeight = pstCtx->stImgIn.stVFrame.u32Height; in TEST_VGS_LoadSrcFrame() 106 PIXEL_FORMAT_E u32SrcPixelFormat = pstCtx->stImgIn.stVFrame.enPixelFormat; in TEST_VGS_LoadSrcFrame() 107 COMPRESS_MODE_E u32SrcCompressMode = pstCtx->stImgIn.stVFrame.enCompressMode; in TEST_VGS_LoadSrcFrame() 114 u32VirSrcWidth = stVideoFrame->stVFrame.u32VirWidth; in TEST_VGS_LoadSrcFrame() [all …]
|
| H A D | test_comm_sys.cpp | 44 CHECK_RET(RK_MPI_SYS_MmzAlloc_Cached(&(pstVideoFrame->stVFrame.pMbBlk), in TEST_SYS_CreateVideoFrame() 48 pstVideoFrame->stVFrame.u32Width = pstBufAttr->u32Width; in TEST_SYS_CreateVideoFrame() 49 pstVideoFrame->stVFrame.u32Height = pstBufAttr->u32Height; in TEST_SYS_CreateVideoFrame() 50 pstVideoFrame->stVFrame.u32VirWidth = stCalResult.u32VirWidth; in TEST_SYS_CreateVideoFrame() 51 pstVideoFrame->stVFrame.u32VirHeight = stCalResult.u32VirHeight; in TEST_SYS_CreateVideoFrame() 52 pstVideoFrame->stVFrame.enPixelFormat = pstBufAttr->enPixelFormat; in TEST_SYS_CreateVideoFrame() 53 pstVideoFrame->stVFrame.enCompressMode = pstBufAttr->enCompMode; in TEST_SYS_CreateVideoFrame() 487 stBufAttr.u32Width = pstVideoFrame->stVFrame.u32VirWidth; in TEST_SYS_FuzzyCompareFrameByFile() 488 stBufAttr.u32Height = pstVideoFrame->stVFrame.u32VirHeight; in TEST_SYS_FuzzyCompareFrameByFile() 489 stBufAttr.enPixelFormat = pstVideoFrame->stVFrame.enPixelFormat; in TEST_SYS_FuzzyCompareFrameByFile() [all …]
|
| H A D | test_comm_tde.cpp | 67 pstFrames->stVFrame.enCompressMode = surface->enComprocessMode; in TEST_TDE_TransSurfaceToVideoFrame() 68 pstFrames->stVFrame.pMbBlk = surface->pMbBlk; in TEST_TDE_TransSurfaceToVideoFrame() 69 pstFrames->stVFrame.u32Width = surface->u32Width; in TEST_TDE_TransSurfaceToVideoFrame() 70 pstFrames->stVFrame.u32Height = surface->u32Height; in TEST_TDE_TransSurfaceToVideoFrame() 71 pstFrames->stVFrame.u32VirWidth = surface->u32Width; in TEST_TDE_TransSurfaceToVideoFrame() 72 pstFrames->stVFrame.u32VirHeight = surface->u32Height; in TEST_TDE_TransSurfaceToVideoFrame() 73 pstFrames->stVFrame.enPixelFormat = surface->enColorFmt; in TEST_TDE_TransSurfaceToVideoFrame() 154 u32VirSrcWidth = stVideoFrame.stVFrame.u32VirWidth; in TEST_TDE_LoadSrcFrame() 155 u32VirSrcHeight = stVideoFrame.stVFrame.u32VirHeight; in TEST_TDE_LoadSrcFrame() 161 pstVideoFrame = (RK_U8 *)RK_MPI_MB_Handle2VirAddr(stVideoFrame.stVFrame.pMbBlk); in TEST_TDE_LoadSrcFrame() [all …]
|
| H A D | test_comm_utils.cpp | 156 stPicBufAttr.u32Width = pstVideoFrame->stVFrame.u32VirWidth; in TEST_COMM_FileReadOneFrame() 157 stPicBufAttr.u32Height = pstVideoFrame->stVFrame.u32VirHeight; in TEST_COMM_FileReadOneFrame() 158 stPicBufAttr.enPixelFormat = pstVideoFrame->stVFrame.enPixelFormat; in TEST_COMM_FileReadOneFrame() 159 stPicBufAttr.enCompMode = pstVideoFrame->stVFrame.enCompressMode; in TEST_COMM_FileReadOneFrame() 172 u32ReadSize = fread(RK_MPI_MB_Handle2VirAddr(pstVideoFrame->stVFrame.pMbBlk), in TEST_COMM_FileReadOneFrame() 180 RK_MPI_SYS_MmzFlushCache(pstVideoFrame->stVFrame.pMbBlk, RK_FALSE); in TEST_COMM_FileReadOneFrame() 200 stPicBufAttr.u32Width = pstVideoFrame->stVFrame.u32VirWidth; in TEST_COMM_FileWriteOneFrame() 201 stPicBufAttr.u32Height = pstVideoFrame->stVFrame.u32VirHeight; in TEST_COMM_FileWriteOneFrame() 202 stPicBufAttr.enPixelFormat = pstVideoFrame->stVFrame.enPixelFormat; in TEST_COMM_FileWriteOneFrame() 203 stPicBufAttr.enCompMode = pstVideoFrame->stVFrame.enCompressMode; in TEST_COMM_FileWriteOneFrame() [all …]
|
| H A D | test_comm_avs.cpp | 241 pstVideoFrames[AvsPipe]->stVFrame.pMbBlk = blk; in TEST_AVS_ModGetFrameFromPool() 242 pstVideoFrames[AvsPipe]->stVFrame.u32Width = pstBufAttr.u32Width; in TEST_AVS_ModGetFrameFromPool() 243 pstVideoFrames[AvsPipe]->stVFrame.u32Height = pstBufAttr.u32Height; in TEST_AVS_ModGetFrameFromPool() 244 pstVideoFrames[AvsPipe]->stVFrame.u32VirWidth = stMbPicCalResult.u32VirWidth; in TEST_AVS_ModGetFrameFromPool() 245 pstVideoFrames[AvsPipe]->stVFrame.u32VirHeight = stMbPicCalResult.u32VirHeight; in TEST_AVS_ModGetFrameFromPool() 246 pstVideoFrames[AvsPipe]->stVFrame.enPixelFormat = pstBufAttr.enPixelFormat; in TEST_AVS_ModGetFrameFromPool() 247 pstVideoFrames[AvsPipe]->stVFrame.enCompressMode = pstBufAttr.enCompMode; in TEST_AVS_ModGetFrameFromPool() 273 … (RK_U8 *)RK_MPI_MB_Handle2VirAddr(pstVideoFrames[AvsPipe]->stVFrame.pMbBlk), in TEST_AVS_ModGetFrameFromPool() 276 RK_MPI_CAL_COMM_GetHorStride(pstVideoFrames[AvsPipe]->stVFrame.u32Width, in TEST_AVS_ModGetFrameFromPool() 277 pstVideoFrames[AvsPipe]->stVFrame.enPixelFormat), in TEST_AVS_ModGetFrameFromPool() [all …]
|
| H A D | test_comm_vpss.cpp | 264 frameIn.stVFrame.pMbBlk = srcBlk; in TEST_VPSS_Proc() 265 frameIn.stVFrame.u32Width = pstCtx->stProcCtx.u32RawWidth; in TEST_VPSS_Proc() 266 frameIn.stVFrame.u32Height = pstCtx->stProcCtx.u32RawHeight; in TEST_VPSS_Proc() 267 frameIn.stVFrame.u32VirWidth = stMbPicCalResult.u32VirWidth; in TEST_VPSS_Proc() 268 frameIn.stVFrame.u32VirHeight = stMbPicCalResult.u32VirHeight; in TEST_VPSS_Proc() 269 frameIn.stVFrame.enPixelFormat = (PIXEL_FORMAT_E)pstCtx->stProcCtx.u32RawPixelFmt; in TEST_VPSS_Proc() 270 frameIn.stVFrame.enCompressMode = COMPRESS_MODE_NONE; in TEST_VPSS_Proc() 283 …RK_LOGI("get chn[%d] frame %p length %d", i, frameOut.stVFrame.pMbBlk, stMbPicCalResult.u32MBSize); in TEST_VPSS_Proc() 285 RK_MPI_SYS_MmzFlushCache(frameOut.stVFrame.pMbBlk, RK_TRUE); in TEST_VPSS_Proc() 286 fwrite(RK_MPI_MB_Handle2VirAddr(frameOut.stVFrame.pMbBlk), in TEST_VPSS_Proc()
|
| H A D | test_mod_vpss.cpp | 121 pstCtx->dstFilePath, stChnFrameInfos[i].stVFrame.u32VirWidth, in TEST_VPSS_ModSingleTest() 122 stChnFrameInfos[i].stVFrame.u32VirHeight, pstCtx->s32GrpIndex, i); in TEST_VPSS_ModSingleTest() 312 (RK_U8 *)RK_MPI_MB_Handle2VirAddr(stVideoFrame.stVFrame.pMbBlk), in TEST_VPSS_ModSendFrame() 322 RK_MPI_SYS_MmzFlushCache(stVideoFrame.stVFrame.pMbBlk, RK_FALSE); in TEST_VPSS_ModSendFrame() 330 RK_MPI_MB_ReleaseMB(stVideoFrame.stVFrame.pMbBlk); in TEST_VPSS_ModSendFrame()
|
| H A D | test_comm_venc.cpp | 355 stFrame.stVFrame.pMbBlk = blk; in TEST_VENC_SendVencFrameProc() 356 stFrame.stVFrame.u32Width = stChnAttr.stVencAttr.u32PicWidth; in TEST_VENC_SendVencFrameProc() 357 stFrame.stVFrame.u32Height = stChnAttr.stVencAttr.u32PicHeight; in TEST_VENC_SendVencFrameProc() 358 stFrame.stVFrame.u32VirWidth = stMbPicCalResult.u32VirWidth; in TEST_VENC_SendVencFrameProc() 359 stFrame.stVFrame.u32VirHeight = stMbPicCalResult.u32VirHeight; in TEST_VENC_SendVencFrameProc() 360 stFrame.stVFrame.enPixelFormat = pstThreadInfo->stVencCtx.enPixFmt; in TEST_VENC_SendVencFrameProc() 361 stFrame.stVFrame.u32FrameFlag |= s32ReachEOS ? FRAME_FLAG_SNAP_END : 0; in TEST_VENC_SendVencFrameProc()
|
| /OK3568_Linux_fs/external/rockit/mpi/example/mod/ |
| H A D | test_mpi_vgs.cpp | 166 pTaskAttr->stImgIn.stVFrame = videoFrameIn; in unit_test_vgs_generate_scale_task() 167 pTaskAttr->stImgOut.stVFrame = videoFrameOut; in unit_test_vgs_generate_scale_task() 169 pTaskAttr->stImgIn.stVFrame.u32Width, in unit_test_vgs_generate_scale_task() 170 pTaskAttr->stImgIn.stVFrame.u32Height, in unit_test_vgs_generate_scale_task() 171 pTaskAttr->stImgOut.stVFrame.u32Width, in unit_test_vgs_generate_scale_task() 172 pTaskAttr->stImgOut.stVFrame.u32Height); in unit_test_vgs_generate_scale_task() 228 pTaskAttr->stImgIn.stVFrame = videoFrameIn; in unit_test_vgs_generate_rotation_task() 229 pTaskAttr->stImgOut.stVFrame = videoFrameOut; in unit_test_vgs_generate_rotation_task() 231 pTaskAttr->stImgIn.stVFrame.u32Width, in unit_test_vgs_generate_rotation_task() 232 pTaskAttr->stImgIn.stVFrame.u32Height, in unit_test_vgs_generate_rotation_task() [all …]
|
| H A D | test_mpi_vdec.cpp | 87 base = (RK_U8 *)RK_MPI_MB_Handle2VirAddr(pstFrame->stVFrame.pMbBlk); in dump_frame_to_file() 88 RK_MPI_SYS_MmzFlushCache(pstFrame->stVFrame.pMbBlk, RK_TRUE); in dump_frame_to_file() 89 width = pstFrame->stVFrame.u32Width; in dump_frame_to_file() 90 height = pstFrame->stVFrame.u32Height; in dump_frame_to_file() 92 switch (pstFrame->stVFrame.enPixelFormat) { in dump_frame_to_file() 95 h_stride = pstFrame->stVFrame.u32VirWidth; in dump_frame_to_file() 96 v_stride = pstFrame->stVFrame.u32VirHeight; in dump_frame_to_file() 110 h_stride = pstFrame->stVFrame.u32VirWidth * 10 / 8; in dump_frame_to_file() 111 v_stride = pstFrame->stVFrame.u32VirHeight; in dump_frame_to_file() 126 h_stride = pstFrame->stVFrame.u32VirWidth * 2; in dump_frame_to_file() [all …]
|
| H A D | test_mpi_gdc.cpp | 1195 stLineFrame.stVFrame.u32Width = ctx->u32LineWidth; in test_mpi_gdc_api() 1196 stLineFrame.stVFrame.u32Height = ctx->u32LineHeight; in test_mpi_gdc_api() 1197 stLineFrame.stVFrame.u32VirWidth = ctx->u32LineWidth; in test_mpi_gdc_api() 1198 stLineFrame.stVFrame.u32VirHeight = ctx->u32LineHeight; in test_mpi_gdc_api() 1199 stLineFrame.stVFrame.enPixelFormat = RK_FMT_BGRA5551; in test_mpi_gdc_api() 1200 stLineFrame.stVFrame.enCompressMode = COMPRESS_MODE_NONE; in test_mpi_gdc_api() 1201 stLineFrame.stVFrame.pMbBlk = pLineMbBlk; in test_mpi_gdc_api() 1237 … ctx->stTask.stImgIn.stVFrame.pMbBlk = RK_MPI_MB_GetMB(ctx->inPool, ctx->u32SrcSize, RK_TRUE); in test_mpi_gdc_api() 1238 if (RK_NULL == ctx->stTask.stImgIn.stVFrame.pMbBlk) { in test_mpi_gdc_api() 1242 ctx->stTask.stImgIn.stVFrame.u32Width = ctx->u32SrcWidth; in test_mpi_gdc_api() [all …]
|
| H A D | test_mpi_vo.cpp | 1451 pVFrame->stVFrame.pMbBlk = pMblk; in Sample_VO_SetVFrame() 1452 pVFrame->stVFrame.u32Width = u32Width; in Sample_VO_SetVFrame() 1453 pVFrame->stVFrame.u32Height = u32Height; in Sample_VO_SetVFrame() 1454 pVFrame->stVFrame.u32VirWidth = u32VirWidth; in Sample_VO_SetVFrame() 1455 pVFrame->stVFrame.u32VirHeight = u32VirHeight; in Sample_VO_SetVFrame() 1456 pVFrame->stVFrame.enPixelFormat = enPixelFormat; in Sample_VO_SetVFrame() 1545 pstVFrame->stVFrame.u32Width = 720; in Sample_VO_SendPicture_Mosaic() 1546 pstVFrame->stVFrame.u32Height = 480; in Sample_VO_SendPicture_Mosaic() 1547 pstVFrame->stVFrame.u32VirWidth = 720; in Sample_VO_SendPicture_Mosaic() 1548 pstVFrame->stVFrame in Sample_VO_SendPicture_Mosaic() [all...] |
| H A D | test_mpi_vi.cpp | 649 s32Ret = readFromPic(ctx, &ctx->stUsrPic.unUsrPic.stUsrPicFrm.stVFrame); in test_vi_init() 1088 ctx->stUsrPic.unUsrPic.stUsrPicFrm.stVFrame.pMbBlk) { in test_vi_get_release_frame_loop() 1089 RK_MPI_MMZ_Free(ctx->stUsrPic.unUsrPic.stUsrPicFrm.stVFrame.pMbBlk); in test_vi_get_release_frame_loop() 1090 ctx->stUsrPic.unUsrPic.stUsrPicFrm.stVFrame.pMbBlk = RK_NULL; in test_vi_get_release_frame_loop() 1101 void *data = RK_MPI_MB_Handle2VirAddr(ctx->stViFrame.stVFrame.pMbBlk); in test_vi_get_release_frame_loop() 1104 ctx->stViFrame.stVFrame.u32TimeRef, ctx->stViFrame.stVFrame.u64PTS/1000, in test_vi_get_release_frame_loop() 1105 RK_MPI_MB_GetLength(ctx->stViFrame.stVFrame.pMbBlk)); in test_vi_get_release_frame_loop() 1120 nowUs - ctx->stViFrame.stVFrame.u64PTS); in test_vi_get_release_frame_loop() 1268 void *data = RK_MPI_MB_Handle2VirAddr(pstViCtx[i]->stViFrame.stVFrame.pMbBlk); in test_vi_muti_vi_loop() 1271 data, loopCount, pstViCtx[i]->stViFrame.stVFrame.u32TimeRef, in test_vi_muti_vi_loop() [all …]
|
| H A D | test_mpi_venc.cpp | 395 stFrame.stVFrame.pMbBlk = blk; in venc_send_frame() 396 stFrame.stVFrame.u32Width = pstCtx->u32SrcWidth; in venc_send_frame() 397 stFrame.stVFrame.u32Height = pstCtx->u32SrcHeight; in venc_send_frame() 398 stFrame.stVFrame.u32VirWidth = pstCtx->u32srcVirWidth; in venc_send_frame() 399 stFrame.stVFrame.u32VirHeight = pstCtx->u32srcVirHeight; in venc_send_frame() 400 stFrame.stVFrame.enPixelFormat = (PIXEL_FORMAT_E)pstCtx->u32SrcPixFormat; in venc_send_frame() 401 stFrame.stVFrame.u32FrameFlag |= s32ReachEOS ? FRAME_FLAG_SNAP_END : 0; in venc_send_frame() 402 stFrame.stVFrame.enCompressMode = pstCtx->enCompressMode; in venc_send_frame()
|
| /OK3568_Linux_fs/external/rockit/mpi/sdk/include/ |
| H A D | rk_comm_video.h | 502 VIDEO_FRAME_S stVFrame; member
|