Home
last modified time | relevance | path

Searched refs:log_scale (Results 1 – 25 of 27) sorted by relevance

12

/external/libaom/libaom/av1/encoder/x86/
Dav1_highbd_quantize_avx2.c33 const int16_t *dequant_ptr, int log_scale, in init_qp() argument
36 if (log_scale) { in init_qp()
37 const __m128i round_scale = _mm_set1_epi16(1 << (15 - log_scale)); in init_qp()
49 const int16_t *iscan_ptr, int log_scale, in quantize() argument
59 q_lo = _mm256_srli_epi64(q_lo, 16 - log_scale); in quantize()
60 q_hi = _mm256_srli_epi64(q_hi, 16 - log_scale); in quantize()
63 const __m256i abs_s = _mm256_slli_epi32(abs_coeff, 1 + log_scale); in quantize()
68 dq = _mm256_srai_epi32(dq, log_scale); in quantize()
95 const int16_t *scan, const int16_t *iscan, int log_scale) { in av1_highbd_quantize_fp_avx2() argument
102 init_qp(round_ptr, quant_ptr, dequant_ptr, log_scale, qp); in av1_highbd_quantize_fp_avx2()
[all …]
Dav1_highbd_quantize_sse4.c120 const int16_t *scan, const int16_t *iscan, int log_scale) { in av1_highbd_quantize_fp_sse4_1() argument
126 const int shift = 16 - log_scale; in av1_highbd_quantize_fp_sse4_1()
137 const int round1 = ROUND_POWER_OF_TWO(round_ptr[1], log_scale); in av1_highbd_quantize_fp_sse4_1()
138 const int round0 = ROUND_POWER_OF_TWO(round_ptr[0], log_scale); in av1_highbd_quantize_fp_sse4_1()
147 quantize_coeff_phase1(&coeff[0], qparam, shift, log_scale, qcoeff, dequant, in av1_highbd_quantize_fp_sse4_1()
155 quantize_coeff_phase2(qcoeff, dequant, &coeff_sign, qparam, shift, log_scale, in av1_highbd_quantize_fp_sse4_1()
160 quantize_coeff_phase1(&coeff[1], qparam, shift, log_scale, qcoeff, dequant, in av1_highbd_quantize_fp_sse4_1()
162 quantize_coeff_phase2(qcoeff, dequant, &coeff_sign, qparam, shift, log_scale, in av1_highbd_quantize_fp_sse4_1()
179 quantize_coeff_phase1(&coeff[0], qparam, shift, log_scale, qcoeff, dequant, in av1_highbd_quantize_fp_sse4_1()
182 log_scale, quanAddr, dquanAddr); in av1_highbd_quantize_fp_sse4_1()
[all …]
Dav1_quantize_avx2.c46 const int16_t *dequant_ptr, int log_scale, in init_qp() argument
52 if (log_scale > 0) { in init_qp()
53 const __m128i rnd = _mm_set1_epi16((int16_t)1 << (log_scale - 1)); in init_qp()
55 round = _mm_srai_epi16(round, log_scale); in init_qp()
61 if (log_scale == 1) { in init_qp()
62 qp[1] = _mm256_slli_epi16(qp[1], log_scale); in init_qp()
66 *thr = _mm256_srai_epi16(qp[2], 1 + log_scale); in init_qp()
69 static INLINE void update_qp(int log_scale, __m256i *thr, __m256i *qp) { in update_qp() argument
73 *thr = _mm256_srai_epi16(qp[2], 1 + log_scale); in update_qp()
264 const int log_scale = 0; in av1_quantize_fp_avx2() local
[all …]
/external/libaom/libaom/aom_dsp/x86/
Dhighbd_adaptive_quantize_sse2.c49 const int *log_scale) { in highbd_calculate_qcoeff() argument
54 highbd_mul_shift_sse2(&qcoeff, shift, coeff, 16 - *log_scale); in highbd_calculate_qcoeff()
87 const int log_scale) { in highbd_calculate_dqcoeff() argument
90 highbd_mul_shift_sse2(&abs_coeff, &dequant, &abs_coeff, log_scale); in highbd_calculate_dqcoeff()
101 const int log_scale = 0; in aom_highbd_quantize_b_adaptive_sse2() local
180 highbd_calculate_qcoeff(&qcoeff0, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_sse2()
185 highbd_calculate_qcoeff(&qcoeff1, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_sse2()
198 coeff0 = highbd_calculate_dqcoeff(qcoeff0, dequant, log_scale); in aom_highbd_quantize_b_adaptive_sse2()
200 coeff1 = highbd_calculate_dqcoeff(qcoeff1, dequant, log_scale); in aom_highbd_quantize_b_adaptive_sse2()
232 highbd_calculate_qcoeff(&qcoeff0, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_sse2()
[all …]
Dhighbd_adaptive_quantize_avx2.c79 const int *log_scale) { in highbd_calculate_qcoeff_avx2() argument
84 highbd_mul_shift_avx2(&qcoeff, shift, coeff, 16 - *log_scale); in highbd_calculate_qcoeff_avx2()
93 __m256i qcoeff, __m256i dequant, const int log_scale) { in highbd_calculate_dqcoeff_log_scale_avx2() argument
95 highbd_mul_shift_avx2(&abs_coeff, &dequant, &abs_coeff, log_scale); in highbd_calculate_dqcoeff_log_scale_avx2()
124 const int log_scale = 0; in aom_highbd_quantize_b_adaptive_avx2() local
167 highbd_calculate_qcoeff_avx2(&qcoeff0, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_avx2()
171 highbd_calculate_qcoeff_avx2(&qcoeff1, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_avx2()
205 highbd_calculate_qcoeff_avx2(&qcoeff0, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_avx2()
206 highbd_calculate_qcoeff_avx2(&qcoeff1, &round, &quant, &shift, &log_scale); in aom_highbd_quantize_b_adaptive_avx2()
285 const int log_scale = 1; in aom_highbd_quantize_b_32x32_adaptive_avx2() local
[all …]
Dadaptive_quantize_sse2.c226 const int log_scale = 1; in aom_quantize_b_32x32_adaptive_sse2() local
233 const __m128i log_scale_vec = _mm_set1_epi16(log_scale); in aom_quantize_b_32x32_adaptive_sse2()
241 const int zbins[2] = { ROUND_POWER_OF_TWO(zbin_ptr[0], log_scale), in aom_quantize_b_32x32_adaptive_sse2()
242 ROUND_POWER_OF_TWO(zbin_ptr[1], log_scale) }; in aom_quantize_b_32x32_adaptive_sse2()
268 zbin = _mm_srli_epi16(zbin, log_scale); in aom_quantize_b_32x32_adaptive_sse2()
269 round = _mm_srli_epi16(round, log_scale); in aom_quantize_b_32x32_adaptive_sse2()
305 calculate_qcoeff_log_scale(&qcoeff0, round, quant, &shift, &log_scale); in aom_quantize_b_32x32_adaptive_sse2()
309 calculate_qcoeff_log_scale(&qcoeff1, round, quant, &shift, &log_scale); in aom_quantize_b_32x32_adaptive_sse2()
323 &log_scale); in aom_quantize_b_32x32_adaptive_sse2()
326 dqcoeff_ptr + 8, &log_scale); in aom_quantize_b_32x32_adaptive_sse2()
[all …]
Dquantize_x86.h53 const int *log_scale) { in calculate_qcoeff_log_scale() argument
59 tmp = _mm_srli_epi16(tmp, (16 - *log_scale)); in calculate_qcoeff_log_scale()
61 tmp1 = _mm_slli_epi16(tmp1, *log_scale); in calculate_qcoeff_log_scale()
73 const int *log_scale) { in calculate_dqcoeff_and_store_log_scale() argument
86 dqcoeff32_0 = _mm_srli_epi32(dqcoeff32_0, *log_scale); in calculate_dqcoeff_and_store_log_scale()
87 dqcoeff32_1 = _mm_srli_epi32(dqcoeff32_1, *log_scale); in calculate_dqcoeff_and_store_log_scale()
/external/libaom/libaom/av1/encoder/
Dav1_quantize.c42 const qm_val_t *iqm_ptr, int log_scale) { in quantize_fp_helper_c() argument
44 const int rounding[2] = { ROUND_POWER_OF_TWO(round_ptr[0], log_scale), in quantize_fp_helper_c()
45 ROUND_POWER_OF_TWO(round_ptr[1], log_scale) }; in quantize_fp_helper_c()
63 if ((abs_coeff << (1 + log_scale)) >= thresh) { in quantize_fp_helper_c()
66 tmp32 = (int)((abs_coeff * quant_ptr[rc != 0]) >> (16 - log_scale)); in quantize_fp_helper_c()
70 (tmp32 * dequant_ptr[rc != 0]) >> log_scale; in quantize_fp_helper_c()
91 (dequant_ptr[rc != 0] << (AOM_QM_BITS - (1 + log_scale)))) { in quantize_fp_helper_c()
95 (16 - log_scale + AOM_QM_BITS)); in quantize_fp_helper_c()
97 const tran_low_t abs_dqcoeff = (tmp32 * dequant) >> log_scale; in quantize_fp_helper_c()
114 const qm_val_t *iqm_ptr, int log_scale) { in highbd_quantize_fp_helper_c() argument
[all …]
Dav1_quantize.h29 int log_scale; member
/external/libaom/libaom/aom_dsp/
Dquantize.c22 const qm_val_t *iqm_ptr, const int log_scale) { in aom_quantize_b_adaptive_helper_c() argument
23 const int zbins[2] = { ROUND_POWER_OF_TWO(zbin_ptr[0], log_scale), in aom_quantize_b_adaptive_helper_c()
24 ROUND_POWER_OF_TWO(zbin_ptr[1], log_scale) }; in aom_quantize_b_adaptive_helper_c()
64 clamp(abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], log_scale), in aom_quantize_b_adaptive_helper_c()
69 (16 - log_scale + AOM_QM_BITS)); // quantization in aom_quantize_b_adaptive_helper_c()
75 const tran_low_t abs_dqcoeff = (tmp32 * dequant) >> log_scale; in aom_quantize_b_adaptive_helper_c()
115 const int log_scale) { in aom_quantize_b_helper_c() argument
116 const int zbins[2] = { ROUND_POWER_OF_TWO(zbin_ptr[0], log_scale), in aom_quantize_b_helper_c()
117 ROUND_POWER_OF_TWO(zbin_ptr[1], log_scale) }; in aom_quantize_b_helper_c()
150 clamp(abs_coeff + ROUND_POWER_OF_TWO(round_ptr[rc != 0], log_scale), in aom_quantize_b_helper_c()
[all …]
Dquantize.h29 const qm_val_t *iqm_ptr, const int log_scale);
61 const qm_val_t *iqm_ptr, const int log_scale);
93 const int log_scale);
109 const qm_val_t *iqm_ptr, const int log_scale);
/external/libaom/libaom/test/
Dav1_quantize_test.cc30 const int16_t *scan, const int16_t *iscan, int log_scale);
69 int log_scale = (txSize == TX_32X32); in RunQuantizeTest() local
98 &ref_eob, scanOrder.scan, scanOrder.iscan, log_scale); in RunQuantizeTest()
103 scanOrder.scan, scanOrder.iscan, log_scale)); in RunQuantizeTest()
142 int log_scale = (txSize == TX_32X32); in RunEobTest() local
175 &ref_eob, scanOrder.scan, scanOrder.iscan, log_scale); in RunEobTest()
180 scanOrder.scan, scanOrder.iscan, log_scale)); in RunEobTest()
Dquantize_func_test.cc40 typedef void (*QuantizeFuncHbd)(QUAN_PARAM_LIST, int log_scale);
44 qcoeff_ptr, dqcoeff_ptr, dequant_ptr, eob_ptr, scan, iscan, log_scale)
52 const int log_scale = 0; in highbd_quan16x16_wrapper() local
58 const int log_scale = 1; in highbd_quan32x32_wrapper() local
64 const int log_scale = 2; in highbd_quan64x64_wrapper() local
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dfrontend_util.c27 LogScaleFillConfigWithDefaults(&config->log_scale); in FrontendFillConfigWithDefaults()
68 if (!LogScalePopulateState(&config->log_scale, &state->log_scale)) { in FrontendPopulateState()
DBUILD57 ":log_scale",
65 name = "log_scale",
68 "log_scale.c",
73 "log_scale.h",
160 ":log_scale",
Dfrontend_test.cc48 config_.log_scale.enable_log = true; in FrontendTestConfig()
49 config_.log_scale.scale_shift = 6; in FrontendTestConfig()
Dfrontend_util.h35 struct LogScaleConfig log_scale; member
Dfrontend.h38 struct LogScaleState log_scale; member
Dfrontend_io.c62 LogScaleWriteMemmap(fp, &state->log_scale, " (&state.log_scale)"); in WriteFrontendStateMemmap()
Dfrontend.c59 LogScaleApply(&state->log_scale, scaled_filterbank, in FrontendProcessSamples()
/external/tensorflow/tensorflow/lite/micro/examples/micro_speech/micro_features/
Dmicro_features_generator.cc51 config.log_scale.enable_log = 1; in InitializeMicroFeatures()
52 config.log_scale.scale_shift = 6; in InitializeMicroFeatures()
/external/rust/crates/plotters/src/coord/ranged1d/combinators/
Dlogarithmic.rs54 fn log_scale(self) -> LogRange<Self::ValueType>; in log_scale() method
59 fn log_scale(self) -> LogRange<T> { in log_scale() method
/external/tensorflow/tensorflow/lite/experimental/microfrontend/
Daudio_microfrontend.cc64 config.log_scale.enable_log = m["enable_log"].AsBool(); in Init()
65 config.log_scale.scale_shift = m["scale_shift"].AsInt32(); in Init()
/external/tensorflow/tensorflow/python/ops/distributions/
Dspecial_math.py378 log_scale = -0.5 * x_2 - math_ops.log(-x) - 0.5 * np.log(2. * np.pi)
379 return log_scale + math_ops.log(_log_ndtr_asymptotic_series(x, series_order))
/external/tensorflow/tensorflow/lite/experimental/microfrontend/ops/
Daudio_microfrontend_op.cc195 config_.log_scale.enable_log = enable_log; in AudioMicrofrontendOp()
198 ctx->GetAttr("scale_shift", &config_.log_scale.scale_shift)); in AudioMicrofrontendOp()

12