Home
last modified time | relevance | path

Searched refs:quant (Results 1 – 25 of 81) sorted by relevance

1234

/external/libvpx/libvpx/vpx_dsp/x86/
Dquantize_avx.c34 __m128i zbin, round, quant, dequant, shift; in vpx_quantize_b_avx() local
47 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant, in vpx_quantize_b_avx()
73 quant = _mm_unpackhi_epi64(quant, quant); in vpx_quantize_b_avx()
77 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_avx()
79 quant = _mm_unpackhi_epi64(quant, quant); in vpx_quantize_b_avx()
81 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_avx()
124 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_avx()
125 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_avx()
160 __m128i zbin, round, quant, dequant, shift; in vpx_quantize_b_32x32_avx() local
186 quant = _mm_load_si128((const __m128i *)quant_ptr); in vpx_quantize_b_32x32_avx()
[all …]
Dquantize_ssse3.c30 __m128i zbin, round, quant, dequant, shift; in vpx_quantize_b_ssse3() local
40 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant, in vpx_quantize_b_ssse3()
54 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_ssse3()
56 quant = _mm_unpackhi_epi64(quant, quant); in vpx_quantize_b_ssse3()
58 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_ssse3()
88 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_ssse3()
89 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_ssse3()
125 __m128i zbin, round, quant, dequant, shift; in vpx_quantize_b_32x32_ssse3() local
151 quant = _mm_load_si128((const __m128i *)quant_ptr); in vpx_quantize_b_32x32_ssse3()
184 quant = _mm_unpackhi_epi64(quant, quant); in vpx_quantize_b_32x32_ssse3()
[all …]
Dquantize_sse2.c30 __m128i zbin, round, quant, dequant, shift; in vpx_quantize_b_sse2() local
41 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant, in vpx_quantize_b_sse2()
58 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_sse2()
61 quant = _mm_unpackhi_epi64(quant, quant); in vpx_quantize_b_sse2()
64 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_sse2()
96 calculate_qcoeff(&qcoeff0, round, quant, shift); in vpx_quantize_b_sse2()
97 calculate_qcoeff(&qcoeff1, round, quant, shift); in vpx_quantize_b_sse2()
Dquantize_sse2.h21 const int16_t *quant_ptr, __m128i *quant, in load_b_values() argument
26 *quant = _mm_load_si128((const __m128i *)quant_ptr); in load_b_values()
39 const __m128i quant, const __m128i shift) { in calculate_qcoeff() argument
42 tmp = _mm_mulhi_epi16(qcoeff, quant); in calculate_qcoeff()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_quantize.c180 x->skip_block, p->zbin, p->round, p->quant, in vp9_regular_quantize_b_4x4()
187 p->zbin, p->round, p->quant, p->quant_shift, qcoeff, dqcoeff, in vp9_regular_quantize_b_4x4()
191 static void invert_quant(int16_t *quant, int16_t *shift, int d) { in invert_quant() argument
197 *quant = (int16_t)(m - (1 << 16)); in invert_quant()
202 const int quant = vp9_dc_quant(q, 0, bit_depth); in get_qzbin_factor() local
205 case VPX_BITS_8: return q == 0 ? 64 : (quant < 148 ? 84 : 80); in get_qzbin_factor()
206 case VPX_BITS_10: return q == 0 ? 64 : (quant < 592 ? 84 : 80); in get_qzbin_factor()
209 return q == 0 ? 64 : (quant < 2368 ? 84 : 80); in get_qzbin_factor()
213 return q == 0 ? 64 : (quant < 148 ? 84 : 80); in get_qzbin_factor()
220 int i, q, quant; in vp9_init_quantizer() local
[all …]
/external/icu/icu4c/source/i18n/
Dregexcst.txt68 quoted n expr-quant doLiteralChar
69 rule_char n expr-quant doLiteralChar
72 '.' n expr-quant doDotAny
73 '^' n expr-quant doCaret
74 '$' n expr-quant doDollar
84 # expr-quant We've just finished scanning a term, now look for the optional
87 expr-quant:
88 '*' n quant-star
89 '+' n quant-plus
90 '?' n quant-opt
[all …]
/external/libvpx/libvpx/vpx_dsp/ppc/
Dquantize_vsx.c40 int16x8_t round, int16x8_t quant, in quantize_coeff()
43 int16x8_t qcoeff = vec_mulhi(rounded, quant); in quantize_coeff()
52 int16x8_t round, int16x8_t quant, in quantize_coeff_32()
56 int16x8_t qcoeff = vec_mulhi(rounded, quant); in quantize_coeff_32()
110 int16x8_t quant = vec_vsx_ld(0, quant_ptr); in vpx_quantize_b_vsx() local
129 quantize_coeff(coeff0, coeff0_abs, round, quant, quant_shift, zero_mask0); in vpx_quantize_b_vsx()
132 quant = vec_splat(quant, 1); in vpx_quantize_b_vsx()
135 quantize_coeff(coeff1, coeff1_abs, round, quant, quant_shift, zero_mask1); in vpx_quantize_b_vsx()
164 qcoeff0 = quantize_coeff(coeff0, coeff0_abs, round, quant, quant_shift, in vpx_quantize_b_vsx()
166 qcoeff1 = quantize_coeff(coeff1, coeff1_abs, round, quant, quant_shift, in vpx_quantize_b_vsx()
[all …]
/external/libaom/libaom/aom_dsp/x86/
Dadaptive_quantize_sse2.c28 __m128i zbin, round, quant, dequant, shift; in aom_quantize_b_adaptive_sse2() local
64 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant, in aom_quantize_b_adaptive_sse2()
95 quant = _mm_unpackhi_epi64(quant, quant); in aom_quantize_b_adaptive_sse2()
99 calculate_qcoeff(&qcoeff0, round, quant, shift); in aom_quantize_b_adaptive_sse2()
102 quant = _mm_unpackhi_epi64(quant, quant); in aom_quantize_b_adaptive_sse2()
105 calculate_qcoeff(&qcoeff1, round, quant, shift); in aom_quantize_b_adaptive_sse2()
159 calculate_qcoeff(&qcoeff0, round, quant, shift); in aom_quantize_b_adaptive_sse2()
160 calculate_qcoeff(&qcoeff1, round, quant, shift); in aom_quantize_b_adaptive_sse2()
228 __m128i zbin, round, quant, dequant, shift; in aom_quantize_b_32x32_adaptive_sse2() local
266 quant = _mm_load_si128((const __m128i *)quant_ptr); in aom_quantize_b_32x32_adaptive_sse2()
[all …]
Dquantize_ssse3.c23 const __m128i quant, in calculate_qcoeff_64x64() argument
27 tmp = _mm_mulhi_epi16(qcoeff, quant); in calculate_qcoeff_64x64()
75 __m128i zbin, round, quant, dequant, shift; in aom_quantize_b_64x64_ssse3() local
86 quant = _mm_load_si128((const __m128i *)quant_ptr); in aom_quantize_b_64x64_ssse3()
117 quant = _mm_unpackhi_epi64(quant, quant); in aom_quantize_b_64x64_ssse3()
121 calculate_qcoeff_64x64(&qcoeff0, round, quant, &shift); in aom_quantize_b_64x64_ssse3()
123 quant = _mm_unpackhi_epi64(quant, quant); in aom_quantize_b_64x64_ssse3()
125 calculate_qcoeff_64x64(&qcoeff1, round, quant, &shift); in aom_quantize_b_64x64_ssse3()
169 calculate_qcoeff_64x64(&qcoeff0, round, quant, &shift); in aom_quantize_b_64x64_ssse3()
170 calculate_qcoeff_64x64(&qcoeff1, round, quant, &shift); in aom_quantize_b_64x64_ssse3()
Dquantize_sse2.c31 __m128i zbin, round, quant, dequant, shift; in aom_quantize_b_sse2() local
40 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant, in aom_quantize_b_sse2()
57 calculate_qcoeff(&qcoeff0, round, quant, shift); in aom_quantize_b_sse2()
60 quant = _mm_unpackhi_epi64(quant, quant); in aom_quantize_b_sse2()
63 calculate_qcoeff(&qcoeff1, round, quant, shift); in aom_quantize_b_sse2()
99 calculate_qcoeff(&qcoeff0, round, quant, shift); in aom_quantize_b_sse2()
100 calculate_qcoeff(&qcoeff1, round, quant, shift); in aom_quantize_b_sse2()
Dquantize_x86.h18 const int16_t *quant_ptr, __m128i *quant, in load_b_values() argument
23 *quant = _mm_load_si128((const __m128i *)quant_ptr); in load_b_values()
41 const __m128i quant, const __m128i shift) { in calculate_qcoeff() argument
44 tmp = _mm_mulhi_epi16(qcoeff, quant); in calculate_qcoeff()
51 const __m128i quant, in calculate_qcoeff_log_scale() argument
56 tmp = _mm_mulhi_epi16(qcoeff, quant); in calculate_qcoeff_log_scale()
/external/libvpx/libvpx/vp9/encoder/ppc/
Dvp9_quantize_vsx.c51 int16x8_t quant = vec_vsx_ld(0, quant_ptr); in vp9_quantize_fp_vsx() local
63 qcoeff0 = vec_mulhi(vec_vaddshs(vec_abs(coeff0), round), quant); in vp9_quantize_fp_vsx()
73 quant = vec_splat(quant, 1); in vp9_quantize_fp_vsx()
79 qcoeff1 = vec_mulhi(vec_vaddshs(vec_abs(coeff1), round), quant); in vp9_quantize_fp_vsx()
110 qcoeff0 = vec_mulhi(vec_vaddshs(vec_abs(coeff0), round), quant); in vp9_quantize_fp_vsx()
117 qcoeff1 = vec_mulhi(vec_vaddshs(vec_abs(coeff1), round), quant); in vp9_quantize_fp_vsx()
124 qcoeff2 = vec_mulhi(vec_vaddshs(vec_abs(coeff2), round), quant); in vp9_quantize_fp_vsx()
186 int16x8_t quant = vec_vsx_ld(0, quant_ptr); in vp9_quantize_fp_32x32_vsx() local
204 qcoeff0 = vec_madds(vec_vaddshs(abs_coeff0, round), quant, vec_zeros_s16); in vp9_quantize_fp_32x32_vsx()
216 quant = vec_splat(quant, 1); in vp9_quantize_fp_32x32_vsx()
[all …]
/external/libaom/libaom/test/
Dquantize_func_test.cc73 QUANTS quant; member
104 av1_build_quantizer(bd_, 0, 0, 0, 0, 0, &qtab_->quant, &qtab_->dequant); in InitQuantizer()
122 const int16_t *zbin = qtab_->quant.y_zbin[q]; in QuantizeRun()
125 const int16_t *quant = 0; in QuantizeRun() local
127 round = qtab_->quant.y_round[q]; in QuantizeRun()
128 quant = qtab_->quant.y_quant[q]; in QuantizeRun()
130 round = qtab_->quant.y_round_fp[q]; in QuantizeRun()
131 quant = qtab_->quant.y_quant_fp[q]; in QuantizeRun()
134 const int16_t *quant_shift = qtab_->quant.y_quant_shift[q]; in QuantizeRun()
142 quant_ref_(coeff_ptr, n_coeffs, zbin, round, quant, quant_shift, in QuantizeRun()
[all …]
/external/libvpx/libvpx/vp9/encoder/x86/
Dvp9_quantize_sse2.c30 __m128i round, quant, dequant; in vp9_quantize_fp_sse2() local
49 quant = _mm_load_si128((const __m128i *)quant_ptr); in vp9_quantize_fp_sse2()
72 qtmp0 = _mm_mulhi_epi16(qcoeff0, quant); in vp9_quantize_fp_sse2()
73 quant = _mm_unpackhi_epi64(quant, quant); in vp9_quantize_fp_sse2()
74 qtmp1 = _mm_mulhi_epi16(qcoeff1, quant); in vp9_quantize_fp_sse2()
142 qtmp0 = _mm_mulhi_epi16(qcoeff0, quant); in vp9_quantize_fp_sse2()
143 qtmp1 = _mm_mulhi_epi16(qcoeff1, quant); in vp9_quantize_fp_sse2()
Dvp9_dct_ssse3.c293 __m128i round, quant, dequant, thr; in vp9_fdct8x8_quant_ssse3() local
301 quant = _mm_load_si128((const __m128i *)quant_ptr); in vp9_fdct8x8_quant_ssse3()
324 qtmp0 = _mm_mulhi_epi16(qcoeff0, quant); in vp9_fdct8x8_quant_ssse3()
325 quant = _mm_unpackhi_epi64(quant, quant); in vp9_fdct8x8_quant_ssse3()
326 qtmp1 = _mm_mulhi_epi16(qcoeff1, quant); in vp9_fdct8x8_quant_ssse3()
395 qtmp0 = _mm_mulhi_epi16(qcoeff0, quant); in vp9_fdct8x8_quant_ssse3()
396 qtmp1 = _mm_mulhi_epi16(qcoeff1, quant); in vp9_fdct8x8_quant_ssse3()
/external/libvpx/libvpx/vpx_dsp/
Dquantize.h22 const int16_t *round_ptr, const int16_t quant,
26 const int16_t *round_ptr, const int16_t quant,
33 const int16_t quant, tran_low_t *qcoeff_ptr,
37 const int16_t *round_ptr, const int16_t quant,
Dquantize.c19 const int16_t *round_ptr, const int16_t quant, in vpx_quantize_dc() argument
33 tmp = (tmp * quant) >> 16; in vpx_quantize_dc()
44 const int16_t quant, tran_low_t *qcoeff_ptr, in vpx_highbd_quantize_dc() argument
57 const int abs_qcoeff = (int)((tmp * quant) >> 16); in vpx_highbd_quantize_dc()
67 const int16_t *round_ptr, const int16_t quant, in vpx_quantize_dc_32x32() argument
83 tmp = (tmp * quant) >> 15; in vpx_quantize_dc_32x32()
93 const int16_t *round_ptr, const int16_t quant, in vpx_highbd_quantize_dc_32x32() argument
108 const int abs_qcoeff = (int)((tmp * quant) >> 15); in vpx_highbd_quantize_dc_32x32()
/external/v4l2_codec2/vda/
Dvp9_parser.cc563 size_t Vp9Parser::GetQIndex(const Vp9QuantizationParams& quant, in GetQIndex() argument
573 : quant.base_q_idx + feature_data; in GetQIndex()
577 return quant.base_q_idx; in GetQIndex()
582 const Vp9QuantizationParams& quant = curr_frame_header_.quant_params; in SetupSegmentationDequant() local
594 const size_t q_index = GetQIndex(quant, i); in SetupSegmentationDequant()
596 kDcQLookup[bit_depth_index][ClampQ(q_index + quant.delta_q_y_dc)]; in SetupSegmentationDequant()
600 kDcQLookup[bit_depth_index][ClampQ(q_index + quant.delta_q_uv_dc)]; in SetupSegmentationDequant()
602 kAcQLookup[bit_depth_index][ClampQ(q_index + quant.delta_q_uv_ac)]; in SetupSegmentationDequant()
605 const size_t q_index = quant.base_q_idx; in SetupSegmentationDequant()
607 kDcQLookup[bit_depth_index][ClampQ(q_index + quant.delta_q_y_dc)]; in SetupSegmentationDequant()
[all …]
/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers_impl.h48 TfLiteQuantizationParams quant; in resize() local
51 {1, image_height, image_width, image_channels}, quant); in resize()
53 quant); in resize()
56 {1, wanted_height, wanted_width, wanted_channels}, quant); in resize()
/external/libhevc/encoder/arm/
Dihevce_scan_coeffs_neon.c140 int8x8x2_t quant; in ihevce_scan_coeffs_neon() local
204 quant.val[0] = a; in ihevce_scan_coeffs_neon()
205 quant.val[1] = b; in ihevce_scan_coeffs_neon()
210 shuffle_0 = vtbl2_s8(quant, c); in ihevce_scan_coeffs_neon()
211 shuffle_1 = vtbl2_s8(quant, d); in ihevce_scan_coeffs_neon()
398 quant.val[0] = a; in ihevce_scan_coeffs_neon()
399 quant.val[1] = b; in ihevce_scan_coeffs_neon()
404 shuffle_0 = vtbl2_s8(quant, c); in ihevce_scan_coeffs_neon()
405 shuffle_1 = vtbl2_s8(quant, d); in ihevce_scan_coeffs_neon()
/external/libvpx/libvpx/vpx_dsp/arm/
Dquantize_neon.c53 const int16x8_t quant = vld1q_s16(quant_ptr); in vpx_quantize_b_neon() local
70 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1); in vpx_quantize_b_neon()
101 const int16x8_t quant = vdupq_n_s16(quant_ptr[1]); in vpx_quantize_b_neon() local
120 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1); in vpx_quantize_b_neon()
213 const int16x8_t quant = vld1q_s16(quant_ptr); in vpx_quantize_b_32x32_neon() local
230 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1); in vpx_quantize_b_32x32_neon()
259 const int16x8_t quant = vdupq_n_s16(quant_ptr[1]); in vpx_quantize_b_32x32_neon() local
278 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1); in vpx_quantize_b_32x32_neon()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_zscan.c203 struct ureg_dst quant, fragment; in create_frag_shader() local
223 quant = ureg_DECL_temporary(shader); in create_frag_shader()
240 …ureg_TEX(shader, ureg_writemask(quant, TGSI_WRITEMASK_X << i), TGSI_TEXTURE_3D, vtex[i], samp_quan… in create_frag_shader()
243 ureg_MUL(shader, quant, ureg_src(quant), ureg_imm1f(shader, 16.0f)); in create_frag_shader()
244 ureg_MUL(shader, fragment, ureg_src(tmp[0]), ureg_src(quant)); in create_frag_shader()
524 buffer->quant = zscan->pipe->create_sampler_view(zscan->pipe, res, &sv_tmpl); in vl_zscan_init_buffer()
526 if (!buffer->quant) in vl_zscan_init_buffer()
539 pipe_sampler_view_reference(&buffer->quant, NULL); in vl_zscan_cleanup_buffer()
576 data = pipe->transfer_map(pipe, buffer->quant->texture, in vl_zscan_upload_quant()
/external/tensorflow/tensorflow/lite/
Dinterpreter_test.cc89 TfLiteQuantizationParams quant; in TEST() local
91 {kTensorSize}, quant, true); in TEST()
175 TfLiteQuantizationParams quant; in TEST() local
177 interpreter.SetTensorParametersReadWrite(0, test.type, "", {3}, quant); in TEST()
178 interpreter.SetTensorParametersReadWrite(1, test.type, "", {4}, quant); in TEST()
259 TfLiteQuantizationParams quant; in TEST() local
262 interpreter.SetTensorParametersReadWrite(0, test.type, "", {3}, quant), in TEST()
265 1, test.type, "", {2}, quant, test.array, 2 * test.size), in TEST()
274 1, test.type, "", {2}, quant, test.array, 1 * test.size), in TEST()
296 TfLiteQuantizationParams quant; in TEST() local
[all …]
Dstring_util_test.cc38 TfLiteQuantization quant; in TEST() local
39 quant.type = kTfLiteNoQuantization; in TEST()
40 quant.params = nullptr; in TEST()
41 interpreter.SetTensorParametersReadOnly(2, kTfLiteString, "", {1}, quant, in TEST()
/external/libxaac/decoder/
Dixheaacd_arith_dec.c1806 WORD32 pres_n, WORD32 *quant) { in ixheaacd_arth_decoding_level2() argument
1859 quant[2 * i + 0] = 0; in ixheaacd_arth_decoding_level2()
1860 quant[2 * i + 1] = 0; in ixheaacd_arth_decoding_level2()
1878 quant[2 * i + 0] = a; in ixheaacd_arth_decoding_level2()
1879 quant[2 * i + 1] = b; in ixheaacd_arth_decoding_level2()
1899 WORD32 temp0 = quant[0]; in ixheaacd_arth_decoding_level2()
1900 WORD32 temp1 = quant[1]; in ixheaacd_arth_decoding_level2()
1918 *quant++ = temp0; in ixheaacd_arth_decoding_level2()
1919 *quant++ = temp1; in ixheaacd_arth_decoding_level2()
1990 WORD32 *quant, WORD32 noise_level, in ixheaacd_apply_scfs_and_nf() argument
[all …]

1234