/external/libvpx/libvpx/vpx_dsp/arm/ |
D | quantize_neon.c | 54 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1); in vpx_quantize_b_neon() local 56 qcoeff = vaddq_s16(qcoeff, rounded); in vpx_quantize_b_neon() 59 qcoeff = vshrq_n_s16(vqdmulhq_s16(qcoeff, quant_shift), 1); in vpx_quantize_b_neon() 62 qcoeff = veorq_s16(qcoeff, coeff_sign); in vpx_quantize_b_neon() 63 qcoeff = vsubq_s16(qcoeff, coeff_sign); in vpx_quantize_b_neon() 65 qcoeff = vandq_s16(qcoeff, zbin_mask); in vpx_quantize_b_neon() 68 eob_max = vandq_u16(vtstq_s16(qcoeff, neg_one), iscan); in vpx_quantize_b_neon() 73 store_s16q_to_tran_low(qcoeff_ptr, qcoeff); in vpx_quantize_b_neon() 76 qcoeff = vmulq_s16(qcoeff, dequant); in vpx_quantize_b_neon() 78 store_s16q_to_tran_low(dqcoeff_ptr, qcoeff); in vpx_quantize_b_neon() [all …]
|
/external/libvpx/libvpx/vp9/encoder/arm/neon/ |
D | vp9_quantize_neon.c | 145 int16x8_t qcoeff = vaddq_s16(coeff_abs, round); in vp9_quantize_fp_32x32_neon() local 155 qcoeff = vqdmulhq_s16(qcoeff, quant); in vp9_quantize_fp_32x32_neon() 158 qcoeff = veorq_s16(qcoeff, coeff_sign); in vp9_quantize_fp_32x32_neon() 159 qcoeff = vsubq_s16(qcoeff, coeff_sign); in vp9_quantize_fp_32x32_neon() 160 qcoeff = vandq_s16(qcoeff, dequant_mask); in vp9_quantize_fp_32x32_neon() 163 dqcoeff_0 = vmull_s16(vget_low_s16(qcoeff), dequant); in vp9_quantize_fp_32x32_neon() 164 dqcoeff_1 = vmull_n_s16(vget_high_s16(qcoeff), dequant_ptr[1]); in vp9_quantize_fp_32x32_neon() 172 eob_max = vandq_u16(vtstq_s16(qcoeff, neg_one), iscan); in vp9_quantize_fp_32x32_neon() 174 store_s16q_to_tran_low(qcoeff_ptr, qcoeff); in vp9_quantize_fp_32x32_neon() 199 int16x8_t qcoeff = vaddq_s16(coeff_abs, round); in vp9_quantize_fp_32x32_neon() local [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodemb.c | 68 tran_low_t *const qcoeff = BLOCK_OFFSET(p->qcoeff, block); in vp9_optimize_b() local 110 token_cache[rc] = vp9_pt_energy_class[vp9_get_token(qcoeff[rc])]; in vp9_optimize_b() 124 const int x = qcoeff[rc]; in vp9_optimize_b() 202 (i + 1 != eob) ? vp9_get_token(qcoeff[scan[i + 1]]) : EOB_TOKEN; in vp9_optimize_b() 253 qcoeff[rc] = x1; in vp9_optimize_b() 266 x_prev = qcoeff[rc]; // Update based on selected quantized value. in vp9_optimize_b() 292 qcoeff[rc] = before_best_eob_qc; in vp9_optimize_b() 297 qcoeff[rc] = 0; in vp9_optimize_b() 330 tran_low_t *const qcoeff = BLOCK_OFFSET(p->qcoeff, block); in vp9_xform_quant_fp() local 345 p->quant_fp, qcoeff, dqcoeff, pd->dequant, in vp9_xform_quant_fp() [all …]
|
D | vp9_context_tree.c | 30 CHECK_MEM_ERROR(cm, ctx->qcoeff[i][k], in alloc_mode_context() 31 vpx_memalign(32, num_pix * sizeof(*ctx->qcoeff[i][k]))); in alloc_mode_context() 37 ctx->qcoeff_pbuf[i][k] = ctx->qcoeff[i][k]; in alloc_mode_context() 52 vpx_free(ctx->qcoeff[i][k]); in free_mode_context() 53 ctx->qcoeff[i][k] = 0; in free_mode_context()
|
D | vp9_quantize.c | 167 tran_low_t *qcoeff = BLOCK_OFFSET(p->qcoeff, block), in vp9_regular_quantize_b_4x4() local 172 memset(qcoeff, 0, n_coeffs * sizeof(*qcoeff)); in vp9_regular_quantize_b_4x4() 181 p->quant_shift, qcoeff, dqcoeff, pd->dequant, in vp9_regular_quantize_b_4x4() 187 p->zbin, p->round, p->quant, p->quant_shift, qcoeff, dqcoeff, in vp9_regular_quantize_b_4x4()
|
D | vp9_tokenize.c | 365 const tran_low_t *qcoeff = BLOCK_OFFSET(p->qcoeff, block); in tokenize_b() local 388 v = qcoeff[scan[c]]; in tokenize_b() 398 v = qcoeff[scan[c]]; in tokenize_b()
|
D | vp9_context_tree.h | 31 tran_low_t *qcoeff[MAX_MB_PLANE][3]; member
|
/external/libvpx/libvpx/vpx_dsp/x86/ |
D | quantize_x86.h | 38 __m128i tmp, qcoeff; in calculate_qcoeff() local 39 qcoeff = _mm_adds_epi16(*coeff, round); in calculate_qcoeff() 40 tmp = _mm_mulhi_epi16(qcoeff, quant); in calculate_qcoeff() 41 qcoeff = _mm_add_epi16(tmp, qcoeff); in calculate_qcoeff() 42 *coeff = _mm_mulhi_epi16(qcoeff, shift); in calculate_qcoeff() 45 static INLINE __m128i calculate_dqcoeff(__m128i qcoeff, __m128i dequant) { in calculate_dqcoeff() argument 46 return _mm_mullo_epi16(qcoeff, dequant); in calculate_dqcoeff()
|
/external/libvpx/libvpx/test/ |
D | vp9_quantize_test.cc | 40 const int16_t *quant_shift, tran_low_t *qcoeff, 51 const int16_t *quant, tran_low_t *qcoeff, 60 tran_low_t *qcoeff, tran_low_t *dqcoeff, in QuantFPWrapper() argument 66 fn(coeff, count, skip_block, round, quant, qcoeff, dqcoeff, dequant, eob, in QuantFPWrapper() 241 Buffer<tran_low_t> qcoeff = Buffer<tran_low_t>(max_size_, max_size_, 0, 32); in TEST_P() local 242 ASSERT_TRUE(qcoeff.Init()); in TEST_P() 279 quant_shift_ptr_, qcoeff.TopLeftPixel(), dqcoeff.TopLeftPixel(), in TEST_P() 282 EXPECT_TRUE(qcoeff.CheckValues(ref_qcoeff)); in TEST_P() 289 qcoeff.PrintDifference(ref_qcoeff); in TEST_P() 300 Buffer<tran_low_t> qcoeff = Buffer<tran_low_t>(max_size_, max_size_, 0, 32); in TEST_P() local [all …]
|
D | quantize_test.cc | 98 EXPECT_EQ(0, memcmp(vp8_comp_->mb.e_mbd.qcoeff, macroblockd_dst_->qcoeff, in CheckOutput() 99 sizeof(*macroblockd_dst_->qcoeff) * kNumBlocks * in CheckOutput()
|
/external/libvpx/libvpx/vp8/common/ |
D | invtrans.h | 42 vp8_short_inv_walsh4x4(&xd->block[24].dqcoeff[0], xd->qcoeff); in vp8_inverse_transform_mby() 44 vp8_short_inv_walsh4x4_1(&xd->block[24].dqcoeff[0], xd->qcoeff); in vp8_inverse_transform_mby() 46 eob_adjust(xd->eobs, xd->qcoeff); in vp8_inverse_transform_mby() 50 vp8_dequant_idct_add_y_block(xd->qcoeff, DQC, xd->dst.y_buffer, in vp8_inverse_transform_mby()
|
D | mbpitch.c | 37 x->block[r].qcoeff = x->qcoeff + r * 16; in vp8_setup_block_dptrs()
|
D | blockd.h | 188 short *qcoeff; member 204 DECLARE_ALIGNED(16, short, qcoeff[400]);
|
D | dequantize.c | 19 short *Q = d->qcoeff; in vp8_dequantize_b_c()
|
/external/libvpx/libvpx/vp8/decoder/ |
D | threading.c | 126 memset(xd->qcoeff, 0, sizeof(xd->qcoeff)); in mt_decode_macroblock() 194 vp8_dequant_idct_add(b->qcoeff, DQC, dst, dst_stride); in mt_decode_macroblock() 196 vp8_dc_only_idct_add(b->qcoeff[0] * DQC[0], dst, dst_stride, dst, in mt_decode_macroblock() 198 memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); in mt_decode_macroblock() 225 vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff); in mt_decode_macroblock() 226 memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0])); in mt_decode_macroblock() 228 b->dqcoeff[0] = b->qcoeff[0] * xd->dequant_y2[0]; in mt_decode_macroblock() 229 vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff); in mt_decode_macroblock() 230 memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); in mt_decode_macroblock() 239 vp8_dequant_idct_add_y_block(xd->qcoeff, DQC, xd->dst.y_buffer, in mt_decode_macroblock() [all …]
|
D | decodeframe.c | 134 memset(xd->qcoeff, 0, sizeof(xd->qcoeff)); in decode_macroblock() 180 vp8_dequant_idct_add(b->qcoeff, DQC, dst, dst_stride); in decode_macroblock() 182 vp8_dc_only_idct_add(b->qcoeff[0] * DQC[0], dst, dst_stride, dst, in decode_macroblock() 184 memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); in decode_macroblock() 211 vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff); in decode_macroblock() 212 memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0])); in decode_macroblock() 214 b->dqcoeff[0] = b->qcoeff[0] * xd->dequant_y2[0]; in decode_macroblock() 215 vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff); in decode_macroblock() 216 memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); in decode_macroblock() 225 vp8_dequant_idct_add_y_block(xd->qcoeff, DQC, xd->dst.y_buffer, in decode_macroblock() [all …]
|
/external/libvpx/libvpx/vp8/common/x86/ |
D | idctllm_sse2.asm | 16 ; short *qcoeff - 0 33 mov rax, arg(0) ; qcoeff 101 ; short *qcoeff - 0 118 ; dc is set as first coeff, so no need to load qcoeff 119 mov rax, arg(0) ; qcoeff 141 ; dequantize qcoeff buffer 357 ; short *qcoeff - 0 373 ; dc is set as first coeff, so no need to load qcoeff 374 mov rax, arg(0) ; qcoeff 433 ; short *qcoeff - 0 [all …]
|
D | idct_blk_mmx.c | 19 short *sq = (short *)d->qcoeff; in vp8_dequantize_b_mmx()
|
/external/libvpx/libvpx/vp8/encoder/x86/ |
D | vp8_quantize_sse2.c | 36 short *qcoeff_ptr = d->qcoeff; in vp8_regular_quantize_b_sse2() 129 y0 = _mm_load_si128((__m128i *)(d->qcoeff)); in vp8_regular_quantize_b_sse2() 130 y1 = _mm_load_si128((__m128i *)(d->qcoeff + 8)); in vp8_regular_quantize_b_sse2() 183 _mm_store_si128((__m128i *)(d->qcoeff), x0); in vp8_fast_quantize_b_sse2() 184 _mm_store_si128((__m128i *)(d->qcoeff + 8), x1); in vp8_fast_quantize_b_sse2()
|
D | vp8_quantize_ssse3.c | 89 _mm_store_si128((__m128i *)(d->qcoeff), x0); in vp8_fast_quantize_b_ssse3() 90 _mm_store_si128((__m128i *)(d->qcoeff + 8), x1); in vp8_fast_quantize_b_ssse3()
|
D | quantize_sse4.c | 116 _mm_store_si128((__m128i *)(d->qcoeff), qcoeff0); in vp8_regular_quantize_b_sse4_1() 117 _mm_store_si128((__m128i *)(d->qcoeff + 8), qcoeff1); in vp8_regular_quantize_b_sse4_1()
|
/external/libvpx/libvpx/vp8/common/mips/mmi/ |
D | dequantize_mmi.c | 54 : [dqcoeff] "r"(d->dqcoeff), [qcoeff] "r"(d->qcoeff), [DQC] "r"(DQC) in vp8_dequantize_b_mmi()
|
/external/libvpx/libvpx/vp8/encoder/arm/neon/ |
D | fastquantizeb_neon.c | 75 vst1q_s16(d->qcoeff, x0); in vp8_fast_quantize_b_neon() 76 vst1q_s16(d->qcoeff + 8, x1); in vp8_fast_quantize_b_neon()
|
/external/libvpx/libvpx/vp8/encoder/mips/mmi/ |
D | vp8_quantize_mmi.c | 38 int16_t *qcoeff_ptr = d->qcoeff; in vp8_fast_quantize_b_mmi() 210 int16_t *qcoeff_ptr = d->qcoeff; in vp8_regular_quantize_b_mmi()
|
/external/libvpx/libvpx/vp8/common/arm/neon/ |
D | dequantizeb_neon.c | 18 qQ = vld2q_s16(d->qcoeff); in vp8_dequantize_b_neon()
|