Home
last modified time | relevance | path

Searched refs:ROUND_POWER_OF_TWO (Results 1 – 25 of 53) sorted by relevance

123

/external/libvpx/libvpx/vpx_dsp/mips/
Ditrans8_dspr2.c642 x0 = ROUND_POWER_OF_TWO((s0 + s4), DCT_CONST_BITS); in iadst8_dspr2()
643 x1 = ROUND_POWER_OF_TWO((s1 + s5), DCT_CONST_BITS); in iadst8_dspr2()
644 x2 = ROUND_POWER_OF_TWO((s2 + s6), DCT_CONST_BITS); in iadst8_dspr2()
645 x3 = ROUND_POWER_OF_TWO((s3 + s7), DCT_CONST_BITS); in iadst8_dspr2()
646 x4 = ROUND_POWER_OF_TWO((s0 - s4), DCT_CONST_BITS); in iadst8_dspr2()
647 x5 = ROUND_POWER_OF_TWO((s1 - s5), DCT_CONST_BITS); in iadst8_dspr2()
648 x6 = ROUND_POWER_OF_TWO((s2 - s6), DCT_CONST_BITS); in iadst8_dspr2()
649 x7 = ROUND_POWER_OF_TWO((s3 - s7), DCT_CONST_BITS); in iadst8_dspr2()
665 x4 = ROUND_POWER_OF_TWO((s4 + s6), DCT_CONST_BITS); in iadst8_dspr2()
666 x5 = ROUND_POWER_OF_TWO((s5 + s7), DCT_CONST_BITS); in iadst8_dspr2()
[all …]
Ditrans32_cols_dspr2.c853 step3_12 = ROUND_POWER_OF_TWO((step1_3 - step2_28), 6); in vpx_idct32_cols_add_blk_dspr2()
854 step3_13 = ROUND_POWER_OF_TWO((step1_2 - step2_29), 6); in vpx_idct32_cols_add_blk_dspr2()
855 step3_14 = ROUND_POWER_OF_TWO((step1_1 - step2_30), 6); in vpx_idct32_cols_add_blk_dspr2()
856 step3_15 = ROUND_POWER_OF_TWO((step1_0 - step2_31), 6); in vpx_idct32_cols_add_blk_dspr2()
930 step3_12 = ROUND_POWER_OF_TWO((step1_7 - step1_24), 6); in vpx_idct32_cols_add_blk_dspr2()
931 step3_13 = ROUND_POWER_OF_TWO((step1_6 - step1_25), 6); in vpx_idct32_cols_add_blk_dspr2()
932 step3_14 = ROUND_POWER_OF_TWO((step1_5 - step1_26), 6); in vpx_idct32_cols_add_blk_dspr2()
933 step3_15 = ROUND_POWER_OF_TWO((step1_4 - step1_27), 6); in vpx_idct32_cols_add_blk_dspr2()
1007 step3_12 = ROUND_POWER_OF_TWO((step1_11 - step1_20), 6); in vpx_idct32_cols_add_blk_dspr2()
1008 step3_13 = ROUND_POWER_OF_TWO((step1_10 - step1_21), 6); in vpx_idct32_cols_add_blk_dspr2()
[all …]
Didct4x4_msa.c92 out = ROUND_POWER_OF_TWO((input[0] * cospi_16_64), DCT_CONST_BITS); in vpx_idct4x4_1_add_msa()
93 out = ROUND_POWER_OF_TWO((out * cospi_16_64), DCT_CONST_BITS); in vpx_idct4x4_1_add_msa()
94 out = ROUND_POWER_OF_TWO(out, 4); in vpx_idct4x4_1_add_msa()
Didct8x8_msa.c108 out = ROUND_POWER_OF_TWO((input[0] * cospi_16_64), DCT_CONST_BITS); in vpx_idct8x8_1_add_msa()
109 out = ROUND_POWER_OF_TWO((out * cospi_16_64), DCT_CONST_BITS); in vpx_idct8x8_1_add_msa()
110 val = ROUND_POWER_OF_TWO(out, 5); in vpx_idct8x8_1_add_msa()
/external/libvpx/libvpx/vpx_dsp/
Dloopfilter.c106 filter = ROUND_POWER_OF_TWO(filter1, 1) & ~hev; in filter4()
170 *op2 = ROUND_POWER_OF_TWO(p3 + p3 + p3 + 2 * p2 + p1 + p0 + q0, 3); in filter8()
171 *op1 = ROUND_POWER_OF_TWO(p3 + p3 + p2 + 2 * p1 + p0 + q0 + q1, 3); in filter8()
172 *op0 = ROUND_POWER_OF_TWO(p3 + p2 + p1 + 2 * p0 + q0 + q1 + q2, 3); in filter8()
173 *oq0 = ROUND_POWER_OF_TWO(p2 + p1 + p0 + 2 * q0 + q1 + q2 + q3, 3); in filter8()
174 *oq1 = ROUND_POWER_OF_TWO(p1 + p0 + q0 + 2 * q1 + q2 + q3 + q3, 3); in filter8()
175 *oq2 = ROUND_POWER_OF_TWO(p0 + q0 + q1 + 2 * q2 + q3 + q3 + q3, 3); in filter8()
247 *op6 = ROUND_POWER_OF_TWO( in filter16()
249 *op5 = ROUND_POWER_OF_TWO( in filter16()
251 *op4 = ROUND_POWER_OF_TWO( in filter16()
[all …]
Dquantize.c78 tmp = clamp(abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1), in vpx_quantize_dc_32x32()
105 const int64_t tmp = abs_coeff + ROUND_POWER_OF_TWO(round_ptr[0], 1); in vpx_highbd_quantize_dc_32x32()
223 const int zbins[2] = { ROUND_POWER_OF_TWO(zbin_ptr[0], 1), in vpx_quantize_b_32x32_c()
224 ROUND_POWER_OF_TWO(zbin_ptr[1], 1) }; in vpx_quantize_b_32x32_c()
255 abs_coeff += ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1); in vpx_quantize_b_32x32_c()
277 const int zbins[2] = { ROUND_POWER_OF_TWO(zbin_ptr[0], 1), in vpx_highbd_quantize_b_32x32_c()
278 ROUND_POWER_OF_TWO(zbin_ptr[1], 1) }; in vpx_highbd_quantize_b_32x32_c()
309 abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1); in vpx_highbd_quantize_b_32x32_c()
Dvpx_convolve.c36 dst[x] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in convolve_horiz()
58 dst[x] = ROUND_POWER_OF_TWO( in convolve_avg_horiz()
59 dst[x] + clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)), 1); in convolve_avg_horiz()
82 dst[y * dst_stride] = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in convolve_vert()
105 dst[y * dst_stride] = ROUND_POWER_OF_TWO( in convolve_avg_vert()
107 clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)), in convolve_avg_vert()
265 for (x = 0; x < w; ++x) dst[x] = ROUND_POWER_OF_TWO(dst[x] + src[x], 1); in vpx_convolve_avg_c()
336 dst[x] = clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd); in highbd_convolve_horiz()
358 dst[x] = ROUND_POWER_OF_TWO( in highbd_convolve_avg_horiz()
359 dst[x] + clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd), in highbd_convolve_avg_horiz()
[all …]
Dvariance.c91 b[j] = ROUND_POWER_OF_TWO( in var_filter_block2d_bil_first_pass()
121 b[j] = ROUND_POWER_OF_TWO( in var_filter_block2d_bil_second_pass()
236 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1); in vpx_comp_avg_pred_c()
282 *sse = (uint32_t)ROUND_POWER_OF_TWO(sse_long, 4); in highbd_10_variance()
283 *sum = (int)ROUND_POWER_OF_TWO(sum_long, 2); in highbd_10_variance()
292 *sse = (uint32_t)ROUND_POWER_OF_TWO(sse_long, 8); in highbd_12_variance()
293 *sum = (int)ROUND_POWER_OF_TWO(sum_long, 4); in highbd_12_variance()
378 output_ptr[j] = ROUND_POWER_OF_TWO( in highbd_var_filter_block2d_bil_first_pass()
400 output_ptr[j] = ROUND_POWER_OF_TWO( in highbd_var_filter_block2d_bil_second_pass()
555 comp_pred[j] = ROUND_POWER_OF_TWO(tmp, 1); in vpx_highbd_comp_avg_pred()
Dfwd_txfm.h17 tran_high_t rv = ROUND_POWER_OF_TWO(input, DCT_CONST_BITS); in fdct_round_shift()
Dinv_txfm.c172 ROUND_POWER_OF_TWO(temp_out[j], 4)); in vpx_idct4x4_16_add_c()
183 a1 = ROUND_POWER_OF_TWO(out, 4); in vpx_idct4x4_1_add_c()
343 ROUND_POWER_OF_TWO(temp_out[j], 5)); in vpx_idct8x8_64_add_c()
368 ROUND_POWER_OF_TWO(temp_out[j], 5)); in vpx_idct8x8_12_add_c()
379 a1 = ROUND_POWER_OF_TWO(out, 5); in vpx_idct8x8_1_add_c()
739 ROUND_POWER_OF_TWO(temp_out[j], 6)); in vpx_idct16x16_256_add_c()
765 ROUND_POWER_OF_TWO(temp_out[j], 6)); in vpx_idct16x16_38_add_c()
791 ROUND_POWER_OF_TWO(temp_out[j], 6)); in vpx_idct16x16_10_add_c()
802 a1 = ROUND_POWER_OF_TWO(out, 6); in vpx_idct16x16_1_add_c()
1202 ROUND_POWER_OF_TWO(temp_out[j], 6)); in vpx_idct32x32_1024_add_c()
[all …]
/external/libvpx/libvpx/vpx_dsp/x86/
Dhighbd_variance_sse2.c65 *sum = ROUND_POWER_OF_TWO(sum_long, 2); in highbd_10_variance_sse2()
66 *sse = (uint32_t)ROUND_POWER_OF_TWO(sse_long, 4); in highbd_10_variance_sse2()
87 *sum = ROUND_POWER_OF_TWO(sum_long, 4); in highbd_12_variance_sse2()
88 *sse = (uint32_t)ROUND_POWER_OF_TWO(sse_long, 8); in highbd_12_variance_sse2()
108 *sum = ROUND_POWER_OF_TWO(*sum, 2); \
109 *sse = ROUND_POWER_OF_TWO(*sse, 4); \
119 *sum = ROUND_POWER_OF_TWO(*sum, 4); \
120 *sse = ROUND_POWER_OF_TWO(*sse, 8); \
329 se = ROUND_POWER_OF_TWO(se, 2); \
330 sse = ROUND_POWER_OF_TWO(sse, 4); \
[all …]
Dhighbd_quantize_intrin_sse2.c105 const int zbin0_tmp = ROUND_POWER_OF_TWO(zbin_ptr[0], 1); in vpx_highbd_quantize_b_32x32_sse2()
106 const int zbin1_tmp = ROUND_POWER_OF_TWO(zbin_ptr[1], 1); in vpx_highbd_quantize_b_32x32_sse2()
143 abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1); in vpx_highbd_quantize_b_32x32_sse2()
Dhighbd_idct4x4_add_sse2.c125 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 4), bd); in vpx_highbd_idct4x4_16_add_sse2()
143 a1 = ROUND_POWER_OF_TWO(out, 4); in vpx_highbd_idct4x4_1_add_sse2()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_extend.c171 const int et_uv = ROUND_POWER_OF_TWO(et_y, 1); in vp9_copy_and_extend_frame_with_rect()
172 const int el_uv = ROUND_POWER_OF_TWO(el_y, 1); in vp9_copy_and_extend_frame_with_rect()
173 const int eb_uv = ROUND_POWER_OF_TWO(eb_y, 1); in vp9_copy_and_extend_frame_with_rect()
174 const int er_uv = ROUND_POWER_OF_TWO(er_y, 1); in vp9_copy_and_extend_frame_with_rect()
177 const int srch_uv = ROUND_POWER_OF_TWO(srch, 1); in vp9_copy_and_extend_frame_with_rect()
178 const int srcw_uv = ROUND_POWER_OF_TWO(srcw, 1); in vp9_copy_and_extend_frame_with_rect()
Dvp9_picklpf.c167 filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 1015158, 18); in vp9_pick_filter_level()
170 filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 4060632, 20); in vp9_pick_filter_level()
173 filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 16242526, 22); in vp9_pick_filter_level()
182 int filt_guess = ROUND_POWER_OF_TWO(q * 20723 + 1015158, 18); in vp9_pick_filter_level()
Dvp9_resize.c197 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
211 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
222 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
235 *optr++ = clip_pixel(ROUND_POWER_OF_TWO(sum, FILTER_BITS)); in interpolate()
499 *optr++ = clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd); in highbd_interpolate()
513 *optr++ = clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd); in highbd_interpolate()
524 *optr++ = clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd); in highbd_interpolate()
537 *optr++ = clip_pixel_highbd(ROUND_POWER_OF_TWO(sum, FILTER_BITS), bd); in highbd_interpolate()
Dvp9_quantize.c113 abs_coeff += ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1); in vp9_quantize_fp_32x32_c()
149 abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], 1); in vp9_highbd_quantize_fp_32x32_c()
231 quants->y_zbin[q][i] = ROUND_POWER_OF_TWO(qzbin_factor * quant, 7); in vp9_init_quantizer()
242 quants->uv_zbin[q][i] = ROUND_POWER_OF_TWO(qzbin_factor * quant, 7); in vp9_init_quantizer()
Dvp9_rd.c155 case VPX_BITS_10: rdmult = ROUND_POWER_OF_TWO(88 * q * q / 24, 4); break; in vp9_compute_rd_mult_based_on_qindex()
156 case VPX_BITS_12: rdmult = ROUND_POWER_OF_TWO(88 * q * q / 24, 8); break; in vp9_compute_rd_mult_based_on_qindex()
417 *rate = ROUND_POWER_OF_TWO(r_q10 << n_log2, 10 - VP9_PROB_COST_SHIFT); in vp9_model_rd_from_var_lapndz()
439 ROUND_POWER_OF_TWO(r_q10[i] << n_log2[i], 10 - VP9_PROB_COST_SHIFT); in vp9_model_rd_from_var_lapndz_vec()
680 case VPX_BITS_12: return ROUND_POWER_OF_TWO(5 * q, 2); in vp9_get_intra_cost_penalty()
/external/libvpx/libvpx/vp9/common/
Dvp9_idct.c47 ROUND_POWER_OF_TWO(temp_out[j], 4)); in vp9_iht4x4_16_add_c()
80 ROUND_POWER_OF_TWO(temp_out[j], 5)); in vp9_iht8x8_64_add_c()
113 ROUND_POWER_OF_TWO(temp_out[j], 6)); in vp9_iht16x16_256_add_c()
235 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 4), bd); in vp9_highbd_iht4x4_16_add_c()
268 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 5), bd); in vp9_highbd_iht8x8_64_add_c()
301 dest[j * stride + i], ROUND_POWER_OF_TWO(temp_out[j], 6), bd); in vp9_highbd_iht16x16_256_add_c()
/external/libvpx/libvpx/vp9/common/mips/dspr2/
Dvp9_itrans4_dspr2.c51 dest[j * stride + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) + in vp9_iht4x4_16_add_dspr2()
83 dest[j * stride + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) + in vp9_iht4x4_16_add_dspr2()
Dvp9_itrans8_dspr2.c46 dest[j * stride + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 5) + in vp9_iht8x8_64_add_dspr2()
77 dest[j * stride + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 5) + in vp9_iht8x8_64_add_dspr2()
Dvp9_itrans16_dspr2.c49 dest[j * pitch + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 6) + in vp9_iht16x16_256_add_dspr2()
90 dest[j * pitch + i] = clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 6) + in vp9_iht16x16_256_add_dspr2()
/external/libvpx/libvpx/vpx_dsp/arm/
Didct4x4_1_add_neon.c37 const int16_t a1 = ROUND_POWER_OF_TWO(out1, 4); in vpx_idct4x4_1_add_neon()
Didct32x32_1_add_neon.c44 const int16_t a1 = ROUND_POWER_OF_TWO(out1, 6); in vpx_idct32x32_1_add_neon()
/external/libvpx/libvpx/vpx_ports/
Dmem.h37 #define ROUND_POWER_OF_TWO(value, n) (((value) + (1 << ((n)-1))) >> (n)) macro

123