Searched refs:MPP_CLIP3 (Results 1 – 10 of 10) sorted by relevance
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_base.c | 58 sps->filter_level = MPP_CLIP3(0, 63, tmp); in set_filter() 59 p_pps->level_sgm[0] = MPP_CLIP3(0, 63, (p_pps->qp_sgm[0] * 64) / 128 + 8); in set_filter() 60 p_pps->level_sgm[1] = MPP_CLIP3(0, 63, (p_pps->qp_sgm[1] * 64) / 128 + 8); in set_filter() 61 p_pps->level_sgm[2] = MPP_CLIP3(0, 63, (p_pps->qp_sgm[2] * 64) / 128 + 8); in set_filter() 62 p_pps->level_sgm[3] = MPP_CLIP3(0, 63, (p_pps->qp_sgm[3] * 64) / 128 + 8); in set_filter() 116 sps->ref_delta[i] = MPP_CLIP3(-0x3f, 0x3f, sps->ref_delta[i]); in set_filter() 117 sps->mode_delta[i] = MPP_CLIP3(-0x3f, 0x3f, sps->mode_delta[i]); in set_filter() 136 pps->qp_sgm[1] = MPP_CLIP3(0, 127, qp - hw_cfg->roi1_delta_qp); in set_segmentation() 139 pps->qp_sgm[2] = MPP_CLIP3(0, 127, qp - hw_cfg->roi2_delta_qp); in set_segmentation() 270 entropy->segment_prob[0] = MPP_CLIP3(1, 255, tmp); in set_hdr_segmentation() [all …]
|
| H A D | hal_vp8e_vepu1_v2.c | 352 ctx->rc->qp_hdr = MPP_CLIP3(0, 127, task->rc_task->info.quality_target); in hal_vp8e_vepu1_gen_regs_v2()
|
| H A D | hal_vp8e_vepu2_v2.c | 356 ctx->rc->qp_hdr = MPP_CLIP3(0, 127, task->rc_task->info.quality_target); in hal_vp8e_vepu2_gen_regs_v2()
|
| /rockchip-linux_mpp/mpp/hal/common/jpeg/ |
| H A D | hal_jpege_hdr.c | 942 hal_rc_qtable_y[i] = MPP_CLIP3(1, 255, lq); in qfactor_to_qf_table() 943 hal_rc_qtable_c[i] = MPP_CLIP3(1, 255, cq); in qfactor_to_qf_table()
|
| /rockchip-linux_mpp/osal/inc/ |
| H A D | mpp_common.h | 25 #define MPP_CLIP3(l, h, v) ((v) < (l) ? (l) : ((v) > (h) ? (h) : (v))) macro
|
| /rockchip-linux_mpp/mpp/codec/dec/av1/ |
| H A D | av1d_parser.c | 262 alpha = MPP_CLIP3(INT16_MIN, INT16_MAX, param[2] - (1 << AV1_WARPEDMODEL_PREC_BITS)); in get_shear_params_valid() 263 beta = MPP_CLIP3(INT16_MIN, INT16_MAX, param[3]); in get_shear_params_valid() 267 gamma = MPP_CLIP3(INT16_MIN, INT16_MAX, (RK_S32)round_two_signed((v * divf), divs)); in get_shear_params_valid() 268 delta = MPP_CLIP3(INT16_MIN, INT16_MAX, param[5] - (RK_S32)round_two_signed((w * divf), divs) - in get_shear_params_valid()
|
| /rockchip-linux_mpp/utils/ |
| H A D | utils.c | 747 R[0] = MPP_CLIP3(0, 255, _R); in get_rgb_color() 748 G[0] = MPP_CLIP3(0, 255, _G); in get_rgb_color() 749 B[0] = MPP_CLIP3(0, 255, _B); in get_rgb_color()
|
| /rockchip-linux_mpp/mpp/hal/vpu/av1d/ |
| H A D | hal_av1d_vdpu.c | 1274 MPP_CLIP3(0, 255, MPP_ABS(segdata[s][SEG_AV1_LVL_ALT_Q])); in vdpu_av1d_set_segmentation() 1280 MPP_CLIP3(-63, 63, segdata[s][SEG_AV1_LVL_ALT_LF_Y_V]); in vdpu_av1d_set_segmentation() 1284 MPP_CLIP3(-63, 63, segdata[s][SEG_AV1_LVL_ALT_LF_Y_H]); in vdpu_av1d_set_segmentation() 1288 MPP_CLIP3(-63, 63, segdata[s][SEG_AV1_LVL_ALT_LF_U]); in vdpu_av1d_set_segmentation() 1292 MPP_CLIP3(-63, 63, segdata[s][SEG_AV1_LVL_ALT_LF_V]); in vdpu_av1d_set_segmentation()
|
| /rockchip-linux_mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu_v2.c | 145 RK_S32 pre_ctx_state = MPP_CLIP3(1, 126, ((m * (RK_S32)qp) >> 4) + n); in vepu_write_cabac_table()
|
| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_slice.c | 789 RK_S32 state = MPP_CLIP3(1, 126, ((init[0] * qp) >> 4) + init[1]); in init_context()
|