Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 25 of 27) sorted by relevance

12

/rockchip-linux_mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu_v2.c161 MPP_RET h264e_vepu_buf_init(HalH264eVepuBufs *bufs) in h264e_vepu_buf_init() argument
165 hal_h264e_dbg_buffer("enter %p\n", bufs); in h264e_vepu_buf_init()
167 memset(bufs, 0, sizeof(*bufs)); in h264e_vepu_buf_init()
170 bufs->cabac_init_idc = -1; in h264e_vepu_buf_init()
171 ret = mpp_buffer_group_get_internal(&bufs->group, MPP_BUFFER_TYPE_ION); in h264e_vepu_buf_init()
175 hal_h264e_dbg_buffer("leave %p\n", bufs); in h264e_vepu_buf_init()
180 MPP_RET h264e_vepu_buf_deinit(HalH264eVepuBufs *bufs) in h264e_vepu_buf_deinit() argument
184 hal_h264e_dbg_buffer("enter %p\n", bufs); in h264e_vepu_buf_deinit()
186 if (bufs->cabac_table) in h264e_vepu_buf_deinit()
187 mpp_buffer_put(bufs->cabac_table); in h264e_vepu_buf_deinit()
[all …]
H A Dhal_h264e_vepu_v2.h179 MPP_RET h264e_vepu_buf_init(HalH264eVepuBufs *bufs);
180 MPP_RET h264e_vepu_buf_deinit(HalH264eVepuBufs *bufs);
182 MPP_RET h264e_vepu_buf_set_cabac_idc(HalH264eVepuBufs *bufs, RK_S32 idc);
183 MPP_RET h264e_vepu_buf_set_frame_size(HalH264eVepuBufs *bufs, RK_S32 w, RK_S32 h);
185 MppBuffer h264e_vepu_buf_get_nal_size_table(HalH264eVepuBufs *bufs);
186 MppBuffer h264e_vepu_buf_get_frame_buffer(HalH264eVepuBufs *bufs, RK_S32 index);
/rockchip-linux_mpp/mpp/hal/common/
H A Dhal_bufs.c51 RK_U8 *bufs; member
60 return (HalBuf *)(impl->bufs + idx * elem_size); in hal_bufs_pos()
98 MPP_FREE(impl->bufs); in hal_bufs_clear()
103 MPP_RET hal_bufs_init(HalBufs *bufs) in hal_bufs_init() argument
107 if (NULL == bufs) { in hal_bufs_init()
124 *bufs = impl; in hal_bufs_init()
131 MPP_RET hal_bufs_deinit(HalBufs bufs) in hal_bufs_deinit() argument
133 HalBufsImpl *impl = (HalBufsImpl *)bufs; in hal_bufs_deinit()
136 if (NULL == bufs) { in hal_bufs_deinit()
158 MPP_RET hal_bufs_setup(HalBufs bufs, RK_S32 max_cnt, RK_S32 size_cnt, size_t sizes[]) in hal_bufs_setup() argument
[all …]
H A Dhal_bufs.h34 MPP_RET hal_bufs_init(HalBufs *bufs);
35 MPP_RET hal_bufs_deinit(HalBufs bufs);
37 MPP_RET hal_bufs_setup(HalBufs bufs, RK_S32 max_cnt, RK_S32 size_cnt, size_t sizes[]);
38 HalBuf *hal_bufs_get_buf(HalBufs bufs, RK_S32 buf_idx);
/rockchip-linux_mpp/utils/
H A Dmpi_dec_utils.c79 MppBuffer *bufs; member
801 if (impl->buf_count && impl->bufs) { in dec_buf_mgr_deinit()
805 if (impl->bufs[i]) { in dec_buf_mgr_deinit()
806 mpp_buffer_put(impl->bufs[i]); in dec_buf_mgr_deinit()
807 impl->bufs[i] = NULL; in dec_buf_mgr_deinit()
811 MPP_FREE(impl->bufs); in dec_buf_mgr_deinit()
837 if (impl->bufs) { in dec_buf_mgr_setup()
841 if (impl->bufs[i]) { in dec_buf_mgr_setup()
842 mpp_buffer_put(impl->bufs[i]); in dec_buf_mgr_setup()
843 impl->bufs[i] = NULL; in dec_buf_mgr_setup()
[all …]
/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_ps.c1920 MPP_FREE(pps->bufs.column_width); in mpp_hevc_pps_free()
1921 MPP_FREE(pps->bufs.row_height); in mpp_hevc_pps_free()
1931 HevcPpsBufInfo *bufs = NULL; in mpp_hevc_decode_nal_pps() local
1951 bufs = &(((HEVCPPS *)s->pps_list[pps_id])->bufs); in mpp_hevc_decode_nal_pps()
1953 bufs = &pps->bufs; in mpp_hevc_decode_nal_pps()
2079 if (bufs->column_width_size < buf_size) { in mpp_hevc_decode_nal_pps()
2080 bufs->column_width = mpp_malloc_size(RK_U32, buf_size); in mpp_hevc_decode_nal_pps()
2081 bufs->column_width_size = buf_size; in mpp_hevc_decode_nal_pps()
2085 if (bufs->row_height_size < buf_size) { in mpp_hevc_decode_nal_pps()
2086 bufs->row_height = mpp_malloc_size(RK_U32, buf_size); in mpp_hevc_decode_nal_pps()
[all …]
H A Dh265d_parser2_syntax.c154 pp->column_width_minus1[i] = pps->bufs.column_width[i] - 1; in fill_picture_parameters()
157 pp->row_height_minus1[i] = pps->bufs.row_height[i] - 1; in fill_picture_parameters()
H A Dh265d_parser.h376 HevcPpsBufInfo bufs; member
/rockchip-linux_mpp/mpp/hal/rkdec/avs2d/
H A Dhal_avs2d_vdpu383.c62 MppBuffer bufs; member
519 if (reg_ctx->bufs) { in hal_avs2d_vdpu383_deinit()
520 mpp_buffer_put(reg_ctx->bufs); in hal_avs2d_vdpu383_deinit()
521 reg_ctx->bufs = NULL; in hal_avs2d_vdpu383_deinit()
552 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, AVS2_ALL_TBL_BUF_SIZE(loop))); in hal_avs2d_vdpu383_init()
553 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_avs2d_vdpu383_init()
554 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in hal_avs2d_vdpu383_init()
555 mpp_buffer_attach_dev(reg_ctx->bufs, p_hal->dev); in hal_avs2d_vdpu383_init()
703 mpp_buffer_sync_end(reg_ctx->bufs); in hal_avs2d_vdpu383_gen_regs()
H A Dhal_avs2d_rkv.c70 MppBuffer bufs; member
496 if (reg_ctx->bufs) { in hal_avs2d_rkv_deinit()
497 mpp_buffer_put(reg_ctx->bufs); in hal_avs2d_rkv_deinit()
498 reg_ctx->bufs = NULL; in hal_avs2d_rkv_deinit()
529 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, AVS2_ALL_TBL_BUF_SIZE(loop))); in hal_avs2d_rkv_init()
530 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_avs2d_rkv_init()
531 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in hal_avs2d_rkv_init()
711 mpp_buffer_sync_end(reg_ctx->bufs); in hal_avs2d_rkv_gen_regs()
H A Dhal_avs2d_vdpu382.c70 MppBuffer bufs; member
562 if (reg_ctx->bufs) { in hal_avs2d_vdpu382_deinit()
563 mpp_buffer_put(reg_ctx->bufs); in hal_avs2d_vdpu382_deinit()
564 reg_ctx->bufs = NULL; in hal_avs2d_vdpu382_deinit()
595 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, AVS2_ALL_TBL_BUF_SIZE(loop))); in hal_avs2d_vdpu382_init()
596 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_avs2d_vdpu382_init()
597 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in hal_avs2d_vdpu382_init()
778 mpp_buffer_sync_end(reg_ctx->bufs); in hal_avs2d_vdpu382_gen_regs()
/rockchip-linux_mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_vdpu384a.c74 MppBuffer bufs; member
601 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, in vdpu384a_h264d_init()
603 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu384a_h264d_init()
604 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu384a_h264d_init()
613 mpp_buffer_attach_dev(reg_ctx->bufs, p_hal->dev); in vdpu384a_h264d_init()
646 if (reg_ctx->bufs) { in vdpu384a_h264d_deinit()
647 mpp_buffer_put(reg_ctx->bufs); in vdpu384a_h264d_deinit()
648 reg_ctx->bufs = NULL; in vdpu384a_h264d_deinit()
861 mpp_buffer_sync_end(ctx->bufs); in vdpu384a_h264d_gen_regs()
H A Dhal_h264d_vdpu383.c84 MppBuffer bufs; member
643 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, in vdpu383_h264d_init()
645 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu383_h264d_init()
646 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu383_h264d_init()
657 mpp_buffer_attach_dev(reg_ctx->bufs, p_hal->dev); in vdpu383_h264d_init()
695 if (reg_ctx->bufs) { in vdpu383_h264d_deinit()
696 mpp_buffer_put(reg_ctx->bufs); in vdpu383_h264d_deinit()
697 reg_ctx->bufs = NULL; in vdpu383_h264d_deinit()
915 mpp_buffer_sync_end(ctx->bufs); in vdpu383_h264d_gen_regs()
H A Dhal_h264d_vdpu34x.c137 MppBuffer bufs; member
721 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, in vdpu34x_h264d_init()
723 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu34x_h264d_init()
724 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu34x_h264d_init()
771 mpp_buffer_put(reg_ctx->bufs); in vdpu34x_h264d_deinit()
998 mpp_buffer_sync_end(ctx->bufs); in vdpu34x_h264d_gen_regs()
H A Dhal_h264d_vdpu382.c141 MppBuffer bufs; member
742 FUN_CHECK(ret = mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, in vdpu382_h264d_init()
744 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in vdpu382_h264d_init()
745 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in vdpu382_h264d_init()
800 mpp_buffer_put(reg_ctx->bufs); in vdpu382_h264d_deinit()
1052 mpp_buffer_sync_end(ctx->bufs); in vdpu382_h264d_gen_regs()
/rockchip-linux_mpp/mpp/hal/rkdec/h265d/
H A Dhal_h265d_vdpu382.c133 ret = mpp_buffer_get(reg_ctx->group, &reg_ctx->bufs, ALL_BUFFER_SIZE(max_cnt)); in hal_h265d_vdpu382_init()
139 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_h265d_vdpu382_init()
156 ret = mpp_buffer_write(reg_ctx->bufs, 0, (void*)cabac_table, sizeof(cabac_table)); in hal_h265d_vdpu382_init()
180 if (reg_ctx->bufs) { in hal_h265d_vdpu382_deinit()
181 mpp_buffer_put(reg_ctx->bufs); in hal_h265d_vdpu382_deinit()
182 reg_ctx->bufs = NULL; in hal_h265d_vdpu382_deinit()
231 void *pps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->spspps_offset; in hal_h265d_v382_output_pps_packet()
407 RK_U8 *ptr_scaling = (RK_U8 *)mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->sclst_offset; in hal_h265d_v382_output_pps_packet()
696 rps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->rps_offset; in hal_h265d_vdpu382_gen_regs()
941 mpp_buffer_sync_end(reg_ctx->bufs); in hal_h265d_vdpu382_gen_regs()
H A Dhal_h265d_vdpu34x.c135 ret = mpp_buffer_get(reg_ctx->group, &reg_ctx->bufs, ALL_BUFFER_SIZE(max_cnt)); in hal_h265d_vdpu34x_init()
141 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_h265d_vdpu34x_init()
158 ret = mpp_buffer_write(reg_ctx->bufs, 0, (void*)cabac_table, sizeof(cabac_table)); in hal_h265d_vdpu34x_init()
182 if (reg_ctx->bufs) { in hal_h265d_vdpu34x_deinit()
183 mpp_buffer_put(reg_ctx->bufs); in hal_h265d_vdpu34x_deinit()
184 reg_ctx->bufs = NULL; in hal_h265d_vdpu34x_deinit()
238 void *pps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->spspps_offset; in hal_h265d_v345_output_pps_packet()
414 RK_U8 *ptr_scaling = (RK_U8 *)mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->sclst_offset; in hal_h265d_v345_output_pps_packet()
462 void *pps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->spspps_offset; in hal_h265d_output_pps_packet()
890 rps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->rps_offset; in hal_h265d_vdpu34x_gen_regs()
[all …]
H A Dhal_h265d_vdpu383.c145 ret = mpp_buffer_get(reg_ctx->group, &reg_ctx->bufs, ALL_BUFFER_SIZE(max_cnt)); in hal_h265d_vdpu383_init()
151 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_h265d_vdpu383_init()
160 mpp_buffer_attach_dev(reg_ctx->bufs, reg_ctx->dev); in hal_h265d_vdpu383_init()
170 ret = mpp_buffer_write(reg_ctx->bufs, 0, (void*)cabac_table, sizeof(cabac_table)); in hal_h265d_vdpu383_init()
191 if (reg_ctx->bufs) { in hal_h265d_vdpu383_deinit()
192 mpp_buffer_put(reg_ctx->bufs); in hal_h265d_vdpu383_deinit()
193 reg_ctx->bufs = NULL; in hal_h265d_vdpu383_deinit()
393 void *pps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->spspps_offset; in hal_h265d_v345_output_pps_packet()
614 RK_U8 *ptr_scaling = (RK_U8 *)mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->sclst_offset; in hal_h265d_v345_output_pps_packet()
904 rps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->rps_offset; in hal_h265d_vdpu383_gen_regs()
[all …]
H A Dhal_h265d_ctx.h81 MppBuffer bufs; member
H A Dhal_h265d_vdpu384a.c123 ret = mpp_buffer_get(reg_ctx->group, &reg_ctx->bufs, ALL_BUFFER_SIZE(max_cnt)); in hal_h265d_vdpu384a_init()
129 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_h265d_vdpu384a_init()
136 mpp_buffer_attach_dev(reg_ctx->bufs, reg_ctx->dev); in hal_h265d_vdpu384a_init()
160 if (reg_ctx->bufs) { in hal_h265d_vdpu384a_deinit()
161 mpp_buffer_put(reg_ctx->bufs); in hal_h265d_vdpu384a_deinit()
162 reg_ctx->bufs = NULL; in hal_h265d_vdpu384a_deinit()
361 void *pps_ptr = mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->spspps_offset; in hal_h265d_v345_output_pps_packet()
610 RK_U8 *ptr_scaling = (RK_U8 *)mpp_buffer_get_ptr(reg_ctx->bufs) + reg_ctx->sclst_offset; in hal_h265d_v345_output_pps_packet()
1131 mpp_buffer_sync_end(reg_ctx->bufs); in hal_h265d_vdpu384a_gen_regs()
/rockchip-linux_mpp/mpp/hal/vpu/av1d/
H A Dhal_av1d_vdpu.c374 static void set_ref_lum_base(VdpuAv1dRegSet *regs, RK_S32 i, RK_S32 val, HalBufs bufs) in set_ref_lum_base() argument
377 tile_out_buf = hal_bufs_get_buf(bufs, val); in set_ref_lum_base()
425 static void set_ref_cb_base(Av1dHalCtx *p_hal, RK_S32 i, RK_S32 val, HalBufs bufs, RK_U32 offset) in set_ref_cb_base() argument
430 tile_out_buf = hal_bufs_get_buf(bufs, val); in set_ref_cb_base()
488 static void set_ref_dbase(Av1dHalCtx *p_hal, RK_S32 i, RK_S32 val, HalBufs bufs, RK_U32 offset) in set_ref_dbase() argument
493 tile_out_buf = hal_bufs_get_buf(bufs, val); in set_ref_dbase()
549 static void set_ref_ty_base(VdpuAv1dRegSet *regs, RK_S32 i, RK_S32 val, HalBufs bufs) in set_ref_ty_base() argument
554 tile_out_buf = hal_bufs_get_buf(bufs, val); in set_ref_ty_base()
601 static void set_ref_tc_base(VdpuAv1dRegSet *regs, RK_S32 i, RK_S32 val, HalBufs bufs) in set_ref_tc_base() argument
606 tile_out_buf = hal_bufs_get_buf(bufs, val); in set_ref_tc_base()
/rockchip-linux_mpp/mpp/hal/rkdec/av1d/
H A Dhal_av1d_vdpu383.c153 MppBuffer bufs; member
1307 …BUF_CHECK(ret, mpp_buffer_get(p_hal->buf_group, &reg_ctx->bufs, MPP_ALIGN(VDPU383_INFO_BUF_SIZE(ma… in hal_av1d_alloc_res()
1308 mpp_buffer_attach_dev(reg_ctx->bufs, p_hal->dev); in hal_av1d_alloc_res()
1309 reg_ctx->bufs_fd = mpp_buffer_get_fd(reg_ctx->bufs); in hal_av1d_alloc_res()
1310 reg_ctx->bufs_ptr = mpp_buffer_get_ptr(reg_ctx->bufs); in hal_av1d_alloc_res()
1352 BUF_PUT(reg_ctx->bufs); in hal_av1d_release_res()
2439 mpp_buffer_sync_end(ctx->bufs); in vdpu383_av1d_gen_regs()
/rockchip-linux_mpp/mpp/hal/rkenc/h264e/
H A Dhal_h264e_vepu541.c1132 H264eFrmInfo *frms, HalBufs bufs, in setup_vepu541_recn_refr() argument
1135 HalBuf *curr = hal_bufs_get_buf(bufs, frms->curr_idx); in setup_vepu541_recn_refr()
1136 HalBuf *refr = hal_bufs_get_buf(bufs, frms->refr_idx); in setup_vepu541_recn_refr()
H A Dhal_h264e_vepu540c.c1067 HalBufs bufs = ctx->hw_recn; in setup_vepu540c_recn_refr() local
1070 HalBuf *curr = hal_bufs_get_buf(bufs, frms->curr_idx); in setup_vepu540c_recn_refr()
1071 HalBuf *refr = hal_bufs_get_buf(bufs, frms->refr_idx); in setup_vepu540c_recn_refr()
H A Dhal_h264e_vepu580.c1630 HalBufs bufs = ctx->hw_recn; in setup_vepu580_recn_refr() local
1633 HalBuf *curr = hal_bufs_get_buf(bufs, frms->curr_idx); in setup_vepu580_recn_refr()
1634 HalBuf *refr = hal_bufs_get_buf(bufs, frms->refr_idx); in setup_vepu580_recn_refr()

12