Home
last modified time | relevance | path

Searched refs:hw_cfg (Results 1 – 17 of 17) sorted by relevance

/rockchip-linux_mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_vepu1_v2.c40 Vp8eHwCfg *hw_cfg = &ctx->hw_cfg; in vp8e_vpu_frame_start() local
45 regs->sw1.val = hw_cfg->irq_disable ? (regs->sw1.val | 0x02) : in vp8e_vpu_frame_start()
49 if (hw_cfg->input_format < INPUT_RGB565) in vp8e_vpu_frame_start()
52 else if (hw_cfg->input_format < INPUT_RGB888) in vp8e_vpu_frame_start()
57 regs->sw5.base_stream = hw_cfg->output_strm_base; in vp8e_vpu_frame_start()
58 mpp_dev_set_reg_offset(ctx->dev, 5, hw_cfg->output_strm_offset); in vp8e_vpu_frame_start()
60 regs->sw6.base_control = hw_cfg->size_tbl_base; in vp8e_vpu_frame_start()
61 regs->sw14.nal_size_write = (hw_cfg->size_tbl_base != 0); in vp8e_vpu_frame_start()
62 regs->sw14.mv_write = (hw_cfg->mv_output_base != 0); in vp8e_vpu_frame_start()
64 regs->sw7.base_ref_lum = hw_cfg->internal_img_lum_base_r[0]; in vp8e_vpu_frame_start()
[all …]
H A Dhal_vp8e_vepu2_v2.c41 Vp8eHwCfg *hw_cfg = &ctx->hw_cfg; in vp8e_vpu_frame_start() local
46 regs->sw109.val = hw_cfg->irq_disable ? (regs->sw109.val | 0x0100) : in vp8e_vpu_frame_start()
52 if (hw_cfg->input_format < INPUT_RGB565) { in vp8e_vpu_frame_start()
54 } else if (hw_cfg->input_format < INPUT_RGB888) { in vp8e_vpu_frame_start()
60 regs->sw77.base_stream = hw_cfg->output_strm_base; in vp8e_vpu_frame_start()
61 mpp_dev_set_reg_offset(ctx->dev, 77, hw_cfg->output_strm_offset); in vp8e_vpu_frame_start()
62 regs->sw78.base_control = hw_cfg->size_tbl_base; in vp8e_vpu_frame_start()
63 regs->sw74.nal_size_write = hw_cfg->size_tbl_base != 0; in vp8e_vpu_frame_start()
64 regs->sw109.mv_write = hw_cfg->mv_output_base != 0; in vp8e_vpu_frame_start()
66 regs->sw56.base_ref_lum = hw_cfg->internal_img_lum_base_r[0]; in vp8e_vpu_frame_start()
[all …]
H A Dhal_vp8e_base.c129 Vp8eHwCfg *hw_cfg = &ctx->hw_cfg; in set_segmentation() local
135 if (hw_cfg->roi1_delta_qp) in set_segmentation()
136 pps->qp_sgm[1] = MPP_CLIP3(0, 127, qp - hw_cfg->roi1_delta_qp); in set_segmentation()
138 if (hw_cfg->roi2_delta_qp) in set_segmentation()
139 pps->qp_sgm[2] = MPP_CLIP3(0, 127, qp - hw_cfg->roi2_delta_qp); in set_segmentation()
150 if (hw_cfg->roi1_delta_qp || hw_cfg->roi2_delta_qp) { in set_segmentation()
158 if ((x >= hw_cfg->roi1_left) && (x <= hw_cfg->roi1_right) && in set_segmentation()
159 (y >= hw_cfg->roi1_top) && (y <= hw_cfg->roi1_bottom)) in set_segmentation()
161 if ((x >= hw_cfg->roi1_left) && (x <= hw_cfg->roi2_right) && in set_segmentation()
162 (y >= hw_cfg->roi2_top) && (y <= hw_cfg->roi2_bottom)) in set_segmentation()
[all …]
H A Dhal_vp8e_base.h347 Vp8eHwCfg hw_cfg; member
/rockchip-linux_mpp/mpp/hal/common/h264/
H A Dhal_h264e_stream_amend.c105 MppEncH264HwCfg *hw_cfg = &h264->hw_cfg; in h264e_vepu_stream_amend_config() local
108 hw_cfg->hw_poc_type != h264->poc_type || in h264e_vepu_stream_amend_config()
109 hw_cfg->hw_log2_max_frame_num_minus4 != h264->log2_max_frame_num) { in h264e_vepu_stream_amend_config()
137 MPP_RET h264e_vepu_stream_amend_proc(HalH264eVepuStreamAmend *ctx, MppEncH264HwCfg *hw_cfg) in h264e_vepu_stream_amend_proc() argument
207 if ((!seg) || !hw_cfg->hw_split_out || !is_cabac) { in h264e_vepu_stream_amend_proc()
247 slice_rd.pic_order_cnt_type = hw_cfg->hw_poc_type; in h264e_vepu_stream_amend_proc()
248 slice_rd.log2_max_frame_num = hw_cfg->hw_log2_max_frame_num_minus4 + 4; in h264e_vepu_stream_amend_proc()
H A Dhal_h264e_stream_amend.h50 MPP_RET h264e_vepu_stream_amend_proc(HalH264eVepuStreamAmend *ctx, MppEncH264HwCfg *hw_cfg);
/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_api_v2.c118 h264->hw_cfg.hw_poc_type = 2; in init_h264e_cfg_set()
119 h264->hw_cfg.hw_log2_max_frame_num_minus4 = 12; in init_h264e_cfg_set()
120 h264->hw_cfg.hw_split_out = 0; in init_h264e_cfg_set()
128 h264->hw_cfg.hw_poc_type = 0; in init_h264e_cfg_set()
129 h264->hw_cfg.hw_log2_max_frame_num_minus4 = 12; in init_h264e_cfg_set()
130 h264->hw_cfg.hw_split_out = 0; in init_h264e_cfg_set()
136 h264->hw_cfg.hw_poc_type = 0; in init_h264e_cfg_set()
137 h264->hw_cfg.hw_log2_max_frame_num_minus4 = 12; in init_h264e_cfg_set()
138 h264->hw_cfg.hw_split_out = 0; in init_h264e_cfg_set()
H A Dh264e_sps.c165 sps->pic_order_cnt_type = h264->hw_cfg.hw_poc_type; in h264e_sps_update()
/rockchip-linux_mpp/mpp/hal/rkenc/h264e/
H A Dhal_h264e_vepu510.c549 MppEncH264HwCfg *hw_cfg = &cfg_set->h264.hw_cfg; in hal_h264e_vepu510_get_task() local
587 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu510_get_task()
588 hw_cfg->hw_poc_type = ctx->sps->pic_order_cnt_type; in hal_h264e_vepu510_get_task()
2398 MppEncH264HwCfg *hw_cfg = &ctx->cfg->h264.hw_cfg; in hal_h264e_vepu510_wait() local
2408 hw_cfg->hw_split_out = split_out; in hal_h264e_vepu510_wait()
2470 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu510_wait()
H A Dhal_h264e_vepu511.c548 MppEncH264HwCfg *hw_cfg = &cfg_set->h264.hw_cfg; in hal_h264e_vepu511_get_task() local
586 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu511_get_task()
587 hw_cfg->hw_poc_type = ctx->sps->pic_order_cnt_type; in hal_h264e_vepu511_get_task()
2359 MppEncH264HwCfg *hw_cfg = &ctx->cfg->h264.hw_cfg; in hal_h264e_vepu511_wait() local
2369 hw_cfg->hw_split_out = split_out; in hal_h264e_vepu511_wait()
2431 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu511_wait()
H A Dhal_h264e_vepu580.c571 MppEncH264HwCfg *hw_cfg = &cfg_set->h264.hw_cfg; in hal_h264e_vepu580_get_task() local
606 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu580_get_task()
2370 MppEncH264HwCfg *hw_cfg = &ctx->cfg->h264.hw_cfg; in hal_h264e_vepu580_wait() local
2380 hw_cfg->hw_split_out = split_out; in hal_h264e_vepu580_wait()
2442 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu580_wait()
H A Dhal_h264e_vepu541.c345 MppEncH264HwCfg *hw_cfg = &ctx->cfg->h264.hw_cfg; in hal_h264e_vepu541_get_task() local
365 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu541_get_task()
1790 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu541_wait()
H A Dhal_h264e_vepu540c.c352 MppEncH264HwCfg *hw_cfg = &ctx->cfg->h264.hw_cfg; in hal_h264e_vepu540c_get_task() local
368 hw_cfg->hw_log2_max_frame_num_minus4 = ctx->sps->log2_max_frame_num_minus4; in hal_h264e_vepu540c_get_task()
1672 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu540c_wait()
/rockchip-linux_mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu_v2.c516 MppEncHwCfg* hw_cfg = &cfg->hw; in h264e_vepu_mbrc_setup() local
545 p->mb_bit_rc_enable = !hw_cfg->mb_rc_disable && (rc->rc_mode != MPP_ENC_RC_MODE_FIXQP); in h264e_vepu_mbrc_setup()
H A Dhal_h264e_vepu1_v2.c683 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu1_wait_v2()
H A Dhal_h264e_vepu2_v2.c748 h264e_vepu_stream_amend_proc(amend, &ctx->cfg->h264.hw_cfg); in hal_h264e_vepu2_wait_v2()
/rockchip-linux_mpp/inc/
H A Drk_venc_cmd.h644 MppEncH264HwCfg hw_cfg; member