Searched refs:JpegHalCtx (Results 1 – 3 of 3) sorted by relevance
729 JpegdHalCtx *JpegHalCtx = (JpegdHalCtx *)hal; in hal_jpegd_vdpu1_init() local731 mpp_assert(JpegHalCtx); in hal_jpegd_vdpu1_init()735 JpegHalCtx->packet_slots = cfg->packet_slots; in hal_jpegd_vdpu1_init()736 JpegHalCtx->frame_slots = cfg->frame_slots; in hal_jpegd_vdpu1_init()737 JpegHalCtx->dev_type = VPU_CLIENT_VDPU1; in hal_jpegd_vdpu1_init()739 ret = mpp_dev_init(&JpegHalCtx->dev, JpegHalCtx->dev_type); in hal_jpegd_vdpu1_init()744 cfg->dev = JpegHalCtx->dev; in hal_jpegd_vdpu1_init()747 if (JpegHalCtx->regs == NULL) { in hal_jpegd_vdpu1_init()748 JpegHalCtx->regs = mpp_calloc_size(void, sizeof(JpegdIocRegInfo)); in hal_jpegd_vdpu1_init()749 if (JpegHalCtx->regs == NULL) { in hal_jpegd_vdpu1_init()[all …]
719 JpegdHalCtx *JpegHalCtx = (JpegdHalCtx *)hal; in hal_jpegd_vdpu2_init() local721 mpp_assert(JpegHalCtx); in hal_jpegd_vdpu2_init()725 JpegHalCtx->packet_slots = cfg->packet_slots; in hal_jpegd_vdpu2_init()726 JpegHalCtx->frame_slots = cfg->frame_slots; in hal_jpegd_vdpu2_init()727 JpegHalCtx->dev_type = VPU_CLIENT_VDPU2; in hal_jpegd_vdpu2_init()729 ret = mpp_dev_init(&JpegHalCtx->dev, JpegHalCtx->dev_type); in hal_jpegd_vdpu2_init()734 cfg->dev = JpegHalCtx->dev; in hal_jpegd_vdpu2_init()743 JpegHalCtx->regs = (void *)info; in hal_jpegd_vdpu2_init()746 if (JpegHalCtx->group == NULL) { in hal_jpegd_vdpu2_init()747 ret = mpp_buffer_group_get_internal(&JpegHalCtx->group, in hal_jpegd_vdpu2_init()[all …]
771 JpegdHalCtx *JpegHalCtx = (JpegdHalCtx *)hal; in hal_jpegd_rkv_control() local773 if (NULL == JpegHalCtx) { in hal_jpegd_rkv_control()780 JpegHalCtx->output_fmt = *((MppFrameFormat *)param); in hal_jpegd_rkv_control()781 JpegHalCtx->set_output_fmt_flag = 1; in hal_jpegd_rkv_control()782 jpegd_dbg_hal("output_format:%d\n", JpegHalCtx->output_fmt); in hal_jpegd_rkv_control()784 …if ((!MPP_FRAME_FMT_IS_YUV(JpegHalCtx->output_fmt) && !MPP_FRAME_FMT_IS_RGB(JpegHalCtx->output_fmt… in hal_jpegd_rkv_control()785 || MPP_FRAME_FMT_IS_FBC(JpegHalCtx->output_fmt)) { in hal_jpegd_rkv_control()786 mpp_err_f("output format %d is invalid.\n", JpegHalCtx->output_fmt); in hal_jpegd_rkv_control()