Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 24 of 24) sorted by relevance

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_quant_common.c125 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant()
129 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant()
139 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
Dvp9_mv.h39 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv()
40 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
Dvp9_common.h55 static INLINE int clamp(int value, int low, int high) { in clamp() function
Dvp9_loopfilter.c271 lvl_seg = clamp(seg->abs_delta == SEGMENT_ABSDATA ? in vp9_loop_filter_frame_init()
283 lfi->lvl[seg_id][INTRA_FRAME][0] = clamp(intra_lvl, 0, MAX_LOOP_FILTER); in vp9_loop_filter_frame_init()
289 lfi->lvl[seg_id][ref][mode] = clamp(inter_lvl, 0, MAX_LOOP_FILTER); in vp9_loop_filter_frame_init()
Dvp9_loopfilter_filters.c17 return (int8_t)clamp(t, -128, 127); in signed_char_clamp()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/arm/neon/
Dvp9_loopfilter_16_neon.asm152 vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1)
168 ; filter = clamp(filter + 3 * ( qs0 - ps0))
173 vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3)
174 vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4)
179 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2)
180 vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1)
189 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter)
190 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
Dvp9_loopfilter_neon.asm237 vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1)
249 ; filter = clamp(filter + 3 * ( qs0 - ps0))
254 vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3)
255 vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4)
259 vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2)
260 vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1)
269 vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter)
270 vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter)
539 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1)
549 ; filter = clamp(filter + 3 * ( qs0 - ps0))
[all …]
Dvp9_mb_lpf_neon.asm407 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1)
413 ; filter = clamp(filter + 3 * ( qs0 - ps0))
418 vqadd.s8 d30, d28, d27 ; filter2 = clamp(filter+3)
419 vqadd.s8 d29, d28, d29 ; filter1 = clamp(filter+4)
424 vqadd.s8 d24, d24, d30 ; op0 = clamp(ps0 + filter2)
425 vqsub.s8 d23, d23, d29 ; oq0 = clamp(qs0 - filter1)
431 vqadd.s8 d25, d25, d29 ; op1 = clamp(ps1 + filter)
432 vqsub.s8 d26, d26, d29 ; oq1 = clamp(qs1 - filter)
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/neon/
Dmbloopfilter_neon.asm381 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1)
396 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0))
406 vqadd.s8 q2, q13, q11 ; Filter1 = clamp(Filter2+4)
407 vqadd.s8 q13, q13, q12 ; Filter2 = clamp(Filter2+3)
417 vqsub.s8 q7, q7, q2 ; qs0 = clamp(qs0 - Filter1)
419 vqadd.s8 q6, q6, q13 ; ps0 = clamp(ps0 + Filter2)
441 vqshrn.s16 d0, q0, #7 ; u = clamp((63 + Filter2 * 9)>>7)
443 vqshrn.s16 d24, q12, #7 ; u = clamp((63 + Filter2 * 18)>>7)
445 vqshrn.s16 d28, q14, #7 ; u = clamp((63 + Filter2 * 27)>>7)
450 vqsub.s8 q11, q9, q0 ; s = clamp(qs2 - u)
[all …]
Dloopfilter_neon.asm352 vqsub.s8 q1, q5, q8 ; vp8_filter = clamp(ps1-qs1)
366 ; vp8_filter = clamp(vp8_filter + 3 * ( qs0 - ps0))
371 vqadd.s8 q2, q1, q10 ; Filter2 = clamp(vp8_filter+3)
372 vqadd.s8 q1, q1, q9 ; Filter1 = clamp(vp8_filter+4)
377 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + Filter2)
378 vqsub.s8 q10, q7, q1 ; u = clamp(qs0 - Filter1)
384 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + vp8_filter)
385 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - vp8_filter)
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_picklpf.c57 int filt_mid = clamp(lf->filter_level, min_filter_level, max_filter_level); in search_filter_level()
151 lf->filter_level = clamp(filt_guess, min_filter_level, max_filter_level); in vp9_pick_filter_level()
Dvp9_aq_complexity.c92 clamp((int)((projected_rate * 64) / target_rate), 16, 255); in vp9_select_in_frame_q_segment()
Dvp9_aq_variance.c147 return clamp((int)round(energy), ENERGY_MIN, ENERGY_MAX); in vp9_block_energy()
Dvp9_lookahead.c66 depth = clamp(depth, 1, MAX_LAG_BUFFERS); in vp9_lookahead_init()
Dvp9_ratectrl.c564 active_best_quality = clamp(active_best_quality, in rc_pick_q_and_bounds_one_pass_cbr()
566 active_worst_quality = clamp(active_worst_quality, in rc_pick_q_and_bounds_one_pass_cbr()
725 active_best_quality = clamp(active_best_quality, in rc_pick_q_and_bounds_one_pass_vbr()
727 active_worst_quality = clamp(active_worst_quality, in rc_pick_q_and_bounds_one_pass_vbr()
907 active_best_quality = clamp(active_best_quality, in rc_pick_q_and_bounds_two_pass()
909 active_worst_quality = clamp(active_worst_quality, in rc_pick_q_and_bounds_two_pass()
Dvp9_quantize.c60 int tmp = clamp(abs_coeff + round_ptr[rc != 0], INT16_MIN, INT16_MAX); in vp9_quantize_b_c()
115 abs_coeff = clamp(abs_coeff, INT16_MIN, INT16_MAX); in vp9_quantize_b_32x32_c()
Dvp9_aq_cyclicrefresh.c253 qindex2 = clamp(cm->base_qindex + cm->y_dc_delta_q + qindex_delta, 0, MAXQ); in vp9_cyclic_refresh_setup()
Dvp9_onyx_if.c751 cm->log2_tile_cols = clamp(cpi->oxcf.tile_columns, in set_tile_limits()
845 cpi->oxcf.cpu_used = clamp(cpi->oxcf.cpu_used, -5, 5); in vp9_change_config()
858 cpi->oxcf.cpu_used = clamp(cpi->oxcf.cpu_used, -5, 5); in vp9_change_config()
2390 q = clamp(q, q_low, q_high);
2466 q = clamp(q, q_low, q_high);
Dvp9_firstpass.c1674 boost = clamp(boost, 125, (rc->baseline_gf_interval + 1) * 200); in define_gf_group()
1811 target_frame_size = clamp(target_frame_size, 0, in assign_std_frame_bits()
Dvp9_rdopt.c250 const int qindex = clamp(vp9_get_qindex(&cm->seg, segment_id, in set_block_thresholds()
2942 thresh_ac = clamp(thresh_ac, min_thresh, max_thresh); in handle_inter_mode()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_dsubexp.c67 v = clamp(v, 0, 253); in inv_remap_prob()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/x86/
Dpostproc_mmx.asm280 … psubusb mm1, [rdx] ;blackclamp ; clamp both sides so we don't outrange adding noise
Dpostproc_sse2.asm694 … psubusb xmm1, [rdx] ;blackclamp ; clamp both sides so we don't outrange adding noise
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/arm/armv6/
Dfilter_v6.asm413 usat r6, #8, r6, asr #7 ; shift and clamp