Searched refs:CLIP3 (Results 1 - 25 of 38) sorted by relevance

12

/external/libavc/common/mips/
H A Dih264_platform_macros.h41 #define CLIP_U8(x) CLIP3(0, 255, (x))
42 #define CLIP_S8(x) CLIP3(-128, 127, (x))
44 #define CLIP_U10(x) CLIP3(0, 1023, (x))
45 #define CLIP_S10(x) CLIP3(-512, 511, (x))
47 #define CLIP_U12(x) CLIP3(0, 4095, (x))
48 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
50 #define CLIP_U16(x) CLIP3(0, 65535, (x))
51 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libavc/common/x86/
H A Dih264_platform_macros.h44 #define CLIP_U8(x) CLIP3(0, 255, (x))
45 #define CLIP_S8(x) CLIP3(-128, 127, (x))
47 #define CLIP_U10(x) CLIP3(0, 1023, (x))
48 #define CLIP_S10(x) CLIP3(-512, 511, (x))
50 #define CLIP_U12(x) CLIP3(0, 4095, (x))
51 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
53 #define CLIP_U16(x) CLIP3(0, 65535, (x))
54 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libhevc/common/mips/
H A 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/libmpeg2/common/mips/
H A 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/
H A 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/libavc/common/arm/
H A Dih264_platform_macros.h98 #define CLIP_U8(x) CLIP3(0, 255, (x))
99 #define CLIP_S8(x) CLIP3(-128, 127, (x))
101 #define CLIP_U10(x) CLIP3(0, 1023, (x))
102 #define CLIP_S10(x) CLIP3(-512, 511, (x))
104 #define CLIP_U12(x) CLIP3(0, 4095, (x))
105 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
107 #define CLIP_U16(x) CLIP3(0, 65535, (x))
108 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libavc/common/armv8/
H A Dih264_platform_macros.h98 #define CLIP_U8(x) CLIP3(0, 255, (x))
99 #define CLIP_S8(x) CLIP3(-128, 127, (x))
101 #define CLIP_U10(x) CLIP3(0, 1023, (x))
102 #define CLIP_S10(x) CLIP3(-512, 511, (x))
104 #define CLIP_U12(x) CLIP3(0, 4095, (x))
105 #define CLIP_S12(x) CLIP3(-2048, 2047, (x))
107 #define CLIP_U16(x) CLIP3(0, 65535, (x))
108 #define CLIP_S16(x) CLIP3(-32768, 32767, (x))
/external/libhevc/common/x86/
H A Dihevc_platform_macros.h42 #define CLIP_U8(x) CLIP3((x), 0, 255)
43 #define CLIP_S8(x) CLIP3((x), -128, 127)
45 #define CLIP_U10(x) CLIP3((x), 0, 1023);
46 #define CLIP_S10(x) CLIP3((x), -512, 511);
48 #define CLIP_U12(x) CLIP3((x), 0, 4095);
49 #define CLIP_S12(x) CLIP3((x), -2048, 2047);
51 #define CLIP_U16(x) CLIP3((x), 0, 65535)
52 #define CLIP_S16(x) CLIP3((x), -32768, 32767)
H A Dihevc_deblk_ssse3_intr.c129 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51);
136 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53);
569 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51);
576 tc_indx = CLIP3(qp_luma + 2 * (bs >> 1) + (tc_offset_div2 << 1), 0, 53);
1014 tc_indx_u = CLIP3(qp_chroma_u + 2 + (tc_offset_div2 << 1), 0, 53);
1017 tc_indx_v = CLIP3(qp_chroma_v + 2 + (tc_offset_div2 << 1), 0, 53);
1167 tc_indx_u = CLIP3(qp_chroma_u + 2 + (tc_offset_div2 << 1), 0, 53);
1170 tc_indx_v = CLIP3(qp_chroma_v + 2 + (tc_offset_div2 << 1), 0, 53);
/external/libhevc/common/arm/
H A Dihevc_platform_macros.h93 #define CLIP_U8(x) CLIP3((x), 0, 255)
94 #define CLIP_S8(x) CLIP3((x), -128, 127)
96 #define CLIP_U10(x) CLIP3((x), 0, 1023);
97 #define CLIP_S10(x) CLIP3((x), -512, 511);
99 #define CLIP_U12(x) CLIP3((x), 0, 4095);
100 #define CLIP_S12(x) CLIP3((x), -2048, 2047);
102 #define CLIP_U16(x) CLIP3((x), 0, 65535)
103 #define CLIP_S16(x) CLIP3((x), -32768, 32767)
/external/libavc/encoder/
H A Dime_macros.h41 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > maxy)?(maxy):(y))) macro
H A Dih264e_me.c269 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx);
270 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy);
284 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx);
285 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy);
298 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx);
299 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy);
312 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx);
313 mvy = CLIP3(i4_srch_range_n, i4_srch_range_s, mvy);
340 mvx = CLIP3(i4_srch_range_w, i4_srch_range_e, mvx);
341 mvy = CLIP3(i4_srch_range_
[all...]
H A Dime.c723 s_clip_skip_mv.i2_mvx = CLIP3(ps_me_ctxt->i4_srch_range_w, ps_me_ctxt->i4_srch_range_e, s_skip_mv.i2_mvx);
724 s_clip_skip_mv.i2_mvy = CLIP3(ps_me_ctxt->i4_srch_range_n, ps_me_ctxt->i4_srch_range_s, s_skip_mv.i2_mvy);
/external/libhevc/common/
H A Dihevc_deblk_edge_filter.c121 beta_indx = CLIP3(qp_luma + (beta_offset_div2 << 1), 0, 51);
128 tc_indx = CLIP3(qp_luma + (2 * (bs >> 1)) + (tc_offset_div2 << 1), 0, 53);
202 tmp_q0 = CLIP3((pu1_src[2] + 2 * pu1_src[1] +
208 tmp_q1 = CLIP3((pu1_src[2] + pu1_src[1] + pu1_src[0] +
213 tmp_q2 = CLIP3((2 * pu1_src[3] + 3 * pu1_src[2] +
219 tmp_p0 = CLIP3((pu1_src[1] + 2 * pu1_src[0] +
225 tmp_p1 = CLIP3((pu1_src[0] + pu1_src[-1] +
230 tmp_p2 = CLIP3((pu1_src[0] + pu1_src[-1] +
242 delta = CLIP3(delta, -tc, tc);
249 delta_p = CLIP3((((pu1_sr
[all...]
H A Dihevc_sao.c115 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1);
177 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1);
248 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
347 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
440 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
539 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
617 u1_pos_0_0_tmp = CLIP3(pu1_src[0] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
641 u1_pos_wd_ht_tmp = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
707 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
813 u1_pos_0_0_tmp_u = CLIP3(pu1_sr
[all...]
H A Dihevc_macros.h40 #define CLIP3(x, min, max) (((x) > (max)) ? (max) :(((x) < (min))? (min):(x))) macro
H A Dihevc_trans_macros.h173 clip_coeff = CLIP3(coeff,coeff_min,coeff_max); \
/external/libmpeg2/common/
H A Dicv_macros.h56 #define CLIP3(min, max, x) (((x) > (max)) ? (max) :(((x) < (min))? (min):(x))) macro
/external/libhevc/decoder/
H A 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_in_luma_samples - pu_x + 7) << 2));
278 mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_in_luma_samples - pu_y + 7) << 2));
293 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_in_luma_samples - pu_x + 7) << 2));
297 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_in_luma_samples - pu_y + 7) << 2));
321 mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_in_luma_samples - pu_x + 7) << 2));
325 mv = CLIP3(ps_pu->mv.s_l0_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_in_luma_samples - pu_y + 7) << 2));
339 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvx, (-((MAX_CTB_SIZE + pu_x + 7) << 2)), ((ps_sps->i2_pic_width_in_luma_samples - pu_x + 7) << 2));
343 mv = CLIP3(ps_pu->mv.s_l1_mv.i2_mvy, (-((MAX_CTB_SIZE + pu_y + 7) << 2)), ((ps_sps->i2_pic_height_in_luma_samples - pu_y + 7) << 2));
H A Dihevcd_parse_slice_header.c173 ps_rplm->i1_list_entry_l0[i] = CLIP3(ps_rplm->i1_list_entry_l0[i], 0, num_poc_total_curr - 1);
188 ps_rplm->i1_list_entry_l1[i] = CLIP3(ps_rplm->i1_list_entry_l1[i], 0, num_poc_total_curr - 1);
253 pps_id = CLIP3(pps_id, 0, MAX_PPS_CNT - 2);
458 ps_slice_hdr->i1_num_long_term_sps = CLIP3(ps_slice_hdr->i1_num_long_term_sps,
463 ps_slice_hdr->i1_num_long_term_pics = CLIP3(ps_slice_hdr->i1_num_long_term_pics,
585 ps_slice_hdr->i1_num_ref_idx_l0_active = CLIP3(ps_slice_hdr->i1_num_ref_idx_l0_active, 0, MAX_DPB_SIZE - 1);
586 ps_slice_hdr->i1_num_ref_idx_l1_active = CLIP3(ps_slice_hdr->i1_num_ref_idx_l1_active, 0, MAX_DPB_SIZE - 1);
632 ps_slice_hdr->i1_collocated_ref_idx = CLIP3(ps_slice_hdr->i1_collocated_ref_idx, 0, MAX_DPB_SIZE - 1);
643 ps_slice_hdr->i1_max_num_merge_cand = CLIP3(ps_slice_hdr->i1_max_num_merge_cand, 1, 5);
830 ps_slice_hdr->i4_num_entry_point_offsets = CLIP3(ps_slice_hd
[all...]
H A Dihevcd_parse_headers.c393 r_idx = CLIP3(r_idx, 0, idx - 1);
450 num_neg_pics = CLIP3(num_neg_pics, 0, MAX_DPB_SIZE - 1);
451 num_pos_pics = CLIP3(num_pos_pics, 0, (MAX_DPB_SIZE - 1 - num_neg_pics));
496 ps_stref_picset->i1_num_neg_pics = CLIP3(ps_stref_picset->i1_num_neg_pics,
502 ps_stref_picset->i1_num_pos_pics = CLIP3(ps_stref_picset->i1_num_pos_pics,
1063 value = CLIP3(value, 0, matrix_id);
1285 vps_id = CLIP3(vps_id, 0, MAX_VPS_CNT - 1);
1289 sps_max_sub_layers = CLIP3(sps_max_sub_layers, 1, 7);
1827 ps_pps->i1_sps_id = CLIP3(ps_pps->i1_sps_id, 0, MAX_SPS_CNT - 2);
2361 num_units_minus1 = CLIP3(num_units_minus
[all...]
/external/libavc/common/
H A Dih264_macros.h75 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > (maxy))?(maxy):(y))) macro
H A Dih264_deblk_edge_filters.c593 delta = CLIP3(-tc, tc, val);
607 pu1_src_temp[pos_p1] += CLIP3(-tc0, tc0, val);
614 pu1_src_temp[pos_q1] += CLIP3(-tc0, tc0, val);
707 delta = CLIP3(-tc, tc, val);
722 delta = CLIP3(-tc, tc, val);
827 delta = CLIP3(-tc, tc, val);
840 pu1_p2_temp[pos_p1] += CLIP3(-tc0, tc0, val);
847 pu1_src_temp[pos_q1] += CLIP3(-tc0, tc0, val);
949 delta = CLIP3(-tc, tc, val);
962 delta = CLIP3(
[all...]
/external/libavc/decoder/
H A Dih264d_inter_pred.c270 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_X_FRM, (ps_dec->u2_pic_wd - 1),
272 i2_frm_y = CLIP3(((1 - u1_dma_ht)), (u2_pic_ht - (1)), i2_frm_y);
363 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_UV_FRM,
365 i2_frm_y = CLIP3(((1 - u1_dma_ht)), (u2_pic_ht - (1)), i2_frm_y);
624 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_X_FRM, (ps_dec->u2_pic_wd - 1),
626 i2_frm_y = CLIP3(((1 - u1_dma_ht) << u1_mb_fld),
770 i2_frm_x = CLIP3(MAX_OFFSET_OUTSIDE_UV_FRM,
772 i2_frm_y = CLIP3(((1 - u1_dma_ht) << u1_mb_fld),
H A Dih264d_parse_bslice.c1223 i16_tb = CLIP3(-128, 127, i4_tb);
1225 i16_td = CLIP3(-128, 127, i4_td);
1227 i2_dist_scale_factor = CLIP3(-1024, 1023,
1293 i16_tb = CLIP3(-128, 127, i4_tb);
1295 i16_td = CLIP3(-128, 127, i4_td);
1298 i2_dist_scale_factor = CLIP3(

Completed in 2841 milliseconds

12