| /OK3568_Linux_fs/external/mpp/utils/ |
| H A D | mpp_enc_roi_utils.c | 193 RK_S32 mb_w = MPP_ALIGN(w, 64) / 64; in vepu54x_h265_set_roi() local 195 RK_S32 ctu_line = mb_w; in vepu54x_h265_set_roi() 201 for (i = 0; i < mb_w; i++) { in vepu54x_h265_set_roi() 226 RK_S32 mb_w = MPP_ALIGN(ctx->w, 16) / 16; in gen_vepu54x_roi() local 228 RK_S32 stride_h = MPP_ALIGN(mb_w, 4); in gen_vepu54x_roi() 288 mpp_assert(pos_x_init >= 0 && pos_x_init < mb_w); in gen_vepu54x_roi() 289 mpp_assert(pos_x_end >= 0 && pos_x_end <= mb_w); in gen_vepu54x_roi() 463 RK_S32 mb_w = MPP_ALIGN(ctx->w, 16) / 16; in gen_vepu580_roi_h264() local 465 RK_S32 stride_h = MPP_ALIGN(mb_w, 4); in gen_vepu580_roi_h264() 674 RK_S32 mb_w = MPP_ALIGN(impl->w, 16) / 16; in mpp_enc_roi_init() local [all …]
|
| H A D | mpi_enc_utils.c | 927 RK_U32 mb_w = step_x; 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() 946 region->num_mb_x = mb_w; in mpi_enc_gen_osd_data() 949 region->enable = (mb_w && mb_h); in mpi_enc_gen_osd_data() 976 mb_w = region->num_mb_x; 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 D | hal_h264e_vepu2_v2.c | 287 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in setup_intra_refresh() local 307 right = mb_w; in setup_intra_refresh() 317 left = mpp_clip(left, 0, mb_w); in setup_intra_refresh() 318 right = mpp_clip(right, 0, mb_w); in setup_intra_refresh() 348 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu2_gen_regs_v2() local 356 mb_w = ctx->sps->pic_height_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() 508 | VEPU_REG_ROI1_LEFT_MB(mb_w) in hal_h264e_vepu2_gen_regs_v2() 509 | VEPU_REG_ROI1_RIGHT_MB(mb_w); in hal_h264e_vepu2_gen_regs_v2() [all …]
|
| H A D | hal_h264e_vepu1_v2.c | 298 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in hal_h264e_vepu1_gen_regs_v2() local 306 mb_w = ctx->sps->pic_height_in_mbs; in hal_h264e_vepu1_gen_regs_v2() 337 | VEPU_REG_INTRA_AREA_LEFT(mb_w) in hal_h264e_vepu1_gen_regs_v2() 338 | VEPU_REG_INTRA_AREA_RIGHT(mb_w); 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() 458 | VEPU_REG_ROI1_LEFT_MB(mb_w) in hal_h264e_vepu1_gen_regs_v2() 459 | VEPU_REG_ROI1_RIGHT_MB(mb_w); in hal_h264e_vepu1_gen_regs_v2() 464 | VEPU_REG_ROI2_LEFT_MB(mb_w) in hal_h264e_vepu1_gen_regs_v2() 465 | VEPU_REG_ROI2_RIGHT_MB(mb_w); in hal_h264e_vepu1_gen_regs_v2() [all …]
|
| H A D | hal_h264e_vepu_v2.c | 35 RK_S32 mb_w; member 523 p->mb_w = MPP_ALIGN(prep->width, 16) / 16; in h264e_vepu_mbrc_setup() 526 p->mbs = p->mb_w * p->mb_h; in h264e_vepu_mbrc_setup()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu580.c | 1318 RK_S32 mb_w = sps->pic_width_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() 1336 mb_target_bits = (mb_target_bits_mul_16 * mb_w) >> 4; in setup_vepu580_rc_base() 1347 regs->reg_base.rc_cfg.rc_ctu_num = mb_w; in setup_vepu580_rc_base() 1497 RK_S32 mb_w = MPP_ALIGN(w, 16) / 16; in vepu580_h264_set_one_roi() local 1499 RK_S32 stride_h = MPP_ALIGN(mb_w, 4); in vepu580_h264_set_one_roi() 1516 pos_x_end = MPP_MIN(pos_x_end, mb_w); in vepu580_h264_set_one_roi() 1545 RK_U32 mb_w = ctx->sps->pic_width_in_mbs; in setup_vepu580_intra_refresh() local 1547 RK_U32 w = mb_w * 16; in setup_vepu580_intra_refresh() 1551 RK_U32 stride_h = MPP_ALIGN(mb_w, 4); in setup_vepu580_intra_refresh() [all …]
|
| H A D | hal_h264e_vepu541.c | 800 RK_S32 mb_w = sps->pic_width_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() 818 mb_target_bits = (mb_target_bits_mul_16 * mb_w) >> 4; in setup_vepu541_rc_base() 829 regs->reg050.rc_ctu_num = mb_w; in setup_vepu541_rc_base() 1215 RK_S32 mb_w = MPP_ALIGN(width, 16) >> 4; in setup_vepu540_force_slice_split() local 1224 regs->reg087.sli_splt_cnum_m1 = mb_w - 1; in setup_vepu540_force_slice_split() 1758 RK_U32 mb_w = ctx->sps->pic_width_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 D | hal_h264e_vepu540c.c | 963 RK_S32 mb_w = sps->pic_width_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() 981 mb_target_bits = (mb_target_bits_mul_16 * mb_w) >> 4; in setup_vepu540c_rc_base() 992 regs->reg_base.rc_cfg.rc_ctu_num = mb_w; in setup_vepu540c_rc_base() 1735 RK_U32 mb_w = ctx->sps->pic_width_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/codec/rc/ |
| H A D | vp8e_rc.c | 62 RK_S32 mb_w = MPP_ALIGN(usr_cfg->width, 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 D | rc_model_v2.c | 683 RK_S32 mb_w = MPP_ALIGN(usr_cfg->width, 16) / 16; in reenc_calc_cbr_ratio() local 733 RK_U32 tar_bpp = target_bit / (mb_w * mb_h); in reenc_calc_cbr_ratio() 1415 RK_S32 mb_w = MPP_ALIGN(usr_cfg->width, 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/codec/enc/jpeg/ |
| H A D | jpege_api_v2.c | 511 RK_U32 mb_w = MPP_ALIGN(prep->width, 16) / 16; in jpege_proc_hal() local 512 RK_U32 mb_all = mb_w * mb_h; in jpege_proc_hal() 515 part_rows = (part_mbs + mb_w - 1) / mb_w; in jpege_proc_hal()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/ |
| H A D | vepu541_common.c | 354 RK_S32 mb_w = MPP_ALIGN(w, 16) / 16; in vepu541_set_one_roi() local 356 RK_S32 stride_h = MPP_ALIGN(mb_w, 4); in vepu541_set_one_roi() 373 pos_x_end = MPP_MIN(pos_x_end, mb_w); in vepu541_set_one_roi() 409 RK_S32 mb_w = MPP_ALIGN(w, 16) / 16; in vepu541_set_roi() local 411 RK_S32 stride_h = MPP_ALIGN(mb_w, 4); in vepu541_set_roi()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/ |
| H A D | h264e_slice.c | 48 slice->mb_w = sps->pic_width_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 D | h264e_slice.h | 91 RK_S32 mb_w; member
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/h265e/ |
| H A D | hal_h265e_vepu541.c | 835 RK_S32 mb_w = MPP_ALIGN(w, 64) / 64; in vepu541_h265_set_roi() local 837 RK_S32 ctu_line = mb_w; in vepu541_h265_set_roi() 841 for ( i = 0; i < mb_w; i++) { in vepu541_h265_set_roi() 1699 RK_S32 mb_w = MPP_ALIGN(syn->pp.pic_width, 64) / 64; in hal_h265e_v540_set_uniform_tile() local 1701 RK_S32 tile_width = (index + 1) * mb_w / (syn->pp.num_tile_columns_minus1 + 1) - in hal_h265e_v540_set_uniform_tile() 1702 index * mb_w / (syn->pp.num_tile_columns_minus1 + 1); in hal_h265e_v540_set_uniform_tile() 1704 tile_width = mb_w - index * mb_w / (syn->pp.num_tile_columns_minus1 + 1); in hal_h265e_v540_set_uniform_tile() 1710 regs->tile_pos.tile_x = (index * mb_w / (syn->pp.num_tile_columns_minus1 + 1)); in hal_h265e_v540_set_uniform_tile()
|
| H A D | hal_h265e_vepu580.c | 2481 RK_U32 mb_w = MPP_ALIGN(enc_cfg->prep.width, 64) / 64; in setup_vepu580_split() local 2486 mb_w = mb_w / 2; in setup_vepu580_split() 2488 slice_num = (mb_w * mb_h + cfg->split_arg - 1) / cfg->split_arg; in setup_vepu580_split() 2663 RK_S32 mb_w = MPP_ALIGN(syn->pp.pic_width, 64) / 64; in hal_h265e_v580_set_uniform_tile() local 2665 RK_S32 tile_width = (index + 1) * mb_w / (syn->pp.num_tile_columns_minus1 + 1) - in hal_h265e_v580_set_uniform_tile() 2666 index * mb_w / (syn->pp.num_tile_columns_minus1 + 1); in hal_h265e_v580_set_uniform_tile() 2683 tile_width = mb_w - index * mb_w / (syn->pp.num_tile_columns_minus1 + 1); in hal_h265e_v580_set_uniform_tile() 2691 regs->reg0253_tile_pos.tile_x = (index * mb_w / (syn->pp.num_tile_columns_minus1 + 1)); in hal_h265e_v580_set_uniform_tile()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/vpu/jpege/ |
| H A D | hal_jpege_vepu2_v2.c | 255 RK_U32 mb_w = MPP_ALIGN(width, 16) / 16; in hal_jpege_vepu2_get_task() local 310 i, part_rows, mb_w * part_rows); in hal_jpege_vepu2_get_task() 316 ctx->syntax.restart_ri = mb_w * part_rows; in hal_jpege_vepu2_get_task()
|
| /OK3568_Linux_fs/external/rockit/mpi/example/mod/ |
| H A D | test_mpi_venc.cpp | 234 RK_S32 mb_w = RK_ALIGN(w, 64) / 64; in h265_set_qpmap_64x64() local 236 RK_S32 ctu_line = mb_w; in h265_set_qpmap_64x64() 240 for (i = 0; i < mb_w; i++) { in h265_set_qpmap_64x64()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/ |
| H A D | h265e_slice.h | 44 RK_U32 mb_w; member
|
| H A D | h265e_slice.c | 771 cu.mb_w = mb_wd; in h265e_code_slice_skip_frame()
|