Home
last modified time | relevance | path

Searched refs:thresh (Results 1 – 25 of 123) sorted by relevance

12345

/external/webp/src/dsp/
Ddec_mips32.c66 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
68 return (abs_mips32(p1 - p0) > thresh) || (abs_mips32(q1 - q0) > thresh); in hev()
71 static WEBP_INLINE int needs_filter(const uint8_t* p, int step, int thresh) { in needs_filter() argument
73 return ((2 * abs_mips32(p0 - q0) + (abs_mips32(p1 - q1) >> 1)) <= thresh); in needs_filter()
91 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument
93 if (needs_filter2(p, hstride, thresh, ithresh)) { in FilterLoop26()
106 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument
108 if (needs_filter2(p, hstride, thresh, ithresh)) { in FilterLoop24()
121 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument
122 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16()
[all …]
Ddec.c516 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
518 return (VP8kabs0[p1 - p0] > thresh) || (VP8kabs0[q1 - q0] > thresh); in hev()
540 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
542 const int thresh2 = 2 * thresh + 1; in SimpleVFilter16()
550 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
552 const int thresh2 = 2 * thresh + 1; in SimpleHFilter16()
560 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
564 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
568 static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { in SimpleHFilter16i() argument
572 SimpleHFilter16(p, stride, thresh); in SimpleHFilter16i()
[all …]
Ddec_sse2.c390 int thresh, __m128i* const mask) { in NeedsFilter() argument
391 const __m128i m_thresh = _mm_set1_epi8(thresh); in NeedsFilter()
411 int thresh) { in DoFilter2() argument
418 NeedsFilter(p1, p0, q0, q1, thresh, &mask); in DoFilter2()
655 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
662 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleVFilter16()
669 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
675 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleHFilter16()
679 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
683 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
[all …]
Ddec_neon.c442 int thresh) { in NeedsFilter() argument
443 const uint8x16_t thresh_v = vdupq_n_u8((uint8_t)thresh); in NeedsFilter()
512 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
516 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleVFilter16()
522 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
526 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleHFilter16()
545 #define NEEDS_FILTER(p1, p0, q0, q1, thresh, mask) \ argument
551 "vdup.8 q14, " #thresh " \n" \
573 #define DO_FILTER2(p1, p0, q0, q1, thresh) \ argument
574 NEEDS_FILTER(p1, p0, q0, q1, thresh, q9) /* filter mask in q9 */ \
[all …]
/external/chromium_org/third_party/libwebp/dsp/
Ddec_mips32.c66 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
68 return (abs_mips32(p1 - p0) > thresh) || (abs_mips32(q1 - q0) > thresh); in hev()
71 static WEBP_INLINE int needs_filter(const uint8_t* p, int step, int thresh) { in needs_filter() argument
73 return ((2 * abs_mips32(p0 - q0) + (abs_mips32(p1 - q1) >> 1)) <= thresh); in needs_filter()
91 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument
93 if (needs_filter2(p, hstride, thresh, ithresh)) { in FilterLoop26()
106 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument
108 if (needs_filter2(p, hstride, thresh, ithresh)) { in FilterLoop24()
121 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument
122 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16()
[all …]
Ddec.c516 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
518 return (VP8kabs0[p1 - p0] > thresh) || (VP8kabs0[q1 - q0] > thresh); in hev()
540 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
542 const int thresh2 = 2 * thresh + 1; in SimpleVFilter16()
550 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
552 const int thresh2 = 2 * thresh + 1; in SimpleHFilter16()
560 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
564 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
568 static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { in SimpleHFilter16i() argument
572 SimpleHFilter16(p, stride, thresh); in SimpleHFilter16i()
[all …]
Ddec_sse2.c390 int thresh, __m128i* const mask) { in NeedsFilter() argument
391 const __m128i m_thresh = _mm_set1_epi8(thresh); in NeedsFilter()
411 int thresh) { in DoFilter2() argument
418 NeedsFilter(p1, p0, q0, q1, thresh, &mask); in DoFilter2()
655 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
662 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleVFilter16()
669 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
675 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleHFilter16()
679 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
683 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
[all …]
Ddec_neon.c442 int thresh) { in NeedsFilter() argument
443 const uint8x16_t thresh_v = vdupq_n_u8((uint8_t)thresh); in NeedsFilter()
512 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
516 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleVFilter16()
522 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
526 const uint8x16_t mask = NeedsFilter(p1, p0, q0, q1, thresh); in SimpleHFilter16()
545 #define NEEDS_FILTER(p1, p0, q0, q1, thresh, mask) \ argument
551 "vdup.8 q14, " #thresh " \n" \
573 #define DO_FILTER2(p1, p0, q0, q1, thresh) \ argument
574 NEEDS_FILTER(p1, p0, q0, q1, thresh, q9) /* filter mask in q9 */ \
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_loopfilter_filters.c37 static INLINE int8_t flat_mask4(uint8_t thresh, in flat_mask4() argument
43 mask |= (abs(p1 - p0) > thresh) * -1; in flat_mask4()
44 mask |= (abs(q1 - q0) > thresh) * -1; in flat_mask4()
45 mask |= (abs(p2 - p0) > thresh) * -1; in flat_mask4()
46 mask |= (abs(q2 - q0) > thresh) * -1; in flat_mask4()
47 mask |= (abs(p3 - p0) > thresh) * -1; in flat_mask4()
48 mask |= (abs(q3 - q0) > thresh) * -1; in flat_mask4()
52 static INLINE int8_t flat_mask5(uint8_t thresh, in flat_mask5() argument
58 int8_t mask = ~flat_mask4(thresh, p3, p2, p1, p0, q0, q1, q2, q3); in flat_mask5()
59 mask |= (abs(p4 - p0) > thresh) * -1; in flat_mask5()
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/
Dvp9_loopfilter_filters.c37 static INLINE int8_t flat_mask4(uint8_t thresh, in flat_mask4() argument
43 mask |= (abs(p1 - p0) > thresh) * -1; in flat_mask4()
44 mask |= (abs(q1 - q0) > thresh) * -1; in flat_mask4()
45 mask |= (abs(p2 - p0) > thresh) * -1; in flat_mask4()
46 mask |= (abs(q2 - q0) > thresh) * -1; in flat_mask4()
47 mask |= (abs(p3 - p0) > thresh) * -1; in flat_mask4()
48 mask |= (abs(q3 - q0) > thresh) * -1; in flat_mask4()
52 static INLINE int8_t flat_mask5(uint8_t thresh, in flat_mask5() argument
58 int8_t mask = ~flat_mask4(thresh, p3, p2, p1, p0, q0, q1, q2, q3); in flat_mask5()
59 mask |= (abs(p4 - p0) > thresh) * -1; in flat_mask5()
[all …]
/external/opencv/cv/src/
Dcvthresh.cpp46 CvSize roi, uchar thresh, uchar maxval, int type ) in icvThresh_8u_C1R() argument
54 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
60 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
66 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
69 tab[i] = thresh; in icvThresh_8u_C1R()
72 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
78 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
114 CvSize roi, float thresh, float maxval, int type ) in icvThresh_32f_C1R() argument
122 v.f = thresh; iThresh = CV_TOGGLE_FLT(v.i); in icvThresh_32f_C1R()
159 if( temp > thresh ) in icvThresh_32f_C1R()
[all …]
/external/libvpx/libvpx/vp9/common/mips/dspr2/
Dvp9_loopfilter_masks_dspr2.h32 uint32_t thresh, uint32_t *hev, in vp9_filter_hev_mask_dspr2() argument
95 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in vp9_filter_hev_mask_dspr2()
134 uint32_t thresh, in vp9_filter_hev_mask_flatmask4_dspr2() argument
243 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh), in vp9_filter_hev_mask_flatmask4_dspr2()
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/mips/dspr2/
Dvp9_loopfilter_masks_dspr2.h32 uint32_t thresh, uint32_t *hev, in vp9_filter_hev_mask_dspr2() argument
95 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in vp9_filter_hev_mask_dspr2()
134 uint32_t thresh, in vp9_filter_hev_mask_flatmask4_dspr2() argument
243 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh), in vp9_filter_hev_mask_flatmask4_dspr2()
/external/libvpx/libvpx/vp8/common/mips/dspr2/
Dloopfilter_filters_dspr2.c55 uint32_t thresh, in vp8_filter_mask_vec_mips() argument
121 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in vp8_filter_mask_vec_mips()
349 unsigned int thresh, in vp8_loop_filter_horizontal_edge_mips() argument
401 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
446 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
491 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
536 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
559 unsigned int thresh, in vp8_loop_filter_uvhorizontal_edge_mips() argument
608 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
653 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/mips/dspr2/
Dloopfilter_filters_dspr2.c55 uint32_t thresh, in vp8_filter_mask_vec_mips() argument
121 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in vp8_filter_mask_vec_mips()
349 unsigned int thresh, in vp8_loop_filter_horizontal_edge_mips() argument
401 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
446 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
491 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
536 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
559 unsigned int thresh, in vp8_loop_filter_uvhorizontal_edge_mips() argument
608 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
653 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
[all …]
/external/libvpx/libvpx/vp8/common/
Dloopfilter_filters.c43 static signed char vp8_hevmask(uc thresh, uc p1, uc p0, uc q0, uc q1) in vp8_hevmask() argument
46 hev |= (abs(p1 - p0) > thresh) * -1; in vp8_hevmask()
47 hev |= (abs(q1 - q0) > thresh) * -1; in vp8_hevmask()
104 const unsigned char *thresh, in vp8_loop_filter_horizontal_edge_c() argument
121 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_loop_filter_horizontal_edge_c()
136 const unsigned char *thresh, in vp8_loop_filter_vertical_edge_c() argument
152 hev = vp8_hevmask(thresh[0], s[-2], s[-1], s[0], s[1]); in vp8_loop_filter_vertical_edge_c()
222 const unsigned char *thresh, in vp8_mbloop_filter_horizontal_edge_c() argument
240 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_mbloop_filter_horizontal_edge_c()
257 const unsigned char *thresh, in vp8_mbloop_filter_vertical_edge_c() argument
[all …]
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/
Dloopfilter_filters.c43 static signed char vp8_hevmask(uc thresh, uc p1, uc p0, uc q0, uc q1) in vp8_hevmask() argument
46 hev |= (abs(p1 - p0) > thresh) * -1; in vp8_hevmask()
47 hev |= (abs(q1 - q0) > thresh) * -1; in vp8_hevmask()
104 const unsigned char *thresh, in vp8_loop_filter_horizontal_edge_c() argument
121 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_loop_filter_horizontal_edge_c()
136 const unsigned char *thresh, in vp8_loop_filter_vertical_edge_c() argument
152 hev = vp8_hevmask(thresh[0], s[-2], s[-1], s[0], s[1]); in vp8_loop_filter_vertical_edge_c()
222 const unsigned char *thresh, in vp8_mbloop_filter_horizontal_edge_c() argument
240 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_mbloop_filter_horizontal_edge_c()
257 const unsigned char *thresh, in vp8_mbloop_filter_vertical_edge_c() argument
[all …]
/external/libvpx/libvpx/vp8/common/arm/neon/
Dloopfilter_neon.asm24 ; sp unsigned char thresh,
30 ldr r3, [sp, #4] ; load thresh
34 vdup.u8 q2, r3 ; duplicate thresh
63 ; sp unsigned char thresh,
69 ldr r12, [sp, #4] ; load thresh
71 vdup.u8 q2, r12 ; duplicate thresh
113 ; const signed char *thresh,
119 ; sp unsigned char thresh,
127 ldr r3, [sp, #4] ; load thresh
154 vdup.u8 q2, r3 ; duplicate thresh
[all …]
Dmbloopfilter_neon.asm23 ; const unsigned char *thresh)
28 ; sp unsigned char thresh,
32 ldr r12, [sp, #4] ; load thresh
34 vdup.u8 q2, r12 ; thresh
64 ; const unsigned char *thresh,
70 ; sp unsigned char thresh,
75 ldr r12, [sp, #4] ; load thresh
77 vdup.u8 q2, r12 ; thresh
125 ; const unsigned char *thresh)
130 ; sp unsigned char thresh,
[all …]
/external/tcpdump/
Dprint-dvmrp.c264 register u_char thresh; in print_neighbors() local
272 thresh = *bp++; in print_neighbors()
279 ipaddr_string(bp), metric, thresh); in print_neighbors()
294 register u_char metric, thresh, flags; in print_neighbors2() local
306 thresh = *bp++; in print_neighbors2()
313 metric, thresh); in print_neighbors2()
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/arm/neon/
Dvp9_loopfilter_neon.asm28 ; const uint8_t *thresh,
35 ; sp const uint8_t *thresh,
42 ldr r2, [sp, #4] ; load thresh
49 vld1.8 {d2[]}, [r2] ; duplicate *thresh
91 ; const uint8_t *thresh,
98 ; sp const uint8_t *thresh,
107 ldr r3, [sp, #4] ; load thresh
112 vld1.8 {d2[]}, [r3] ; duplicate *thresh
172 ; d2 thresh
209 vcgt.u8 d21, d21, d2 ; (abs(p1 - p0) > thresh)*-1
[all …]
Dvp9_loopfilter_16_neon.c49 const uint8_t *thresh) { in vp9_lpf_vertical_16_dual_neon() argument
50 vp9_lpf_vertical_16_neon(s, p, blimit, limit, thresh); in vp9_lpf_vertical_16_dual_neon()
51 vp9_lpf_vertical_16_neon(s + 8 * p, p, blimit, limit, thresh); in vp9_lpf_vertical_16_dual_neon()
/external/libvpx/libvpx/vp9/common/arm/neon/
Dvp9_loopfilter_neon.asm28 ; const uint8_t *thresh,
35 ; sp const uint8_t *thresh,
42 ldr r2, [sp, #4] ; load thresh
49 vld1.8 {d2[]}, [r2] ; duplicate *thresh
91 ; const uint8_t *thresh,
98 ; sp const uint8_t *thresh,
107 ldr r3, [sp, #4] ; load thresh
112 vld1.8 {d2[]}, [r3] ; duplicate *thresh
172 ; d2 thresh
209 vcgt.u8 d21, d21, d2 ; (abs(p1 - p0) > thresh)*-1
[all …]
Dvp9_loopfilter_16_neon.c49 const uint8_t *thresh) { in vp9_lpf_vertical_16_dual_neon() argument
50 vp9_lpf_vertical_16_neon(s, p, blimit, limit, thresh); in vp9_lpf_vertical_16_dual_neon()
51 vp9_lpf_vertical_16_neon(s + 8 * p, p, blimit, limit, thresh); in vp9_lpf_vertical_16_dual_neon()
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/arm/neon/
Dloopfilter_neon.asm24 ; sp unsigned char thresh,
32 ldr r3, [sp, #68] ; load thresh
36 vdup.u8 q2, r3 ; duplicate thresh
66 ; sp unsigned char thresh,
74 ldr r12, [sp, #68] ; load thresh
76 vdup.u8 q2, r12 ; duplicate thresh
119 ; const signed char *thresh,
125 ; sp unsigned char thresh,
135 ldr r3, [sp, #68] ; load thresh
162 vdup.u8 q2, r3 ; duplicate thresh
[all …]

12345