| /rockchip-linux_mpp/osal/inc/ |
| H A D | mpp_common.h | 15 #define MPP_MAX(a, b) ((a) > (b) ? (a) : (b)) macro 16 #define MPP_MAX3(a, b, c) MPP_MAX(MPP_MAX(a,b),c) 17 #define MPP_MAX4(a, b, c, d) MPP_MAX((a), MPP_MAX3((b), (c), (d)))
|
| /rockchip-linux_mpp/mpp/vproc/vdpp/ |
| H A D | vdpp2.c | 902 / MPP_MAX((float)(dst_reg->sharp.reg112.sw_adp_idx0 - 0), 1)); in set_shp_to_vdpp2_reg() 904 … / MPP_MAX((float)(dst_reg->sharp.reg112.sw_adp_idx1 - dst_reg->sharp.reg112.sw_adp_idx0), 1)); in set_shp_to_vdpp2_reg() 906 … / MPP_MAX((float)(dst_reg->sharp.reg112.sw_adp_idx2 - dst_reg->sharp.reg112.sw_adp_idx1), 1)); in set_shp_to_vdpp2_reg() 908 … / MPP_MAX((float)(dst_reg->sharp.reg113.sw_adp_idx3 - dst_reg->sharp.reg112.sw_adp_idx2), 1)); in set_shp_to_vdpp2_reg() 910 … / MPP_MAX((float)(255 - dst_reg->sharp.reg113.sw_adp_idx3), 1)); in set_shp_to_vdpp2_reg() 927 / MPP_MAX((float)(dst_reg->sharp.reg129.sw_var_idx0 - 0), 1)); in set_shp_to_vdpp2_reg() 929 … / MPP_MAX((float)(dst_reg->sharp.reg129.sw_var_idx1 - dst_reg->sharp.reg129.sw_var_idx0), 1)); in set_shp_to_vdpp2_reg() 931 … / MPP_MAX((float)(dst_reg->sharp.reg130.sw_var_idx2 - dst_reg->sharp.reg129.sw_var_idx1), 1)); in set_shp_to_vdpp2_reg() 933 … / MPP_MAX((float)(dst_reg->sharp.reg130.sw_var_idx3 - dst_reg->sharp.reg130.sw_var_idx2), 1)); in set_shp_to_vdpp2_reg() 935 … / MPP_MAX((float)(255 - dst_reg->sharp.reg130.sw_var_idx3), 1)); in set_shp_to_vdpp2_reg() [all …]
|
| H A D | vdpp_common.c | 704 adj_mapping_k[i] = (65535 / MPP_MAX(1, tmp_diff)); in set_dmsr_to_vdpp_reg() 707 …tmp_diff_x = MPP_MAX(p_dmsr_param->dmsr_contrast_to_conf_map_x1 - p_dmsr_param->dmsr_contrast_to_c… in set_dmsr_to_vdpp_reg()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/common/ |
| H A D | vepu541_common.c | 61 pos_x_init = MPP_MAX(pos_x_init, 0); in vepu541_set_one_roi() 62 pos_y_init = MPP_MAX(pos_y_init, 0); in vepu541_set_one_roi()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_vdpu_com.c | 483 if (MPP_MAX(p0->ref_poc, p1->ref_poc) < p0->cur_poc) { // dec in compare_b0() 515 } else if (MPP_MAX(p0->ref_poc, p1->ref_poc) < p0->cur_poc) { // dec in compare_b1()
|
| /rockchip-linux_mpp/mpp/codec/enc/h265/ |
| H A D | h265e_enctropy.c | 122 RK_S32 initState = MPP_MIN(MPP_MAX(1, (((slope * qp) >> 4) + offset)), 126); in sbacInit()
|
| H A D | h265e_ps.c | 136 …vps->m_maxDecPicBuffering[i] = MPP_MIN(MAX_REFS, MPP_MAX((vps->m_numReorderPics[i] + 3), codec->nu… in h265e_set_vps()
|
| /rockchip-linux_mpp/mpp/codec/dec/h264/ |
| H A D | h264d_dpb.c | 118 size = MPP_MIN(2 * size, MPP_MAX(1, RoundLog2(num_views)) * 16) / num_views; in getDpbSize() 127 size_vui = MPP_MAX(1, active_sps->vui_seq_parameters.max_dec_frame_buffering); in getDpbSize() 577 …if (p_Dpb->ref_frames_in_buffer == MPP_MAX(1, p_Dpb->num_ref_frames) - p_Dpb->ltref_frames_in_buff… in sliding_window_memory_management() 591 …if ((RK_S32)(p_Dpb->ltref_frames_in_buffer + p_Dpb->ref_frames_in_buffer) > MPP_MAX(1, p_Dpb->num_… in check_num_ref() 1972 p_Dpb->size = MPP_MAX(1, dpb_size); in init_dpb()
|
| /rockchip-linux_mpp/mpp/codec/dec/av1/ |
| H A D | av1d_cbs.c | 1032 min_log2_tiles = MPP_MAX(min_log2_tile_cols, in mpp_av1_tile_info() 1046 min_log2_tile_rows = MPP_MAX(min_log2_tiles - current->tile_cols_log2, 0); in mpp_av1_tile_info() 1074 widest_tile_sb = MPP_MAX(size_sb, widest_tile_sb); in mpp_av1_tile_info() 1084 max_tile_height_sb = MPP_MAX(max_tile_area_sb / widest_tile_sb, 1); in mpp_av1_tile_info() 1525 ctx->skip_ref1 = MPP_MAX(forward_idx, backward_idx) + 1; in mpp_av1_skip_mode_params() 1548 ctx->skip_ref1 = MPP_MAX(forward_idx, second_forward_idx) + 1; in mpp_av1_skip_mode_params()
|
| H A D | av1d_parser.c | 409 AV1_REF_FRAME_LAST + MPP_MAX(forward_idx, backward_idx); in skip_mode_params() 431 AV1_REF_FRAME_LAST + MPP_MAX(forward_idx, second_forward_idx); in skip_mode_params()
|
| /rockchip-linux_mpp/mpp/hal/rkenc/h264e/ |
| H A D | hal_h264e_vepu580.c | 439 if (new_max_cnt < MPP_MAX(new_max_cnt, info->dpb_size + 1)) in setup_hal_bufs() 440 new_max_cnt = MPP_MAX(new_max_cnt, info->dpb_size + 1); in setup_hal_bufs() 483 new_max_cnt = MPP_MAX(new_max_cnt, old_max_cnt); in setup_hal_bufs() 1459 pos_x_init = MPP_MAX(pos_x_init, 0); in vepu580_h264_set_one_roi() 1460 pos_y_init = MPP_MAX(pos_y_init, 0); in vepu580_h264_set_one_roi()
|
| H A D | hal_h264e_vepu510.c | 415 if (new_max_cnt < MPP_MAX(new_max_cnt, info->dpb_size + 1)) in setup_hal_bufs() 416 new_max_cnt = MPP_MAX(new_max_cnt, info->dpb_size + 1); in setup_hal_bufs() 461 new_max_cnt = MPP_MAX(new_max_cnt, old_max_cnt); in setup_hal_bufs() 1386 pos_x_init = MPP_MAX(pos_x_init, 0); in vepu510_h264_set_one_roi() 1387 pos_y_init = MPP_MAX(pos_y_init, 0); in vepu510_h264_set_one_roi()
|
| H A D | hal_h264e_vepu511.c | 414 if (new_max_cnt < MPP_MAX(new_max_cnt, info->dpb_size + 1)) in setup_hal_bufs() 415 new_max_cnt = MPP_MAX(new_max_cnt, info->dpb_size + 1); in setup_hal_bufs() 460 new_max_cnt = MPP_MAX(new_max_cnt, old_max_cnt); in setup_hal_bufs() 1386 pos_x_init = MPP_MAX(pos_x_init, 0); in vepu511_h264_set_one_roi() 1387 pos_y_init = MPP_MAX(pos_y_init, 0); in vepu511_h264_set_one_roi()
|
| H A D | hal_h264e_vepu541.c | 241 if (new_max_cnt < MPP_MAX(new_max_cnt, info->dpb_size + 1)) in setup_hal_bufs() 242 new_max_cnt = MPP_MAX(new_max_cnt, info->dpb_size + 1); in setup_hal_bufs() 260 new_max_cnt = MPP_MAX(new_max_cnt, old_max_cnt); in setup_hal_bufs()
|
| H A D | hal_h264e_vepu540c.c | 217 if (new_max_cnt < MPP_MAX(new_max_cnt, info->dpb_size + 1)) in setup_hal_bufs() 218 new_max_cnt = MPP_MAX(new_max_cnt, info->dpb_size + 1); in setup_hal_bufs() 267 new_max_cnt = MPP_MAX(new_max_cnt, old_max_cnt); in setup_hal_bufs()
|
| /rockchip-linux_mpp/mpp/ |
| H A D | mpp_impl.c | 173 RK_U32 step = MPP_MAX((hor_stride + w - 1) / w, in dump_frame()
|
| /rockchip-linux_mpp/mpp/hal/vpu/h264e/ |
| H A D | hal_h264e_vepu_v2.c | 608 nonZeroTarget = MPP_MIN(coeffCntMax, MPP_MAX(0, nonZeroTarget)); in h264e_vepu_mbrc_prepare()
|
| H A D | hal_h264e_vepu1_v2.c | 374 RK_U32 scaler = MPP_MAX(1, 200 / (mb_w + mb_h)); in hal_h264e_vepu1_gen_regs_v2()
|
| H A D | hal_h264e_vepu2_v2.c | 413 RK_U32 scaler = MPP_MAX(1, 200 / (mb_w + mb_h)); in hal_h264e_vepu2_gen_regs_v2()
|
| /rockchip-linux_mpp/mpp/codec/dec/h265/ |
| H A D | h265d_parser.c | 125 min_size = MPP_MAX(17 * min_size / 16 + 32, min_size); in mpp_combine_frame() 149 min_size = MPP_MAX(17 * min_size / 16 + 32, min_size); in mpp_combine_frame() 1599 min_size = MPP_MAX(17 * min_size / 16 + 32, min_size); in mpp_hevc_extract_rbsp()
|
| /rockchip-linux_mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_vdpu382.c | 446 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() 549 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in hal_h265d_rcb_info_update()
|
| H A D | hal_h265d_vdpu384a.c | 652 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() 729 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in hal_h265d_rcb_info_update()
|
| H A D | hal_h265d_vdpu34x.c | 675 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() 778 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in hal_h265d_rcb_info_update()
|
| H A D | hal_h265d_vdpu383.c | 656 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() 733 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in hal_h265d_rcb_info_update()
|
| /rockchip-linux_mpp/utils/ |
| H A D | mpi_dec_utils.c | 231 buf_size = MPP_MAX(buf_size, SZ_4K); in check_file_type()
|