/external/libvpx/libvpx/vp9/common/ |
D | vp9_idct.c | 120 int eob) { in vp9_idct4x4_add() argument 121 if (eob > 1) in vp9_idct4x4_add() 128 int eob) { in vp9_iwht4x4_add() argument 129 if (eob > 1) in vp9_iwht4x4_add() 136 int eob) { in vp9_idct8x8_add() argument 142 if (eob == 1) in vp9_idct8x8_add() 145 else if (eob <= 12) in vp9_idct8x8_add() 152 int eob) { in vp9_idct16x16_add() argument 155 if (eob == 1) /* DC only DCT coefficient. */ in vp9_idct16x16_add() 157 else if (eob <= 10) in vp9_idct16x16_add() [all …]
|
D | vp9_idct.h | 42 int eob); 44 int eob); 46 int eob); 48 int eob); 50 int eob); 53 int stride, int eob); 55 int stride, int eob); 57 int stride, int eob); 61 int eob, int bd); 63 int eob, int bd); [all …]
|
/external/libvpx/libvpx/vp8/encoder/x86/ |
D | vp8_quantize_ssse3.c | 21 unsigned long eob; in bsr() local 22 _BitScanReverse(&eob, mask); in bsr() 23 eob++; in bsr() 24 if (mask == 0) eob = 0; in bsr() 25 return eob; in bsr() 29 int eob; in bsr() local 31 __asm__ __volatile__("bsr %1, %0" : "=r"(eob) : "r"(mask) : "flags"); in bsr() 33 asm volatile("bsr %1, %0" : "=r"(eob) : "r"(mask) : "flags"); in bsr() 35 eob++; in bsr() 36 if (mask == 0) eob = 0; in bsr() [all …]
|
/external/libaom/libaom/av1/common/arm/ |
D | av1_inv_txfm_neon.h | 120 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_default() argument 121 if (eob == 1) { in get_eobx_eoby_scan_default() 128 const int eob_row = (eob - 1) >> tx_w_log2; in get_eobx_eoby_scan_default() 135 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_v_identity() argument 136 eob -= 1; in get_eobx_eoby_scan_v_identity() 139 *eobx = eob / (eoby_max + 1); in get_eobx_eoby_scan_v_identity() 140 *eoby = (eob >= eoby_max) ? eoby_max : eob_fill[eob]; in get_eobx_eoby_scan_v_identity() 144 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_h_identity() argument 145 eob -= 1; in get_eobx_eoby_scan_h_identity() 148 *eobx = (eob >= eobx_max) ? eobx_max : eob_fill[eob]; in get_eobx_eoby_scan_h_identity() [all …]
|
/external/libaom/libaom/av1/encoder/x86/ |
D | av1_highbd_quantize_avx2.c | 51 __m256i *eob) { in quantize() argument 87 *eob = _mm256_max_epi32(cur_eob, *eob); in quantize() 105 __m256i eob = _mm256_setzero_si256(); in av1_highbd_quantize_fp_avx2() local 106 quantize(qp, &coeff, iscan, log_scale, qcoeff_ptr, dqcoeff_ptr, &eob); in av1_highbd_quantize_fp_avx2() 117 quantize(qp, &coeff, iscan, log_scale, qcoeff_ptr, dqcoeff_ptr, &eob); in av1_highbd_quantize_fp_avx2() 127 eob_s = _mm256_shuffle_epi32(eob, 0xe); in av1_highbd_quantize_fp_avx2() 128 eob = _mm256_max_epi16(eob, eob_s); in av1_highbd_quantize_fp_avx2() 129 eob_s = _mm256_shufflelo_epi16(eob, 0xe); in av1_highbd_quantize_fp_avx2() 130 eob = _mm256_max_epi16(eob, eob_s); in av1_highbd_quantize_fp_avx2() 131 eob_s = _mm256_shufflelo_epi16(eob, 1); in av1_highbd_quantize_fp_avx2() [all …]
|
D | av1_highbd_quantize_sse4.c | 84 __m128i *eob) { in find_eob() argument 99 *eob = _mm_max_epi16(*eob, iscanIdx); in find_eob() 102 static INLINE uint16_t get_accumulated_eob(__m128i *eob) { in get_accumulated_eob() argument 105 eob_shuffled = _mm_shuffle_epi32(*eob, 0xe); in get_accumulated_eob() 106 *eob = _mm_max_epi16(*eob, eob_shuffled); in get_accumulated_eob() 107 eob_shuffled = _mm_shufflelo_epi16(*eob, 0xe); in get_accumulated_eob() 108 *eob = _mm_max_epi16(*eob, eob_shuffled); in get_accumulated_eob() 109 eob_shuffled = _mm_shufflelo_epi16(*eob, 0x1); in get_accumulated_eob() 110 *eob = _mm_max_epi16(*eob, eob_shuffled); in get_accumulated_eob() 111 eobValue = _mm_extract_epi16(*eob, 0); in get_accumulated_eob() [all …]
|
D | av1_quantize_avx2.c | 98 static INLINE uint16_t quant_gather_eob(__m256i eob) { in quant_gather_eob() argument 99 const __m128i eob_lo = _mm256_castsi256_si128(eob); in quant_gather_eob() 100 const __m128i eob_hi = _mm256_extractf128_si256(eob, 1); in quant_gather_eob() 109 tran_low_t *dqcoeff, __m256i *eob) { in quantize() argument 128 *eob = _mm256_max_epi16(*eob, cur_eob); in quantize() 154 __m256i eob = _mm256_setzero_si256(); in av1_quantize_fp_avx2() local 155 quantize(&thr, qp, &coeff, iscan_ptr, qcoeff_ptr, dqcoeff_ptr, &eob); in av1_quantize_fp_avx2() 167 quantize(&thr, qp, &coeff, iscan_ptr, qcoeff_ptr, dqcoeff_ptr, &eob); in av1_quantize_fp_avx2() 175 *eob_ptr = quant_gather_eob(eob); in av1_quantize_fp_avx2() 181 __m256i *eob) { in quantize_32x32() argument [all …]
|
D | av1_quantize_sse2.c | 78 __m128i *eob) { in quantize() argument 131 *eob = _mm_max_epi16(*eob, eob2); in quantize() 163 __m128i eob = _mm_setzero_si128(); in av1_quantize_fp_sse2() local 166 &round1, &quant0, &quant1, &dequant0, &dequant1, &thr0, &thr1, &eob); in av1_quantize_fp_sse2() 174 &eob); in av1_quantize_fp_sse2() 181 eob_shuffled = _mm_shuffle_epi32(eob, 0xe); in av1_quantize_fp_sse2() 182 eob = _mm_max_epi16(eob, eob_shuffled); in av1_quantize_fp_sse2() 183 eob_shuffled = _mm_shufflelo_epi16(eob, 0xe); in av1_quantize_fp_sse2() 184 eob = _mm_max_epi16(eob, eob_shuffled); in av1_quantize_fp_sse2() 185 eob_shuffled = _mm_shufflelo_epi16(eob, 0x1); in av1_quantize_fp_sse2() [all …]
|
/external/libaom/libaom/aom_dsp/x86/ |
D | highbd_quantize_intrin_avx2.c | 68 tran_low_t *dqcoeff, __m256i *eob) { in quantize() argument 104 *eob = _mm256_max_epi32(cur_eob, *eob); in quantize() 127 __m256i eob = _mm256_setzero_si256(); in aom_highbd_quantize_b_avx2() local 128 quantize(qp, &coeff, iscan, qcoeff_ptr, dqcoeff_ptr, &eob); in aom_highbd_quantize_b_avx2() 140 quantize(qp, &coeff, iscan, qcoeff_ptr, dqcoeff_ptr, &eob); in aom_highbd_quantize_b_avx2() 150 eob_s = _mm256_shuffle_epi32(eob, 0xe); in aom_highbd_quantize_b_avx2() 151 eob = _mm256_max_epi16(eob, eob_s); in aom_highbd_quantize_b_avx2() 152 eob_s = _mm256_shufflelo_epi16(eob, 0xe); in aom_highbd_quantize_b_avx2() 153 eob = _mm256_max_epi16(eob, eob_s); in aom_highbd_quantize_b_avx2() 154 eob_s = _mm256_shufflelo_epi16(eob, 1); in aom_highbd_quantize_b_avx2() [all …]
|
D | quantize_x86.h | 116 static INLINE int16_t accumulate_eob(__m128i eob) { in accumulate_eob() argument 118 eob_shuffled = _mm_shuffle_epi32(eob, 0xe); in accumulate_eob() 119 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 120 eob_shuffled = _mm_shufflelo_epi16(eob, 0xe); in accumulate_eob() 121 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 122 eob_shuffled = _mm_shufflelo_epi16(eob, 0x1); in accumulate_eob() 123 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 124 return _mm_extract_epi16(eob, 1); in accumulate_eob()
|
/external/libvpx/libvpx/vpx_dsp/ |
D | quantize.c | 26 int tmp, eob = -1; in vpx_quantize_dc() local 36 if (tmp) eob = 0; in vpx_quantize_dc() 38 *eob_ptr = eob + 1; in vpx_quantize_dc() 47 int eob = -1; in vpx_highbd_quantize_dc() local 60 if (abs_qcoeff) eob = 0; in vpx_highbd_quantize_dc() 62 *eob_ptr = eob + 1; in vpx_highbd_quantize_dc() 75 int tmp, eob = -1; in vpx_quantize_dc_32x32() local 86 if (tmp) eob = 0; in vpx_quantize_dc_32x32() 88 *eob_ptr = eob + 1; in vpx_quantize_dc_32x32() 98 int eob = -1; in vpx_highbd_quantize_dc_32x32() local [all …]
|
/external/libaom/libaom/av1/common/x86/ |
D | av1_inv_txfm_ssse3.h | 183 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_default() argument 184 if (eob == 1) { in get_eobx_eoby_scan_default() 191 const int eob_row = (eob - 1) >> tx_w_log2; in get_eobx_eoby_scan_default() 203 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_h_identity() argument 204 eob -= 1; in get_eobx_eoby_scan_h_identity() 207 *eobx = (eob >= eobx_max) ? eobx_max : eob_fill[eob]; in get_eobx_eoby_scan_h_identity() 208 const int temp_eoby = eob / (eobx_max + 1); in get_eobx_eoby_scan_h_identity() 214 TX_SIZE tx_size, int eob) { in get_eobx_eoby_scan_v_identity() argument 215 eob -= 1; in get_eobx_eoby_scan_v_identity() 218 *eobx = eob / (eoby_max + 1); in get_eobx_eoby_scan_v_identity() [all …]
|
/external/libvpx/libvpx/vp9/encoder/x86/ |
D | vp9_quantize_sse2.c | 29 __m128i eob; in vp9_quantize_fp_sse2() local 108 eob = _mm_and_si128(iscan0, nzero_coeff0); in vp9_quantize_fp_sse2() 110 eob = _mm_max_epi16(eob, eob1); in vp9_quantize_fp_sse2() 186 eob = _mm_max_epi16(eob, eob0); in vp9_quantize_fp_sse2() 194 eob_shuffled = _mm_shuffle_epi32(eob, 0xe); in vp9_quantize_fp_sse2() 195 eob = _mm_max_epi16(eob, eob_shuffled); in vp9_quantize_fp_sse2() 196 eob_shuffled = _mm_shufflelo_epi16(eob, 0xe); in vp9_quantize_fp_sse2() 197 eob = _mm_max_epi16(eob, eob_shuffled); in vp9_quantize_fp_sse2() 198 eob_shuffled = _mm_shufflelo_epi16(eob, 0x1); in vp9_quantize_fp_sse2() 199 eob = _mm_max_epi16(eob, eob_shuffled); in vp9_quantize_fp_sse2() [all …]
|
/external/libvpx/libvpx/vpx_dsp/x86/ |
D | quantize_sse2.h | 85 static INLINE int16_t accumulate_eob(__m128i eob) { in accumulate_eob() argument 87 eob_shuffled = _mm_shuffle_epi32(eob, 0xe); in accumulate_eob() 88 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 89 eob_shuffled = _mm_shufflelo_epi16(eob, 0xe); in accumulate_eob() 90 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 91 eob_shuffled = _mm_shufflelo_epi16(eob, 0x1); in accumulate_eob() 92 eob = _mm_max_epi16(eob, eob_shuffled); in accumulate_eob() 93 return _mm_extract_epi16(eob, 1); in accumulate_eob()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_encodemb.c | 71 const int eob = p->eobs[block]; in vp9_optimize_b() local 113 assert(eob <= default_eob); in vp9_optimize_b() 115 for (i = 0; i < eob; i++) { in vp9_optimize_b() 129 for (i = 0; i < eob; i++) { in vp9_optimize_b() 209 (i + 1 != eob) ? vp9_get_token(qcoeff[scan[i + 1]]) : EOB_TOKEN; in vp9_optimize_b() 296 final_eob = eob - 1; in vp9_optimize_b() 306 assert(final_eob <= eob); in vp9_optimize_b() 315 for (i = final_eob; i < eob; i++) { in vp9_optimize_b() 353 uint16_t *const eob = &p->eobs[block]; in vp9_xform_quant_fp() local 367 eob, scan_order->scan, scan_order->iscan); in vp9_xform_quant_fp() [all …]
|
/external/libaom/libaom/test/ |
D | encodetxb_test.cc | 37 const uint16_t eob, const TX_SIZE tx_size, 79 for (int eob = 1; eob <= width * height && !result; ++eob) { in GetNzMapContextsRun() local 80 InitDataWithEob(scan, bwl, eob); in GetNzMapContextsRun() 82 av1_get_nz_map_contexts_c(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() 84 get_nz_map_contexts_func_(levels_, scan, eob, (TX_SIZE)tx_size, in GetNzMapContextsRun() 87 result = Compare(scan, eob); in GetNzMapContextsRun() 91 << " height " << real_height << " eob " << eob; in GetNzMapContextsRun() 113 const int eob = width * height; in SpeedTestGetNzMapContextsRun() local 117 InitDataWithEob(scan, bwl, eob); in SpeedTestGetNzMapContextsRun() 121 get_nz_map_contexts_func_(levels_, scan, eob, (TX_SIZE)tx_size, in SpeedTestGetNzMapContextsRun() [all …]
|
/external/libaom/libaom/av1/encoder/ |
D | encodetxb.c | 144 static INLINE int get_eob_pos_token(const int eob, int *const extra) { in get_eob_pos_token() argument 147 if (eob < 33) { in get_eob_pos_token() 148 t = eob_to_pos_small[eob]; in get_eob_pos_token() 150 const int e = AOMMIN((eob - 1) >> 5, 16); in get_eob_pos_token() 154 *extra = eob - k_eob_group_start[t]; in get_eob_pos_token() 160 void av1_update_eob_context(int cdf_idx, int eob, TX_SIZE tx_size, argument 165 void av1_update_eob_context(int eob, TX_SIZE tx_size, TX_CLASS tx_class, 170 const int eob_pt = get_eob_pos_token(eob, &eob_extra); 249 static int get_eob_cost(int eob, const LV_MAP_EOB_COST *txb_eob_costs, argument 252 const int eob_pt = get_eob_pos_token(eob, &eob_extra); [all …]
|
/external/libvpx/libvpx/vp8/encoder/mips/mmi/ |
D | vp8_quantize_mmi.c | 29 eob = i; \ 46 int eob = 0; in vp8_fast_quantize_b_mmi() local 194 [inv_zig_zag] "r"((mips_reg)inv_zig_zag), [eob] "r"((mips_reg)&eob), in vp8_fast_quantize_b_mmi() 198 *d->eob = eob; in vp8_fast_quantize_b_mmi() 202 int eob = 0; in vp8_regular_quantize_b_mmi() local 261 *d->eob = (char)eob; in vp8_regular_quantize_b_mmi()
|
/external/libvpx/libvpx/vpx_dsp/ppc/ |
D | quantize_vsx.c | 104 int16x8_t qcoeff0, qcoeff1, dqcoeff0, dqcoeff1, eob; in vpx_quantize_b_vsx() local 144 eob = vec_max(nonzero_scanindex(qcoeff0, zero_mask0, iscan_ptr, 0), in vpx_quantize_b_vsx() 182 eob = in vpx_quantize_b_vsx() 183 vec_max(eob, nonzero_scanindex(qcoeff0, zero_mask0, iscan_ptr, off0)); in vpx_quantize_b_vsx() 186 eob = vec_max(eob, eob2); in vpx_quantize_b_vsx() 195 eob = vec_max_across(eob); in vpx_quantize_b_vsx() 196 *eob_ptr = eob[0]; in vpx_quantize_b_vsx() 214 int16x8_t qcoeff0, qcoeff1, eob; in vpx_quantize_b_32x32_vsx() local 257 eob = vec_max(nonzero_scanindex(qcoeff0, zero_mask0, iscan_ptr, 0), in vpx_quantize_b_32x32_vsx() 291 eob = vec_max(eob, nonzero_scanindex(qcoeff0, zero_mask0, iscan_ptr, off0)); in vpx_quantize_b_32x32_vsx() [all …]
|
/external/libvpx/libvpx/vp9/encoder/ppc/ |
D | vp9_quantize_vsx.c | 47 int16x8_t qcoeff0, qcoeff1, dqcoeff0, dqcoeff1, eob; in vp9_quantize_fp_vsx() local 87 eob = vec_max(vec_or(scan0, zero_coeff0), vec_or(scan1, zero_coeff1)); in vp9_quantize_fp_vsx() 131 eob = vec_max(eob, vec_or(scan0, zero_coeff0)); in vp9_quantize_fp_vsx() 133 eob = vec_max(eob, eob2); in vp9_quantize_fp_vsx() 142 eob = vec_max_across(eob); in vp9_quantize_fp_vsx() 143 *eob_ptr = eob[0] + 1; in vp9_quantize_fp_vsx() 182 int16x8_t qcoeff0, qcoeff1, dqcoeff0, dqcoeff1, eob; in vp9_quantize_fp_32x32_vsx() local 232 eob = vec_max(vec_or(scan0, zero_coeff0), vec_or(scan1, zero_coeff1)); in vp9_quantize_fp_32x32_vsx() 280 eob = vec_max(eob, vec_or(scan0, zero_coeff0)); in vp9_quantize_fp_32x32_vsx() 282 eob = vec_max(eob, eob2); in vp9_quantize_fp_32x32_vsx() [all …]
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_detokenize.c | 240 int eob; in vp9_decode_block_tokens() local 251 eob = decode_coefs(xd, get_plane_type(plane), pd->dqcoeff, tx_size, in vp9_decode_block_tokens() 253 a[0] = l[0] = (eob > 0); in vp9_decode_block_tokens() 259 eob = decode_coefs(xd, get_plane_type(plane), pd->dqcoeff, tx_size, in vp9_decode_block_tokens() 261 *(uint16_t *)a = ((eob > 0) * 0x0101) >> ctx_shift_a; in vp9_decode_block_tokens() 262 *(uint16_t *)l = ((eob > 0) * 0x0101) >> ctx_shift_l; in vp9_decode_block_tokens() 268 eob = decode_coefs(xd, get_plane_type(plane), pd->dqcoeff, tx_size, in vp9_decode_block_tokens() 270 *(uint32_t *)a = ((eob > 0) * 0x01010101) >> ctx_shift_a; in vp9_decode_block_tokens() 271 *(uint32_t *)l = ((eob > 0) * 0x01010101) >> ctx_shift_l; in vp9_decode_block_tokens() 280 eob = decode_coefs(xd, get_plane_type(plane), pd->dqcoeff, tx_size, in vp9_decode_block_tokens() [all …]
|
/external/libaom/libaom/aom_dsp/ |
D | quantize.c | 26 int i, non_zero_count = (int)n_coeffs, eob = -1; in quantize_b_adaptive_helper_c() local 79 eob = i; in quantize_b_adaptive_helper_c() 87 if (eob >= 0 && first == eob) { in quantize_b_adaptive_helper_c() 88 const int rc = scan[eob]; in quantize_b_adaptive_helper_c() 99 eob = -1; in quantize_b_adaptive_helper_c() 104 *eob_ptr = eob + 1; in quantize_b_adaptive_helper_c() 118 int i, non_zero_count = (int)n_coeffs, eob = -1; in quantize_b_helper_c() local 163 if (tmp32) eob = i; in quantize_b_helper_c() 166 *eob_ptr = eob + 1; in quantize_b_helper_c() 176 int i, eob = -1; in highbd_quantize_b_adaptive_helper_c() local [all …]
|
/external/libaom/libaom/av1/decoder/ |
D | decodetxb.c | 46 int eob = k_eob_group_start[eob_token]; in rec_eob_pos() local 47 if (eob > 2) { in rec_eob_pos() 48 eob += extra; in rec_eob_pos() 50 return eob; in rec_eob_pos() 135 uint16_t *const eob = &(eob_data->eob); in av1_read_coeffs_txb() local 138 *eob = 0; in av1_read_coeffs_txb() 239 *eob = rec_eob_pos(eob_pt, eob_extra); in av1_read_coeffs_txb() 241 if (*eob > 1) { in av1_read_coeffs_txb() 250 const int c = *eob - 1; in av1_read_coeffs_txb() 268 if (*eob > 1) { in av1_read_coeffs_txb() [all …]
|
/external/libvpx/libvpx/vp8/encoder/ |
D | encodemb.c | 153 int eob; in optimize_b() local 184 eob = *d->eob; in optimize_b() 195 tokens[eob][0].rate = 0; in optimize_b() 196 tokens[eob][0].error = 0; in optimize_b() 197 tokens[eob][0].next = 16; in optimize_b() 198 tokens[eob][0].token = DCT_EOB_TOKEN; in optimize_b() 199 tokens[eob][0].qc = 0; in optimize_b() 200 *(tokens[eob] + 1) = *(tokens[eob] + 0); in optimize_b() 201 next = eob; in optimize_b() 202 for (i = eob; i-- > i0;) { in optimize_b() [all …]
|
/external/libvpx/libvpx/vp8/encoder/mips/msa/ |
D | quantize_msa.c | 18 int32_t cnt, eob; in fast_quantize_b_msa() local 34 eob = -1; in fast_quantize_b_msa() 68 eob = (15 - cnt); in fast_quantize_b_msa() 73 eob = (7 - (cnt - 8)); in fast_quantize_b_msa() 78 return (int8_t)(eob + 1); in fast_quantize_b_msa() 85 int32_t cnt, eob; in exact_regular_quantize_b_msa() local 104 eob = -1; in exact_regular_quantize_b_msa() 150 eob = cnt; in exact_regular_quantize_b_msa() 162 eob = cnt; in exact_regular_quantize_b_msa() 181 return (int8_t)(eob + 1); in exact_regular_quantize_b_msa() [all …]
|