| /rockchip-linux_mpp/mpp/hal/rkdec/vp9d/ |
| H A D | hal_vp9d_rkv.c | 59 Vp9dRkvCtx *hw_ctx = (Vp9dRkvCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local 63 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(VP9_REGS)); in hal_vp9d_alloc_res() 65 &hw_ctx->g_buf[i].probe_base, PROB_SIZE); in hal_vp9d_alloc_res() 71 &hw_ctx->g_buf[i].count_base, COUNT_SIZE); in hal_vp9d_alloc_res() 77 &hw_ctx->g_buf[i].segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res() 83 &hw_ctx->g_buf[i].segid_last_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res() 90 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(VP9_REGS)); in hal_vp9d_alloc_res() 91 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, PROB_SIZE); in hal_vp9d_alloc_res() 96 ret = mpp_buffer_get(p_hal->group, &hw_ctx->count_base, COUNT_SIZE); in hal_vp9d_alloc_res() 101 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res() [all …]
|
| H A D | hal_vp9d_vdpu383.c | 109 Vdpu383Vp9dCtx *hw_ctx = (Vdpu383Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local 115 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res() 120 mpp_buffer_attach_dev(hw_ctx->prob_loop_base[i], p_hal->dev); in hal_vp9d_alloc_res() 122 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res() 127 mpp_buffer_attach_dev(hw_ctx->prob_default_base, p_hal->dev); in hal_vp9d_alloc_res() 129 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_cur_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res() 134 mpp_buffer_attach_dev(hw_ctx->segid_cur_base, p_hal->dev); in hal_vp9d_alloc_res() 135 ret = mpp_buffer_get(p_hal->group, &hw_ctx->segid_last_base, MAX_SEGMAP_SIZE); in hal_vp9d_alloc_res() 140 mpp_buffer_attach_dev(hw_ctx->segid_last_base, p_hal->dev); in hal_vp9d_alloc_res() 145 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu383Vp9dRegSet)); in hal_vp9d_alloc_res() [all …]
|
| H A D | hal_vp9d_vdpu34x.c | 88 Vdpu34xVp9dCtx *hw_ctx = (Vdpu34xVp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local 89 hw_ctx->offset_count = VDPU34X_OFFSET_COUNT; in hal_vp9d_alloc_res() 90 hw_ctx->offset_segid_cur = 0; in hal_vp9d_alloc_res() 91 hw_ctx->offset_segid_last = MAX_SEGMAP_SIZE_ALIGN_TO_4K; in hal_vp9d_alloc_res() 94 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res() 100 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res() 108 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu34xVp9dRegSet)); in hal_vp9d_alloc_res() 109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU34X_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res() 116 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(Vdpu34xVp9dRegSet)); in hal_vp9d_alloc_res() 117 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, VDPU34X_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res() [all …]
|
| H A D | hal_vp9d_vdpu382.c | 88 Vdpu382Vp9dCtx *hw_ctx = (Vdpu382Vp9dCtx*)p_hal->hw_ctx; in hal_vp9d_alloc_res() local 89 hw_ctx->offset_count = VDPU382_OFFSET_COUNT; in hal_vp9d_alloc_res() 90 hw_ctx->offset_segid_cur = 0; in hal_vp9d_alloc_res() 91 hw_ctx->offset_segid_last = MAX_SEGMAP_SIZE_ALIGN_TO_4K; in hal_vp9d_alloc_res() 94 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_loop_base[i], PROB_SIZE); in hal_vp9d_alloc_res() 100 ret = mpp_buffer_get(p_hal->group, &hw_ctx->prob_default_base, PROB_SIZE); in hal_vp9d_alloc_res() 108 hw_ctx->g_buf[i].hw_regs = mpp_calloc_size(void, sizeof(Vdpu382Vp9dRegSet)); in hal_vp9d_alloc_res() 109 … ret = mpp_buffer_get(p_hal->group, &hw_ctx->g_buf[i].probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res() 116 hw_ctx->hw_regs = mpp_calloc_size(void, sizeof(Vdpu382Vp9dRegSet)); in hal_vp9d_alloc_res() 117 ret = mpp_buffer_get(p_hal->group, &hw_ctx->probe_base, VDPU382_PROBE_BUFFER_SIZE); in hal_vp9d_alloc_res() [all …]
|
| H A D | hal_vp9d_ctx.h | 66 void* hw_ctx; member
|
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_api_v2.c | 36 void *hw_ctx; member 46 void* hw_ctx = NULL; in hal_vp8e_init() local 69 hw_ctx = mpp_calloc_size(void, p_api->ctx_size); in hal_vp8e_init() 70 if (NULL == hw_ctx) in hal_vp8e_init() 73 ctx->hw_ctx = hw_ctx; in hal_vp8e_init() 77 return p_api->init(hw_ctx, cfg); in hal_vp8e_init() 84 void *hw_ctx = ctx->hw_ctx; in hal_vp8e_deinit() local 87 if (!hw_ctx || !api || !api->deinit) in hal_vp8e_deinit() 90 ret = api->deinit(hw_ctx); in hal_vp8e_deinit() 91 MPP_FREE(hw_ctx); in hal_vp8e_deinit() [all …]
|
| /rockchip-linux_mpp/mpp/hal/common/jpeg/ |
| H A D | hal_jpege_api_v2.c | 39 void *hw_ctx; member 48 void *hw_ctx = NULL; in hal_jpege_init() local 74 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_jpege_init() 76 ctx->hw_ctx = hw_ctx; in hal_jpege_init() 78 ret = api->init(hw_ctx, cfg); in hal_jpege_init() 86 void *hw_ctx = ctx->hw_ctx; in hal_jpege_deinit() local 89 if (!hw_ctx || !api || !api->deinit) in hal_jpege_deinit() 92 ret = api->deinit(hw_ctx); in hal_jpege_deinit() 93 MPP_FREE(hw_ctx); in hal_jpege_deinit() 102 void *hw_ctx = ctx->hw_ctx; \ [all …]
|
| /rockchip-linux_mpp/mpp/hal/common/h264/ |
| H A D | hal_h264e_api_v2.c | 41 void *hw_ctx; member 50 void *hw_ctx = NULL; in hal_h264e_init() local 89 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_h264e_init() 92 ctx->hw_ctx = hw_ctx; in hal_h264e_init() 97 ret = api->init(hw_ctx, cfg); in hal_h264e_init() 105 void *hw_ctx = ctx->hw_ctx; in hal_h264e_deinit() local 108 if (!hw_ctx || !api || !api->deinit) in hal_h264e_deinit() 111 ret = api->deinit(hw_ctx); in hal_h264e_deinit() 112 MPP_FREE(hw_ctx); in hal_h264e_deinit() 121 void *hw_ctx = ctx->hw_ctx; \ [all …]
|
| /rockchip-linux_mpp/mpp/hal/common/h265/ |
| H A D | hal_h265e_api_v2.c | 38 void *hw_ctx; member 47 void *hw_ctx = NULL; in hal_h265ev2_init() local 80 hw_ctx = mpp_calloc_size(void, api->ctx_size); in hal_h265ev2_init() 83 ctx->hw_ctx = hw_ctx; in hal_h265ev2_init() 88 ret = api->init(hw_ctx, cfg); in hal_h265ev2_init() 96 void *hw_ctx = ctx->hw_ctx; in hal_h265ev2_deinit() local 99 if (!hw_ctx || !api || !api->deinit) in hal_h265ev2_deinit() 102 ret = api->deinit(hw_ctx); in hal_h265ev2_deinit() 103 MPP_FREE(hw_ctx); in hal_h265ev2_deinit() 112 void *hw_ctx = ctx->hw_ctx; \ [all …]
|