Home
last modified time | relevance | path

Searched refs:CLIP3 (Results 1 – 25 of 61) sorted by relevance

123

/external/libhevc/common/
Dihevc_hbd_deblk_edge_filter.c128 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51); in ihevc_hbd_deblk_luma_vert()
135 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53); in ihevc_hbd_deblk_luma_vert()
209 tmp_q0 = CLIP3((pu2_src[2] + 2 * pu2_src[1] + in ihevc_hbd_deblk_luma_vert()
215 tmp_q1 = CLIP3((pu2_src[2] + pu2_src[1] + pu2_src[0] + in ihevc_hbd_deblk_luma_vert()
220 tmp_q2 = CLIP3((2 * pu2_src[3] + 3 * pu2_src[2] + in ihevc_hbd_deblk_luma_vert()
226 tmp_p0 = CLIP3((pu2_src[1] + 2 * pu2_src[0] + in ihevc_hbd_deblk_luma_vert()
232 tmp_p1 = CLIP3((pu2_src[0] + pu2_src[-1] + in ihevc_hbd_deblk_luma_vert()
237 tmp_p2 = CLIP3((pu2_src[0] + pu2_src[-1] + in ihevc_hbd_deblk_luma_vert()
249 delta = CLIP3(delta, -tc, tc); in ihevc_hbd_deblk_luma_vert()
251 tmp_p0 = CLIP3(pu2_src[-1] + delta, 0, ((1 << bit_depth) - 1)); in ihevc_hbd_deblk_luma_vert()
[all …]
Dihevc_deblk_edge_filter.c121 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51); in ihevc_deblk_luma_vert()
128 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_luma_vert()
202 tmp_q0 = CLIP3((pu1_src[2] + 2 * pu1_src[1] + in ihevc_deblk_luma_vert()
208 tmp_q1 = CLIP3((pu1_src[2] + pu1_src[1] + pu1_src[0] + in ihevc_deblk_luma_vert()
213 tmp_q2 = CLIP3((2 * pu1_src[3] + 3 * pu1_src[2] + in ihevc_deblk_luma_vert()
219 tmp_p0 = CLIP3((pu1_src[1] + 2 * pu1_src[0] + in ihevc_deblk_luma_vert()
225 tmp_p1 = CLIP3((pu1_src[0] + pu1_src[-1] + in ihevc_deblk_luma_vert()
230 tmp_p2 = CLIP3((pu1_src[0] + pu1_src[-1] + in ihevc_deblk_luma_vert()
242 delta = CLIP3(delta, -tc, tc); in ihevc_deblk_luma_vert()
249 delta_p = CLIP3((((pu1_src[-3] + pu1_src[-1] + 1) >> 1) in ihevc_deblk_luma_vert()
[all …]
Dihevc_sao.c115 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1); in ihevc_sao_band_offset_luma()
177 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1); in ihevc_sao_band_offset_chroma()
248 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0()
347 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0_chroma()
440 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class1()
539 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class1_chroma()
617 u1_pos_0_0_tmp = CLIP3(pu1_src[0] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2()
641 …u1_pos_wd_ht_tmp = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 <… in ihevc_sao_edge_offset_class2()
707 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2()
813 … u1_pos_0_0_tmp_u = CLIP3(pu1_src[0] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2_chroma()
[all …]
Dihevc_macros.h40 #define CLIP3(x, min, max) (((x) > (max)) ? (max) :(((x) < (min))? (min):(x))) macro
/external/libavc/common/mips/
Dih264_platform_macros.h43 #define CLIP_U8(x) CLIP3(0, UINT8_MAX, (x))
44 #define CLIP_S8(x) CLIP3(INT8_MIN, INT8_MAX, (x))
46 #define CLIP_U10(x) CLIP3(0, 1023, (x))
47 #define CLIP_S10(x) CLIP3(-512, 511, (x))
49 #define CLIP_U11(x) CLIP3(0, 2047, (x))
50 #define CLIP_S11(x) CLIP3(-1024, 1023, (x))
52 #define CLIP_U12(x) CLIP3(0, 4095, (x))
53 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
55 #define CLIP_U16(x) CLIP3(0, UINT16_MAX, (x))
56 #define CLIP_S16(x) CLIP3(INT16_MIN, INT16_MAX, (x))
[all …]
/external/libavc/common/x86/
Dih264_platform_macros.h44 #define CLIP_U8(x) CLIP3(0, UINT8_MAX, (x))
45 #define CLIP_S8(x) CLIP3(INT8_MIN, INT8_MAX, (x))
47 #define CLIP_U10(x) CLIP3(0, 1023, (x))
48 #define CLIP_S10(x) CLIP3(-512, 511, (x))
50 #define CLIP_U11(x) CLIP3(0, 2047, (x))
51 #define CLIP_S11(x) CLIP3(-1024, 1023, (x))
53 #define CLIP_U12(x) CLIP3(0, 4095, (x))
54 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
56 #define CLIP_U16(x) CLIP3(0, UINT16_MAX, (x))
57 #define CLIP_S16(x) CLIP3(INT16_MIN, INT16_MAX, (x))
[all …]
/external/libavc/common/armv8/
Dih264_platform_macros.h112 #define CLIP_U8(x) CLIP3(0, UINT8_MAX, (x))
113 #define CLIP_S8(x) CLIP3(INT8_MIN, INT8_MAX, (x))
115 #define CLIP_U10(x) CLIP3(0, 1023, (x))
116 #define CLIP_S10(x) CLIP3(-512, 511, (x))
118 #define CLIP_U11(x) CLIP3(0, 2047, (x))
119 #define CLIP_S11(x) CLIP3(-1024, 1023, (x))
121 #define CLIP_U12(x) CLIP3(0, 4095, (x))
122 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
124 #define CLIP_U16(x) CLIP3(0, UINT16_MAX, (x))
125 #define CLIP_S16(x) CLIP3(INT16_MIN, INT16_MAX, (x))
[all …]
/external/libavc/common/arm/
Dih264_platform_macros.h112 #define CLIP_U8(x) CLIP3(0, UINT8_MAX, (x))
113 #define CLIP_S8(x) CLIP3(INT8_MIN, INT8_MAX, (x))
115 #define CLIP_U10(x) CLIP3(0, 1023, (x))
116 #define CLIP_S10(x) CLIP3(-512, 511, (x))
118 #define CLIP_U11(x) CLIP3(0, 2047, (x))
119 #define CLIP_S11(x) CLIP3(-1024, 1023, (x))
121 #define CLIP_U12(x) CLIP3(0, 4095, (x))
122 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
124 #define CLIP_U16(x) CLIP3(0, UINT16_MAX, (x))
125 #define CLIP_S16(x) CLIP3(INT16_MIN, INT16_MAX, (x))
[all …]
/external/libmpeg2/common/mips/
Dicv_platform_macros.h67 #define CLIP_U8(x) CLIP3(0, 255, (x))
68 #define CLIP_S8(x) CLIP3(-128, 127, (x))
70 #define CLIP_U10(x) CLIP3(0, 1023, (x))
71 #define CLIP_S10(x) CLIP3(-512, 511, (x))
73 #define CLIP_U12(x) CLIP3(0, 4095, (x))
74 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
76 #define CLIP_U16(x) CLIP3(0, 65535, (x))
77 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libmpeg2/common/x86/
Dicv_platform_macros.h67 #define CLIP_U8(x) CLIP3(0, 255, (x))
68 #define CLIP_S8(x) CLIP3(-128, 127, (x))
70 #define CLIP_U10(x) CLIP3(0, 1023, (x))
71 #define CLIP_S10(x) CLIP3(-512, 511, (x))
73 #define CLIP_U12(x) CLIP3(0, 4095, (x))
74 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
76 #define CLIP_U16(x) CLIP3(0, 65535, (x))
77 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libhevc/common/mips/
Dihevc_platform_macros.h38 #define CLIP_U8(x) CLIP3((x), 0, 255)
39 #define CLIP_S8(x) CLIP3((x), -128, 127)
41 #define CLIP_U10(x) CLIP3((x), 0, 1023);
42 #define CLIP_S10(x) CLIP3((x), -512, 511);
44 #define CLIP_U12(x) CLIP3((x), 0, 4095);
45 #define CLIP_S12(x) CLIP3((x), -2048, 2047);
47 #define CLIP_U16(x) CLIP3((x), 0, 65535)
48 #define CLIP_S16(x) CLIP3((x), -32768, 32767)
/external/libhevc/common/x86/
Dihevc_platform_macros.h40 #define CLIP_U8(x) CLIP3((x), 0, 255);
41 #define CLIP_S8(x) CLIP3((x), -128, 127);
43 #define CLIP_U10(x) CLIP3((x), 0, 1023);
44 #define CLIP_S10(x) CLIP3((x), -512, 511);
46 #define CLIP_U12(x) CLIP3((x), 0, 4095);
47 #define CLIP_S12(x) CLIP3((x), -2048, 2047);
49 #define CLIP_U14(x) CLIP3((x), 0, 16383);
50 #define CLIP_S14(x) CLIP3((x), -8192, 8191);
52 #define CLIP_U16(x) CLIP3((x), 0, 65535);
53 #define CLIP_S16(x) CLIP3((x), -32768, 32767);
Dihevc_deblk_ssse3_intr.c129 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51); in ihevc_deblk_luma_vert_ssse3()
136 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_luma_vert_ssse3()
569 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51); in ihevc_deblk_luma_horz_ssse3()
576 tc_indx = CLIP3(qp_luma + 2 * (bs >> 1) + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_luma_horz_ssse3()
1014 tc_indx_u = CLIP3(qp_chroma_u + 2 + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_chroma_vert_ssse3()
1017 tc_indx_v = CLIP3(qp_chroma_v + 2 + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_chroma_vert_ssse3()
1167 tc_indx_u = CLIP3(qp_chroma_u + 2 + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_chroma_horz_ssse3()
1170 tc_indx_v = CLIP3(qp_chroma_v + 2 + (tc_offset_div2 << 1), 0, 53); in ihevc_deblk_chroma_horz_ssse3()
/external/libhevc/common/arm/
Dihevc_platform_macros.h105 #define CLIP_U8(x) CLIP3((x), 0, 255)
106 #define CLIP_S8(x) CLIP3((x), -128, 127)
108 #define CLIP_U10(x) CLIP3((x), 0, 1023);
109 #define CLIP_S10(x) CLIP3((x), -512, 511);
111 #define CLIP_U12(x) CLIP3((x), 0, 4095);
112 #define CLIP_S12(x) CLIP3((x), -2048, 2047);
114 #define CLIP_U14(x) CLIP3((x), 0, 16383);
115 #define CLIP_S14(x) CLIP3((x), -8192, 8191);
117 #define CLIP_U16(x) CLIP3((x), 0, 65535)
118 #define CLIP_S16(x) CLIP3((x), -32768, 32767)
/external/libhevc/encoder/
Dihevce_sao.c526 ? (CLIP3(acc_error_category[0] / category_count[0], 0, 7)) in ihevce_sao_analyse()
529 ? (CLIP3(acc_error_category[1] / category_count[1], 0, 7)) in ihevce_sao_analyse()
532 ? (CLIP3(acc_error_category[3] / category_count[3], -7, 0)) in ihevce_sao_analyse()
535 ? (CLIP3(acc_error_category[4] / category_count[4], -7, 0)) in ihevce_sao_analyse()
573 ? (CLIP3(acc_error_category[0] / category_count[0], 0, 7)) in ihevce_sao_analyse()
576 ? (CLIP3(acc_error_category[1] / category_count[1], 0, 7)) in ihevce_sao_analyse()
579 ? (CLIP3(acc_error_category[3] / category_count[3], -7, 0)) in ihevce_sao_analyse()
582 ? (CLIP3(acc_error_category[4] / category_count[4], -7, 0)) in ihevce_sao_analyse()
619 ? (CLIP3(acc_error_category[0] / category_count[0], 0, 7)) in ihevce_sao_analyse()
622 ? (CLIP3(acc_error_category[1] / category_count[1], 0, 7)) in ihevce_sao_analyse()
[all …]
Dihevce_defs.h444 (0.85 * pow(2.0, (Tid * (CLIP3(((QP + 5.0) / 25.0), 1.0, 2.0) - 1.0)) / 3.0))
914 #define CLIPUCHAR(x) CLIP3((x), 0, 255)
916 #define CLIPUCHAR10BIT(x) CLIP3((x), 0, 1023)
Dihevce_cabac_rdo.c259 CLIP3(slice_qp, 0, IHEVC_MAX_QP), in ihevce_entropy_rdo_frame_init()
266 CLIP3(slice_qp, 0, IHEVC_MAX_QP), in ihevce_entropy_rdo_frame_init()
/external/libavc/common/
Dih264_deblk_edge_filters.c593 delta = CLIP3(-tc, tc, val); in ih264_deblk_luma_vert_bslt4()
607 pu1_src_temp[pos_p1] += CLIP3(-tc0, tc0, val); in ih264_deblk_luma_vert_bslt4()
614 pu1_src_temp[pos_q1] += CLIP3(-tc0, tc0, val); in ih264_deblk_luma_vert_bslt4()
707 delta = CLIP3(-tc, tc, val); in ih264_deblk_chroma_vert_bslt4_bp()
722 delta = CLIP3(-tc, tc, val); in ih264_deblk_chroma_vert_bslt4_bp()
827 delta = CLIP3(-tc, tc, val); in ih264_deblk_luma_horz_bslt4()
840 pu1_p2_temp[pos_p1] += CLIP3(-tc0, tc0, val); in ih264_deblk_luma_horz_bslt4()
847 pu1_src_temp[pos_q1] += CLIP3(-tc0, tc0, val); in ih264_deblk_luma_horz_bslt4()
949 delta = CLIP3(-tc, tc, val); in ih264_deblk_chroma_horz_bslt4_bp()
962 delta = CLIP3(-tc, tc, val); in ih264_deblk_chroma_horz_bslt4_bp()
[all …]
Dih264_macros.h75 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > (maxy))?(maxy):(y))) macro
/external/libhevc/decoder/
Dihevcd_inter_pred.c274 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
278 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
293 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
297 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
321 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
325 …mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
339 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_i… in ihevcd_inter_pred_ctb()
343 …mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_… in ihevcd_inter_pred_ctb()
/external/libavc/encoder/
Dih264e_me.c269 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx); in ih264e_get_search_candidates()
270 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy); in ih264e_get_search_candidates()
284 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx); in ih264e_get_search_candidates()
285 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy); in ih264e_get_search_candidates()
298 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx); in ih264e_get_search_candidates()
299 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy); in ih264e_get_search_candidates()
312 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx); in ih264e_get_search_candidates()
313 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy); in ih264e_get_search_candidates()
340 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx); in ih264e_get_search_candidates()
341 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy); in ih264e_get_search_candidates()
[all …]
Dime_macros.h41 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > maxy)?(maxy):(y))) macro
Dih264e_cabac_encode.c1484 u1_abs_mvd_x = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_p16x16()
1491 u1_abs_mvd_y = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_p16x16()
1549 u1_abs_mvd_x = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_b16x16()
1556 u1_abs_mvd_y = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_b16x16()
1581 u1_abs_mvd_x = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_b16x16()
1588 u1_abs_mvd_y = CLIP3(0, 127, ABS(u2_mv)); in ih264e_cabac_enc_mvds_b16x16()
/external/libavc/decoder/
Dih264d_inter_pred.c270 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_X_FRM, (ps_dec->u2_pic_wd - 1), in ih264d_form_mb_part_info_bp()
272 i2_frm_y = CLIP3(((1 - u1_dma_ht)), (u2_pic_ht - (1)), i2_frm_y); in ih264d_form_mb_part_info_bp()
363 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_UV_FRM, in ih264d_form_mb_part_info_bp()
365 i2_frm_y = CLIP3(((1 - u1_dma_ht)), (u2_pic_ht - (1)), i2_frm_y); in ih264d_form_mb_part_info_bp()
624 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_X_FRM, (ps_dec->u2_pic_wd - 1), in ih264d_form_mb_part_info_mp()
626 i2_frm_y = CLIP3(((1 - u1_dma_ht) << u1_mb_fld), in ih264d_form_mb_part_info_mp()
770 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_UV_FRM, in ih264d_form_mb_part_info_mp()
772 i2_frm_y = CLIP3(((1 - u1_dma_ht) << u1_mb_fld), in ih264d_form_mb_part_info_mp()
/external/libmpeg2/common/
Dicv_macros.h56 #define CLIP3(min, max, x) (((x) > (max)) ? (max) :(((x) < (min))? (min):(x))) macro

123