Lines Matching refs:thresh
66 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()
126 int thresh, int ithresh, int hev_thresh) { in HFilter16() argument
127 FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16()
132 int thresh, int ithresh, int hev_thresh) { in VFilter8() argument
133 FilterLoop26(u, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8()
134 FilterLoop26(v, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8()
138 int thresh, int ithresh, int hev_thresh) { in HFilter8() argument
139 FilterLoop26(u, 1, stride, 8, thresh, ithresh, hev_thresh); in HFilter8()
140 FilterLoop26(v, 1, stride, 8, thresh, ithresh, hev_thresh); in HFilter8()
144 int thresh, int ithresh, int hev_thresh) { in VFilter8i() argument
145 FilterLoop24(u + 4 * stride, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8i()
146 FilterLoop24(v + 4 * stride, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8i()
150 int thresh, int ithresh, int hev_thresh) { in HFilter8i() argument
151 FilterLoop24(u + 4, 1, stride, 8, thresh, ithresh, hev_thresh); in HFilter8i()
152 FilterLoop24(v + 4, 1, stride, 8, thresh, ithresh, hev_thresh); in HFilter8i()
157 int thresh, int ithresh, int hev_thresh) { in VFilter16i() argument
161 FilterLoop24(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16i()
166 int thresh, int ithresh, int hev_thresh) { in HFilter16i() argument
170 FilterLoop24(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16i()
177 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
180 if (needs_filter(p + i, stride, thresh)) { in SimpleVFilter16()
186 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
189 if (needs_filter(p + i * stride, 1, thresh)) { in SimpleHFilter16()
195 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
199 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
203 static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { in SimpleHFilter16i() argument
207 SimpleHFilter16(p, stride, thresh); in SimpleHFilter16i()