Home
last modified time | relevance | path

Searched refs:mb_h (Results 1 – 21 of 21) sorted by relevance

/OK3568_Linux_fs/external/mpp/utils/
H A Dmpp_enc_roi_utils.c194 RK_S32 mb_h = MPP_ALIGN(h, 64) / 64; in vepu54x_h265_set_roi() local
198 for (j = 0; j < mb_h; j++) { in vepu54x_h265_set_roi()
227 RK_S32 mb_h = MPP_ALIGN(ctx->h, 16) / 16; in gen_vepu54x_roi() local
229 RK_S32 stride_v = MPP_ALIGN(mb_h, 4); in gen_vepu54x_roi()
290 mpp_assert(pos_y_init >= 0 && pos_y_init < mb_h); in gen_vepu54x_roi()
291 mpp_assert(pos_y_end >= 0 && pos_y_end <= mb_h); in gen_vepu54x_roi()
464 RK_S32 mb_h = MPP_ALIGN(ctx->h, 16) / 16; in gen_vepu580_roi_h264() local
466 RK_S32 stride_v = MPP_ALIGN(mb_h, 4); in gen_vepu580_roi_h264()
481 for (j = 0; j < mb_h; j++) { in gen_vepu580_roi_h264()
675 RK_S32 mb_h = MPP_ALIGN(impl->h, 16) / 16; in mpp_enc_roi_init() local
[all …]
H A Dmpi_enc_utils.c928 RK_U32 mb_h = step_y; in mpi_enc_gen_osd_data() local
941 RK_U32 region_size = MPP_ALIGN(mb_w * mb_h * 256, 16); in mpi_enc_gen_osd_data()
947 region->num_mb_y = mb_h; in mpi_enc_gen_osd_data()
949 region->enable = (mb_w && mb_h); in mpi_enc_gen_osd_data()
977 mb_h = region->num_mb_y; in mpi_enc_gen_osd_data()
980 memset(ptr + buf_offset, k, mb_w * mb_h * 256); in mpi_enc_gen_osd_data()
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu2_v2.c288 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in setup_intra_refresh() local
310 top = mpp_clip(top, 0, mb_h); in setup_intra_refresh()
311 bottom = mpp_clip(bottom, 0, mb_h); in setup_intra_refresh()
314 bottom = mb_h; in setup_intra_refresh()
349 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu2_gen_regs_v2() local
357 mb_h = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2()
398 if (mb_w * mb_h > 3600) in hal_h264e_vepu2_gen_regs_v2()
411 RK_U32 scaler = MPP_MAX(1, 200 / (mb_w + mb_h)); in hal_h264e_vepu2_gen_regs_v2()
506 val = VEPU_REG_ROI1_TOP_MB(mb_h) in hal_h264e_vepu2_gen_regs_v2()
507 | VEPU_REG_ROI1_BOTTOM_MB(mb_h) in hal_h264e_vepu2_gen_regs_v2()
[all …]
H A Dhal_h264e_vepu1_v2.c299 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu1_gen_regs_v2() local
307 mb_h = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu1_gen_regs_v2()
335 val = VEPU_REG_INTRA_AREA_TOP(mb_h) in hal_h264e_vepu1_gen_regs_v2()
336 | VEPU_REG_INTRA_AREA_BOTTOM(mb_h) in hal_h264e_vepu1_gen_regs_v2()
357 if (mb_w * mb_h > 3600) in hal_h264e_vepu1_gen_regs_v2()
372 RK_U32 scaler = MPP_MAX(1, 200 / (mb_w + mb_h)); in hal_h264e_vepu1_gen_regs_v2()
456 val = VEPU_REG_ROI1_TOP_MB(mb_h) in hal_h264e_vepu1_gen_regs_v2()
457 | VEPU_REG_ROI1_BOTTOM_MB(mb_h) in hal_h264e_vepu1_gen_regs_v2()
462 val = VEPU_REG_ROI2_TOP_MB(mb_h) in hal_h264e_vepu1_gen_regs_v2()
463 | VEPU_REG_ROI2_BOTTOM_MB(mb_h) in hal_h264e_vepu1_gen_regs_v2()
[all …]
H A Dhal_h264e_vepu_v2.c36 RK_S32 mb_h; member
254 bufs->mb_h = aligned_h >> 4; in h264e_vepu_buf_set_frame_size()
255 if (bufs->mb_h) in h264e_vepu_buf_set_frame_size()
256 bufs->nal_tab_size = MPP_ALIGN((bufs->mb_h + 1) * sizeof(RK_U32), 8); in h264e_vepu_buf_set_frame_size()
524 p->mb_h = MPP_ALIGN(prep->height, 16) / 16; in h264e_vepu_mbrc_setup()
526 p->mbs = p->mb_w * p->mb_h; in h264e_vepu_mbrc_setup()
555 p->check_point_count = MPP_MIN(p->mb_h - 1, VEPU_CHECK_POINTS_MAX); in h264e_vepu_mbrc_setup()
H A Dhal_h264e_vepu_v2.h97 RK_S32 mb_h; member
/OK3568_Linux_fs/external/mpp/mpp/codec/rc/
H A Dvp8e_rc.c63 RK_S32 mb_h = MPP_ALIGN(usr_cfg->height, 16) / 16; in rc_model_v2_vp8_hal_start() local
90 p->start_qp = vp8_initial_qp(info->bit_target, mb_w * mb_h * 16 * 16); in rc_model_v2_vp8_hal_start()
H A Drc_model_v2.c684 RK_S32 mb_h = MPP_ALIGN(usr_cfg->height, 16) / 16; in reenc_calc_cbr_ratio() local
733 RK_U32 tar_bpp = target_bit / (mb_w * mb_h); in reenc_calc_cbr_ratio()
1416 RK_S32 mb_h = MPP_ALIGN(usr_cfg->height, 16) / 16; in rc_model_v2_hal_start() local
1445 info->quality_target = cal_first_i_start_qp(info->bit_target, mb_w * mb_h); in rc_model_v2_hal_start()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/h264e/
H A Dhal_h264e_vepu580.c1319 RK_S32 mb_h = sps->pic_height_in_mbs; in setup_vepu580_rc_base() local
1324 RK_S32 mb_target_bits_mul_16 = (rc_info->bit_target << 4) / (mb_w * mb_h); in setup_vepu580_rc_base()
1498 RK_S32 mb_h = MPP_ALIGN(h, 16) / 16; in vepu580_h264_set_one_roi() local
1517 pos_y_end = MPP_MIN(pos_y_end, mb_h); in vepu580_h264_set_one_roi()
1546 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in setup_vepu580_intra_refresh() local
1548 RK_U32 h = mb_h * 16; in setup_vepu580_intra_refresh()
1552 RK_U32 stride_v = MPP_ALIGN(mb_h, 4); in setup_vepu580_intra_refresh()
1553 RK_U32 roi_base_buf_size = mb_w * mb_h * 8; in setup_vepu580_intra_refresh()
1637 RK_U32 mb_h = MPP_ALIGN(ctx->cfg->prep.height, 64) / 16; in setup_vepu580_roi() local
1638 RK_U32 base_cfg_size = mb_w * mb_h * 8; in setup_vepu580_roi()
[all …]
H A Dhal_h264e_vepu541.c801 RK_S32 mb_h = sps->pic_height_in_mbs; in setup_vepu541_rc_base() local
806 RK_S32 mb_target_bits_mul_16 = (rc_info->bit_target << 4) / (mb_w * mb_h); in setup_vepu541_rc_base()
1759 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu541_ret_task() local
1760 RK_U32 mbs = mb_w * mb_h; in hal_h264e_vepu541_ret_task()
H A Dhal_h264e_vepu540c.c964 RK_S32 mb_h = sps->pic_height_in_mbs; in setup_vepu540c_rc_base() local
969 RK_S32 mb_target_bits_mul_16 = (rc_info->bit_target << 4) / (mb_w * mb_h); in setup_vepu540c_rc_base()
1736 RK_U32 mb_h = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu540c_ret_task() local
1737 RK_U32 mbs = mb_w * mb_h; in hal_h264e_vepu540c_ret_task()
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpege/
H A Dhal_jpege_vepu2_v2.c256 RK_U32 mb_h = MPP_ALIGN(height, 16) / 16; in hal_jpege_vepu2_get_task() local
257 RK_U32 part_rows = MPP_ALIGN(mb_h, 4) / 4; in hal_jpege_vepu2_get_task()
262 RK_U32 ecs_num = (mb_h + syntax->part_rows - 1) / syntax->part_rows; in hal_jpege_vepu2_get_task()
304 part_rows = (mb_h >= part_rows) ? part_rows : mb_h; in hal_jpege_vepu2_get_task()
318 mb_h -= part_rows; in hal_jpege_vepu2_get_task()
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/jpeg/
H A Djpege_api_v2.c506 RK_U32 mb_h = MPP_ALIGN(prep->height, 16) / 16; in jpege_proc_hal() local
512 RK_U32 mb_all = mb_w * mb_h; in jpege_proc_hal()
516 if (part_rows >= mb_h) in jpege_proc_hal()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/
H A Dvepu541_common.c355 RK_S32 mb_h = MPP_ALIGN(h, 16) / 16; in vepu541_set_one_roi() local
374 pos_y_end = MPP_MIN(pos_y_end, mb_h); in vepu541_set_one_roi()
410 RK_S32 mb_h = MPP_ALIGN(h, 16) / 16; in vepu541_set_roi() local
412 RK_S32 stride_v = MPP_ALIGN(mb_h, 4); in vepu541_set_roi()
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/
H A Dh264e_slice.c49 slice->mb_h = sps->pic_height_in_mbs; in h264e_slice_update()
947 for (i = 0; i < slice->mb_w * slice->mb_h; i++) { in h264e_slice_write_pskip()
961 mpp_writer_put_ue(s, slice->mb_w * slice->mb_h); in h264e_slice_write_pskip()
963 mpp_writer_bits(s), slice->mb_w * slice->mb_h); in h264e_slice_write_pskip()
H A Dh264e_slice.h92 RK_S32 mb_h; member
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/
H A Dh265e_slice.c758 RK_U32 mb_h = ((sps->m_picHeightInLumaSamples + 63) >> 6); in h265e_code_slice_skip_frame() local
772 cu.mb_h = mb_h; in h265e_code_slice_skip_frame()
774 for (i = 0; i < mb_h; i++) { in h265e_code_slice_skip_frame()
H A Dh265e_slice.h45 RK_U32 mb_h; member
/OK3568_Linux_fs/external/rockit/mpi/example/mod/
H A Dtest_mpi_venc.cpp235 RK_S32 mb_h = RK_ALIGN(h, 64) / 64; in h265_set_qpmap_64x64() local
239 for (j = 0; j < mb_h; j++) { in h265_set_qpmap_64x64()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/h265e/
H A Dhal_h265e_vepu541.c836 RK_S32 mb_h = MPP_ALIGN(h, 64) / 64; in vepu541_h265_set_roi() local
840 for (j = 0; j < mb_h; j++) { in vepu541_h265_set_roi()
1700 RK_S32 mb_h = MPP_ALIGN(syn->pp.pic_height, 64) / 64; in hal_h265e_v540_set_uniform_tile() local
1707 regs->tile_cfg.tile_height_m1 = mb_h - 1; in hal_h265e_v540_set_uniform_tile()
H A Dhal_h265e_vepu580.c2482 RK_U32 mb_h = MPP_ALIGN(enc_cfg->prep.height, 64) / 64; in setup_vepu580_split() local
2488 slice_num = (mb_w * mb_h + cfg->split_arg - 1) / cfg->split_arg; in setup_vepu580_split()
2664 RK_S32 mb_h = MPP_ALIGN(syn->pp.pic_height, 64) / 64; in hal_h265e_v580_set_uniform_tile() local
2688 regs->reg0252_tile_cfg.tile_h_m1 = mb_h - 1; in hal_h265e_v580_set_uniform_tile()