/external/webp/src/dsp/ |
D | dec_mips32.c | 69 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument 71 return (abs_mips32(p1 - p0) > thresh) || (abs_mips32(q1 - q0) > thresh); in hev() 94 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument 95 const int thresh2 = 2 * thresh + 1; in FilterLoop26() 110 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument 111 const int thresh2 = 2 * thresh + 1; in FilterLoop24() 126 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument 127 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16() 131 int thresh, int ithresh, int hev_thresh) { in HFilter16() argument 132 FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16() [all …]
|
D | dec_mips_dsp_r2.c | 162 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument 163 const int thresh2 = 2 * thresh + 1; in FilterLoop26() 300 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument 305 const int thresh2 = 2 * thresh + 1; in FilterLoop24() 429 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument 430 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16() 434 int thresh, int ithresh, int hev_thresh) { in HFilter16() argument 435 FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16() 440 int thresh, int ithresh, int hev_thresh) { in VFilter8() argument 441 FilterLoop26(u, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8() [all …]
|
D | dec.c | 506 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument 508 return (VP8kabs0[p1 - p0] > thresh) || (VP8kabs0[q1 - q0] > thresh); in hev() 530 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument 532 const int thresh2 = 2 * thresh + 1; in SimpleVFilter16() 540 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument 542 const int thresh2 = 2 * thresh + 1; in SimpleHFilter16() 550 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument 554 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i() 558 static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { in SimpleHFilter16i() argument 562 SimpleHFilter16(p, stride, thresh); in SimpleHFilter16i() [all …]
|
D | dec_sse2.c | 337 int thresh, __m128i* const mask) { in NeedsFilter() argument 338 const __m128i m_thresh = _mm_set1_epi8(thresh); in NeedsFilter() 358 int thresh) { in DoFilter2() argument 365 NeedsFilter(p1, p0, q0, q1, thresh, &mask); in DoFilter2() 587 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument 594 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleVFilter16() 601 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument 607 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleHFilter16() 611 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument 615 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i() [all …]
|
D | dec_neon.c | 442 int thresh) { in NeedsFilter() argument 443 const uint8x16_t thresh_v = vdupq_n_u8((uint8_t)thresh); in NeedsFilter() 525 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument 529 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleVFilter16() 535 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument 539 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleHFilter16() 558 #define NEEDS_FILTER(p1, p0, q0, q1, thresh, mask) \ argument 564 "vdup.8 q14, " #thresh " \n" \ 586 #define DO_FILTER2(p1, p0, q0, q1, thresh) \ argument 587 NEEDS_FILTER(p1, p0, q0, q1, thresh, q9) /* filter mask in q9 */ \ [all …]
|
D | dec_msa.c | 344 const v16u8 thresh = (v16u8)__msa_fill_b(thresh_in); in VFilter16() local 349 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, in VFilter16() 368 const v16u8 thresh = (v16u8)__msa_fill_b(thresh_in); in HFilter16() local 376 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, in HFilter16() 420 int b_limit, int limit, int thresh) { in VFilterHorEdge16i() argument 423 const v16u8 thresh0 = (v16u8)__msa_fill_b(thresh); in VFilterHorEdge16i() 435 int b_limit, int limit, int thresh) { in VFilter16i() argument 436 VFilterHorEdge16i(src_y + 4 * stride, stride, b_limit, limit, thresh); in VFilter16i() 437 VFilterHorEdge16i(src_y + 8 * stride, stride, b_limit, limit, thresh); in VFilter16i() 438 VFilterHorEdge16i(src_y + 12 * stride, stride, b_limit, limit, thresh); in VFilter16i() [all …]
|
/external/libvpx/libvpx/vpx_dsp/ |
D | loopfilter.c | 48 static INLINE int8_t flat_mask4(uint8_t thresh, uint8_t p3, uint8_t p2, in flat_mask4() argument 52 mask |= (abs(p1 - p0) > thresh) * -1; in flat_mask4() 53 mask |= (abs(q1 - q0) > thresh) * -1; in flat_mask4() 54 mask |= (abs(p2 - p0) > thresh) * -1; in flat_mask4() 55 mask |= (abs(q2 - q0) > thresh) * -1; in flat_mask4() 56 mask |= (abs(p3 - p0) > thresh) * -1; in flat_mask4() 57 mask |= (abs(q3 - q0) > thresh) * -1; in flat_mask4() 61 static INLINE int8_t flat_mask5(uint8_t thresh, uint8_t p4, uint8_t p3, in flat_mask5() argument 65 int8_t mask = ~flat_mask4(thresh, p3, p2, p1, p0, q0, q1, q2, q3); in flat_mask5() 66 mask |= (abs(p4 - p0) > thresh) * -1; in flat_mask5() [all …]
|
/external/libvpx/libvpx/vp8/common/mips/dspr2/ |
D | vp8_loopfilter_filters_dspr2.c | 34 uint32_t thresh, uint32_t *hev, uint32_t *mask) { in vp8_filter_mask_vec_mips() argument 95 [thresh] "r"(thresh)); in vp8_filter_mask_vec_mips() 304 unsigned int thresh, int count) { in vp8_loop_filter_horizontal_edge_mips() argument 352 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips() 394 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips() 436 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips() 478 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips() 497 unsigned int thresh, int count) { in vp8_loop_filter_uvhorizontal_edge_mips() argument 542 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips() 584 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips() [all …]
|
/external/libvpx/libvpx/vpx_dsp/mips/ |
D | loopfilter_masks_dspr2.h | 31 uint32_t thresh, uint32_t *hev, in filter_hev_mask_dspr2() argument 93 [thresh] "r"(thresh)); in filter_hev_mask_dspr2() 129 uint32_t limit, uint32_t flimit, uint32_t thresh, uint32_t p1, uint32_t p0, in filter_hev_mask_flatmask4_dspr2() argument 233 [thresh] "r"(thresh), [flat_thresh] "r"(flat_thresh), [ones] "r"(ones)); in filter_hev_mask_flatmask4_dspr2()
|
D | loopfilter_8_msa.c | 18 v16u8 mask, hev, flat, thresh, b_limit, limit; in vpx_lpf_horizontal_8_msa() local 28 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_horizontal_8_msa() 32 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in vpx_lpf_horizontal_8_msa() 87 v16u8 flat, mask, hev, tmp, thresh, b_limit, limit; in vpx_lpf_horizontal_8_dual_msa() local 97 thresh = (v16u8)__msa_fill_b(*thresh0); in vpx_lpf_horizontal_8_dual_msa() 99 thresh = (v16u8)__msa_ilvr_d((v2i64)tmp, (v2i64)thresh); in vpx_lpf_horizontal_8_dual_msa() 110 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in vpx_lpf_horizontal_8_dual_msa() 158 v16u8 flat, mask, hev, thresh, b_limit, limit; in vpx_lpf_vertical_8_msa() local 170 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_vertical_8_msa() 175 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in vpx_lpf_vertical_8_msa() [all …]
|
D | loopfilter_filters_dspr2.c | 24 const uint8_t *thresh) { in vpx_lpf_horizontal_4_dspr2() argument 35 uthresh = *thresh; in vpx_lpf_horizontal_4_dspr2() 109 const uint8_t *thresh) { in vpx_lpf_vertical_4_dspr2() argument 120 uthresh = *thresh; in vpx_lpf_vertical_4_dspr2() 322 const uint8_t *thresh) { in vpx_lpf_vertical_16_dual_dspr2() argument 323 vpx_lpf_vertical_16_dspr2(s, p, blimit, limit, thresh); in vpx_lpf_vertical_16_dual_dspr2() 324 vpx_lpf_vertical_16_dspr2(s + 8 * p, p, blimit, limit, thresh); in vpx_lpf_vertical_16_dual_dspr2()
|
D | loopfilter_4_msa.c | 18 v16u8 mask, hev, flat, thresh, b_limit, limit; in vpx_lpf_horizontal_4_msa() local 24 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_horizontal_4_msa() 28 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in vpx_lpf_horizontal_4_msa() 75 v16u8 mask, hev, flat, limit, thresh, b_limit; in vpx_lpf_vertical_4_msa() local 81 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_vertical_4_msa() 87 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in vpx_lpf_vertical_4_msa()
|
/external/libvpx/libvpx/vp8/common/ |
D | loopfilter_filters.c | 38 static signed char vp8_hevmask(uc thresh, uc p1, uc p0, uc q0, uc q1) { in vp8_hevmask() argument 40 hev |= (abs(p1 - p0) > thresh) * -1; in vp8_hevmask() 41 hev |= (abs(q1 - q0) > thresh) * -1; in vp8_hevmask() 92 const unsigned char *thresh, int count) { in vp8_loop_filter_horizontal_edge_c() argument 104 hev = vp8_hevmask(thresh[0], s[-2 * p], s[-1 * p], s[0 * p], s[1 * p]); in vp8_loop_filter_horizontal_edge_c() 115 const unsigned char *thresh, int count) { in vp8_loop_filter_vertical_edge_c() argument 127 hev = vp8_hevmask(thresh[0], s[-2], s[-1], s[0], s[1]); in vp8_loop_filter_vertical_edge_c() 191 const unsigned char *thresh, in vp8_mbloop_filter_horizontal_edge_c() argument 204 hev = vp8_hevmask(thresh[0], s[-2 * p], s[-1 * p], s[0 * p], s[1 * p]); in vp8_mbloop_filter_horizontal_edge_c() 216 const unsigned char *thresh, int count) { in vp8_mbloop_filter_vertical_edge_c() argument [all …]
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_noise_estimate.c | 29 ne->thresh = 90; in vp9_noise_estimate_init() 33 ne->thresh = 200; in vp9_noise_estimate_init() 35 ne->thresh = 140; in vp9_noise_estimate_init() 37 ne->thresh = 100; in vp9_noise_estimate_init() 86 if (ne->value > (ne->thresh << 1)) { in vp9_noise_estimate_extract_level() 89 if (ne->value > ne->thresh) in vp9_noise_estimate_extract_level() 91 else if (ne->value > ((9 * ne->thresh) >> 4)) in vp9_noise_estimate_extract_level()
|
D | vp9_rd.h | 175 static INLINE int rd_less_than_thresh(int64_t best_rd, int thresh, in rd_less_than_thresh() argument 177 return best_rd < ((int64_t)thresh * (*thresh_fact) >> 5) || thresh == INT_MAX; in rd_less_than_thresh()
|
/external/tcpdump/ |
D | print-dvmrp.c | 258 register u_char thresh; in print_neighbors() local 266 thresh = *bp++; in print_neighbors() 273 ipaddr_string(ndo, bp), metric, thresh)); in print_neighbors() 289 register u_char metric, thresh, flags; in print_neighbors2() local 301 thresh = *bp++; in print_neighbors2() 308 metric, thresh)); in print_neighbors2()
|
/external/libvpx/libvpx/vpx_dsp/arm/ |
D | loopfilter_8_neon.asm | 25 ; const uint8_t *thresh) 30 ; sp const uint8_t *thresh, 35 ldr r2, [sp, #12] ; load thresh 39 vld1.8 {d2[]}, [r2] ; duplicate *thresh 105 ; const uint8_t *thresh) 111 ; sp const uint8_t *thresh, 118 ldr r3, [sp, #12] ; load thresh 121 vld1.8 {d2[]}, [r3] ; duplicate *thresh 217 ; d2 thresh 267 ; only compare the largest value to thresh [all …]
|
D | loopfilter_16_neon.asm | 22 ; const uint8_t *thresh, 28 ; sp const uint8_t *thresh, 33 ldr r4, [sp, #88] ; load thresh 38 vld1.8 {d18[]}, [r4] ; load *thresh 125 ; const uint8_t *thresh) 130 ; sp const uint8_t *thresh 139 ; const uint8_t *thresh) 144 ; sp const uint8_t *thresh 151 ; const uint8_t *limit, const uint8_t *thresh, 157 ; sp const uint8_t *thresh, [all …]
|
D | highbd_loopfilter_neon.c | 17 const uint8_t *thresh, uint16x8_t *blimit_vec, in load_thresh() argument 23 *thresh_vec = vmovl_u8(vld1_dup_u8(thresh)); in load_thresh() 44 const uint16x8_t thresh, const uint16x8_t p3, in filter_hev_mask4() argument 52 *hev = vcgtq_u16(max, thresh); in filter_hev_mask4() 70 const uint16x8_t limit, const uint16x8_t blimit, const uint16x8_t thresh, in filter_flat_hev_mask() argument 76 const uint16x8_t max = filter_hev_mask4(limit, blimit, thresh, p3, p2, p1, p0, in filter_flat_hev_mask() 567 const uint8_t *thresh, int bd) { in vpx_highbd_lpf_horizontal_4_neon() argument 571 load_thresh(blimit, limit, thresh, &blimit_vec, &limit_vec, &thresh_vec, bd); in vpx_highbd_lpf_horizontal_4_neon() 588 const uint8_t *limit, const uint8_t *thresh, in vpx_highbd_lpf_vertical_4_neon() argument 597 load_thresh(blimit, limit, thresh, &blimit_vec, &limit_vec, &thresh_vec, bd); in vpx_highbd_lpf_vertical_4_neon() [all …]
|
D | loopfilter_4_neon.asm | 26 ; const uint8_t *thresh) 32 ; sp const uint8_t *thresh, 37 ldr r2, [sp, #4] ; load thresh 41 vld1.8 {d2[]}, [r2] ; duplicate *thresh 75 ; const uint8_t *thresh) 81 ; sp const uint8_t *thresh, 88 ldr r3, [sp, #4] ; load thresh 91 vld1.8 {d2[]}, [r3] ; duplicate *thresh 144 ; d2 thresh 181 vcgt.u8 d21, d21, d2 ; (abs(p1 - p0) > thresh)*-1 [all …]
|
/external/libvpx/libvpx/test/ |
D | lpf_test.cc | 42 const uint8_t *limit, const uint8_t *thresh, int bd); 52 const uint8_t *limit, const uint8_t *thresh); 175 thresh[16]) = { tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp, in TEST_P() 179 ref_loopfilter_op_(ref_s + 8 + p * 8, p, blimit, limit, thresh, bit_depth_); in TEST_P() 181 loopfilter_op_(s + 8 + p * 8, p, blimit, limit, thresh, bit_depth_)); in TEST_P() 183 ref_loopfilter_op_(ref_s + 8 + p * 8, p, blimit, limit, thresh); in TEST_P() 185 loopfilter_op_(s + 8 + p * 8, p, blimit, limit, thresh)); in TEST_P() 234 thresh[16]) = { tmp, tmp, tmp, tmp, tmp, tmp, tmp, tmp, in TEST_P() 242 ref_loopfilter_op_(ref_s + 8 + p * 8, p, blimit, limit, thresh, bit_depth_); in TEST_P() 244 loopfilter_op_(s + 8 + p * 8, p, blimit, limit, thresh, bit_depth_)); in TEST_P() [all …]
|
/external/libvpx/libvpx/vpx_dsp/x86/ |
D | highbd_loopfilter_sse2.c | 57 __m128i blimit, limit, thresh; in vpx_highbd_lpf_horizontal_16_sse2() local 76 thresh = _mm_unpacklo_epi8(_mm_load_si128((const __m128i *)_thresh), zero); in vpx_highbd_lpf_horizontal_16_sse2() 82 thresh = _mm_slli_epi16( in vpx_highbd_lpf_horizontal_16_sse2() 89 thresh = _mm_slli_epi16( in vpx_highbd_lpf_horizontal_16_sse2() 115 hev = _mm_subs_epu16(flat, thresh); in vpx_highbd_lpf_horizontal_16_sse2() 497 __m128i blimit, limit, thresh; in vpx_highbd_lpf_horizontal_8_sse2() local 525 thresh = _mm_unpacklo_epi8(_mm_load_si128((const __m128i *)_thresh), zero); in vpx_highbd_lpf_horizontal_8_sse2() 532 thresh = _mm_slli_epi16( in vpx_highbd_lpf_horizontal_8_sse2() 540 thresh = _mm_slli_epi16( in vpx_highbd_lpf_horizontal_8_sse2() 557 hev = _mm_subs_epu16(flat, thresh); in vpx_highbd_lpf_horizontal_8_sse2() [all …]
|
/external/aac/libAACenc/src/ |
D | grp_data.cpp | 181 FIXP_DBL thresh = sfbThreshold->Short[wnd][sfb]; in FDKaacEnc_groupShortData() local 184 thresh = nrgAddSaturate(thresh, sfbThreshold->Short[wnd+j][sfb]); in FDKaacEnc_groupShortData() 186 sfbThreshold->Long[i++] = thresh; in FDKaacEnc_groupShortData()
|
/external/libvpx/libvpx/vp8/common/mips/msa/ |
D | loopfilter_filters_msa.c | 293 v16u8 mask, hev, flat, thresh, limit, b_limit; in mbloop_filter_horizontal_edge_y_msa() local 297 thresh = (v16u8)__msa_fill_b(thresh_in); in mbloop_filter_horizontal_edge_y_msa() 300 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in mbloop_filter_horizontal_edge_y_msa() 317 v16u8 mask, hev, flat, thresh, limit, b_limit; in mbloop_filter_horizontal_edge_uv_msa() local 323 thresh = (v16u8)__msa_fill_b(thresh_in); in mbloop_filter_horizontal_edge_uv_msa() 332 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in mbloop_filter_horizontal_edge_uv_msa() 369 v16u8 mask, hev, flat, thresh, limit, b_limit; in mbloop_filter_vertical_edge_y_msa() local 376 thresh = (v16u8)__msa_fill_b(thresh_in); in mbloop_filter_vertical_edge_y_msa() 385 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, hev, in mbloop_filter_vertical_edge_y_msa() 434 v16u8 mask, hev, flat, thresh, limit, b_limit; in mbloop_filter_vertical_edge_uv_msa() local [all …]
|
/external/libopus/celt/ |
D | rate.c | 249 …const int *bits1, const int *bits2, const int *thresh, const int *cap, opus_int32 total, opus_int3… in interp_bits2pulses() argument 279 if (tmp >= thresh[j] || done) in interp_bits2pulses() 300 if (tmp < thresh[j] && !done) in interp_bits2pulses() 344 if (band_bits >= IMAX(thresh[j], alloc_floor+(1<<BITRES))) in interp_bits2pulses() 538 VARDECL(int, thresh); in compute_allocation() 564 ALLOC(thresh, len, int); in compute_allocation() 570 thresh[j] = IMAX((C)<<BITRES, (3*(m->eBands[j+1]-m->eBands[j])<<LM<<BITRES)>>4); in compute_allocation() 594 if (bitsj >= thresh[j] || done) in compute_allocation() 633 codedBands = interp_bits2pulses(m, start, end, skip_start, bits1, bits2, thresh, cap, in compute_allocation()
|