Home
last modified time | relevance | path

Searched refs:MPP_MIN (Results 1 – 25 of 42) sorted by relevance

12

/OK3568_Linux_fs/external/mpp/mpp/codec/enc/vp8/
H A Dvp8e_rc.c186 a1 = MPP_MIN(a1, 4096 * DSCY - 1); in update_model()
271 qp = MPP_MIN(QINDEX_RANGE - 1, MPP_MAX(0, qp + 4)); in new_pic_quant()
273 qp = MPP_MIN(QINDEX_RANGE - 1, MPP_MAX(0, qp + 10)); in new_pic_quant()
359 rc->qp_hdr = MPP_MIN(rc->qp_max, MPP_MAX(rc->qp_min, rc->qp_hdr)); in cal_pic_quant()
368 rc->qp_hdr = MPP_MIN(rc->qp_max, MPP_MAX(rc->qp_min, rc->qp_hdr)); in cal_pic_quant()
471 vb->bit_rate = MPP_MIN(vb->bit_rate, max_bps); in vp8e_init_rc()
478 rc->qp_hdr = MPP_MIN(rc->qp_max, MPP_MAX(rc->qp_min, rc->qp_hdr)); in vp8e_init_rc()
552 MPP_MIN(bitcnt - rc->target_pic_size, in vp8e_after_pic_rc()
/OK3568_Linux_fs/external/mpp/osal/inc/
H A Dmpp_common.h30 #define MPP_MIN(a,b) ((a) > (b) ? (b) : (a)) macro
31 #define MPP_MIN3(a,b,c) MPP_MIN(MPP_MIN(a,b),c)
32 #define MPP_MIN4(a, b, c, d) MPP_MIN((a), MPP_MIN3((b), (c), (d)))
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/h264e/
H A Dhal_h264e_vepu_v2.c555 p->check_point_count = MPP_MIN(p->mb_h - 1, VEPU_CHECK_POINTS_MAX); in h264e_vepu_mbrc_setup()
608 nonZeroTarget = MPP_MIN(coeffCntMax, MPP_MAX(0, nonZeroTarget)); in h264e_vepu_mbrc_prepare()
609 nonZeroTarget = MPP_MIN(0x7FFFFFFFU / 1024U, (RK_U32)nonZeroTarget); in h264e_vepu_mbrc_prepare()
620 tmp = MPP_MIN(WORD_CNT_MAX, tmp / 32 + 1); in h264e_vepu_mbrc_prepare()
629 tmp = MPP_MIN(WORD_CNT_MAX, tmp / 32 + 1); in h264e_vepu_mbrc_prepare()
H A Dhal_h264e_vepu1_v2.c373 RK_U32 skip_penalty = MPP_MIN(255, h264_skip_sad_penalty[hw_mbrc->qp_init] * scaler); in hal_h264e_vepu1_gen_regs_v2()
517 dmv_qpel_penalty[i] = MPP_MIN(255, exp_golomb_signed(i)); in hal_h264e_vepu1_gen_regs_v2()
H A Dhal_h264e_vepu2_v2.c413 RK_U32 skip_penalty = MPP_MIN(255, h264_skip_sad_penalty[hw_mbrc->qp_init] * scaler); in hal_h264e_vepu2_gen_regs_v2()
580 dmv_qpel_penalty[i] = MPP_MIN(255, exp_golomb_signed(i)); in hal_h264e_vepu2_gen_regs_v2()
/OK3568_Linux_fs/external/rockit/tgi/sdk/include/
H A Drt_common.h34 #define RT_MIN3(a, b, c) RT_MIN(MPP_MIN(a, b), c)
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/avs2/
H A Davs2d_dpb.c71 dpb_size = MPP_MIN(13369344 / pic_size, 16) - 1; in dpb_get_size()
79 dpb_size = MPP_MIN(56623104 / pic_size, 16) - 1; in dpb_get_size()
87 dpb_size = MPP_MIN(213909504 / pic_size, 16) - 1; in dpb_get_size()
97 dpb_size = MPP_MIN(dpb_size, AVS2_MAX_DPB_SIZE); in dpb_get_size()
H A Davs2d_ps.c202 wqm_size = MPP_MIN(1 << (size_id + 2), 8); in wq_update_frame_matrix()
222 wqm_size = MPP_MIN(1 << (size_id + 2), 8); in parse_sequence_wqm()
560 wqm_size = MPP_MIN(1 << (size_id + 2), 8); in parse_picture_header_comm()
/OK3568_Linux_fs/external/mpp/mpp/hal/vpu/vp8e/
H A Dhal_vp8e_base.c520 hw_cfg->split_penalty[0] = MPP_MIN(1023, vp8_split_penalty_tbl[qp] / 2); in set_new_frame()
522 hw_cfg->split_penalty[1] = MPP_MIN(1023, (2 * vp8_split_penalty_tbl[qp] + 40) / 4); in set_new_frame()
524 hw_cfg->split_penalty[3] = MPP_MIN(511, (8 * vp8_split_penalty_tbl[qp] + 500) / 16); in set_new_frame()
532 hw_cfg->dmv_qpel_penalty[i] = MPP_MIN(255, (y + x + 1) / 2 * weight_tbl[qp] >> 8); in set_new_frame()
1485 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
1502 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
1517 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_vdpu_com.c485 } else if (MPP_MIN(p0->ref_poc, p1->ref_poc) > p0->cur_poc) { // inc in compare_b0()
513 if (MPP_MIN(p0->ref_poc, p1->ref_poc) > p0->cur_poc) { // inc in compare_b1()
H A Dhal_h264d_vdpu1.c439 *pocBase++ = MPP_MIN(pp->CurrFieldOrderCnt[0], pp->CurrFieldOrderCnt[1]); in vdpu1_set_vlc_regs()
497 … m_lists[0][i].ref_poc = MPP_MIN(pp->FieldOrderCntList[i][0], pp->FieldOrderCntList[i][1]); in vdpu1_set_ref_regs()
H A Dhal_h264d_vdpu2.c474 *ptr++ = MPP_MIN(pp->CurrFieldOrderCnt[0], pp->CurrFieldOrderCnt[1]); in set_vlc_regs()
553 … m_lists[0][i].ref_poc = MPP_MIN(pp->FieldOrderCntList[i][0], pp->FieldOrderCntList[i][1]); in set_ref_regs()
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h264/
H A Dh264d_dpb.c118 size = MPP_MIN(2 * size, MPP_MAX(1, RoundLog2(num_views)) * 16) / num_views; in getDpbSize()
120 size = MPP_MIN(size, 16); in getDpbSize()
137 size = MPP_MIN(active_sps->max_num_ref_frames, 16); in getDpbSize()
807 …fs->poc = fs->frame->poc = fs->frame->frame_poc = MPP_MIN(fs->top_field->poc, fs->bottom_field->po… in dpb_combine_field_yuv()
835 fs->frame->poc_mmco5 = MPP_MIN(fs->top_field->top_poc_mmco5, fs->bottom_field->bot_poc_mmco5); in dpb_combine_field_yuv()
1126 p->poc_mmco5 = MPP_MIN(p->top_poc, p->bottom_poc); in adaptive_memory_management()
1130 p->poc = MPP_MIN(p->top_poc, p->bottom_poc); in adaptive_memory_management()
H A Dh264d_scalist.c290 size = MPP_MIN(size, 16); in get_max_dec_frame_buf_size()
H A Dh264d_api.c295 …p_Dec->p_Vid->p_Dpb_layer[0]->size = MPP_MIN(p_Dec->p_Vid->p_Dpb_layer[1]->size, MAX_DPB_SIZE / 2); in h264d_flush_dpb_eos()
403 …p_Dec->p_Vid->p_Dpb_layer[0]->size = MPP_MIN(p_Dec->p_Vid->p_Dpb_layer[1]->size, MAX_DPB_SIZE / 2); in h264d_reset()
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/av1/
H A Dav1d_cbs.c1027 max_log2_tile_cols = mpp_av1_tile_log2(1, MPP_MIN(sb_cols, AV1_MAX_TILE_COLS)); in mpp_av1_tile_info()
1028 max_log2_tile_rows = mpp_av1_tile_log2(1, MPP_MIN(sb_rows, AV1_MAX_TILE_ROWS)); in mpp_av1_tile_info()
1067 max_width = MPP_MIN(sb_cols - start_sb, max_tile_width_sb); in mpp_av1_tile_info()
1085 max_height = MPP_MIN(sb_rows - start_sb, max_tile_height_sb); in mpp_av1_tile_info()
1506 ctx->skip_ref0 = MPP_MIN(forward_idx, backward_idx) + 1; in mpp_av1_skip_mode_params()
1529 ctx->skip_ref0 = MPP_MIN(forward_idx, second_forward_idx) + 1; in mpp_av1_skip_mode_params()
2166 b = MPP_MIN(ctx->frame_header_size - i, 8); in mpp_av1_frame_header_obu()
2298 fc(32, luminance_min, 0, MPP_MIN(((RK_U64)current->luminance_max << 6) - 1, in mpp_av1_metadata_hdr_mdcv()
H A Dav1d_parser.c404 AV1_REF_FRAME_LAST + MPP_MIN(forward_idx, backward_idx); in skip_mode_params()
426 AV1_REF_FRAME_LAST + MPP_MIN(forward_idx, second_forward_idx); in skip_mode_params()
1168 mpp_set_bitread_ctx(&gb, buf, MPP_MIN(buf_size, MAX_OBU_HEADER_SIZE)); in parse_obu_header()
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h265/
H A Dh265e_enctropy.c122 RK_S32 initState = MPP_MIN(MPP_MAX(1, (((slope * qp) >> 4) + offset)), 126); in sbacInit()
H A Dh265e_dpb.c805 …slice->m_numRefIdx[L0] = MPP_MIN(dpb->max_ref_l0, slice->m_rps->m_numberOfPictures); // Ensuring … in h265e_dpb_build_list()
806 slice->m_numRefIdx[L1] = MPP_MIN(dpb->max_ref_l1, slice->m_rps->m_numberOfPictures); in h265e_dpb_build_list()
H A Dh265e_ps.c133 …vps->m_maxDecPicBuffering[i] = MPP_MIN(MAX_REFS, MPP_MAX((vps->m_numReorderPics[i] + 3), codec->nu… in h265e_set_vps()
/OK3568_Linux_fs/external/mpp/mpp/hal/rkenc/common/
H A Dvepu541_common.c373 pos_x_end = MPP_MIN(pos_x_end, mb_w); in vepu541_set_one_roi()
374 pos_y_end = MPP_MIN(pos_y_end, mb_h); in vepu541_set_one_roi()
/OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/
H A Dh264e_slice.c791 ctx->state = (MPP_MIN(state, 127 - state) << 1) | (state >> 6); in init_context()
823 mpp_writer_put_bits(s, out, MPP_MIN(8, 8 - ctx->queue)); in h264e_cabac_putbyte()
H A Dh264e_sps.c179 RK_S32 log2_gop = MPP_MIN(mpp_log2(gop), 16); in h264e_sps_update()
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/mpg4/
H A Dmpg4d_parser.c714 RK_U32 show_bit = MPP_MIN(remain_bit, 23); in mpg4d_parse_user_data()
867 READ_BITS(gb, (MPP_MIN(mp4Hdr->vol.time_inc_bits + 3, 15)), &vop_id); in mpeg4_parse_vop_header()
872 READ_BITS(gb, MPP_MIN(mp4Hdr->vol.time_inc_bits + 3, 15), &vop_id_for_prediction); in mpeg4_parse_vop_header()
/OK3568_Linux_fs/external/mpp/mpp/codec/rc/
H A Drc_model_v2_smt.c749 mpp_data_init(&p->qp_p, MPP_MIN(p->gop_min, 15)); in rc_model_v2_smt_start()
751 mpp_data_init(&p->sse_p, MPP_MIN(p->gop_min, 15)); in rc_model_v2_smt_start()

12