Lines Matching full:depth
43 depth = GET_PARAM(4); in SetUp()
51 int depth; member in __anond14d112b0111::CDEFBlockTest
59 cdef_filter_block_func ref_cdef, int boundary, int depth) { in test_cdef() argument
75 const unsigned int max_pos = size * size >> static_cast<int>(depth == 8); in test_cdef()
76 for (pridamping = 3 + depth - 8; pridamping < 7 - 3 * !!boundary + depth - 8; in test_cdef()
78 for (secdamping = 3 + depth - 8; in test_cdef()
79 secdamping < 7 - 3 * !!boundary + depth - 8; secdamping++) { in test_cdef()
81 for (level = 0; level < (1 << depth) && !error; in test_cdef()
82 level += (2 + 6 * !!boundary) << (depth - 8)) { in test_cdef()
83 for (bits = 1; bits <= depth && !error; bits += 1 + 3 * !!boundary) { in test_cdef()
86 (1 << depth) - 1); in test_cdef()
110 for (pristrength = 0; pristrength <= 19 << (depth - 8) && !error; in test_cdef()
111 pristrength += (1 + 4 * !!boundary) << (depth - 8)) { in test_cdef()
113 for (secstrength = 0; secstrength <= 4 << (depth - 8) && !error; in test_cdef()
114 secstrength += 1 << (depth - 8)) { in test_cdef()
115 if (secstrength == 3 << (depth - 8)) continue; in test_cdef()
116 ref_cdef(depth == 8 ? (uint8_t *)ref_d : 0, ref_d, size, in test_cdef()
119 secdamping, bsize, depth - 8); in test_cdef()
124 cdef(depth == 8 ? (uint8_t *)d : 0, d, size, in test_cdef()
127 secdamping, bsize, depth - 8)); in test_cdef()
131 errdepth = depth; in test_cdef()
158 << "depth: " << errdepth << std::endl in test_cdef()
165 cdef_filter_block_func ref_cdef, int boundary, int depth) { in test_cdef_speed() argument
170 test_cdef(bsize, iterations, ref_cdef, ref_cdef, boundary, depth); in test_cdef_speed()
175 test_cdef(bsize, iterations, cdef, cdef, boundary, depth); in test_cdef_speed()
216 int depth, bits, level, count, errdepth = 0; in test_finddir() local
220 for (depth = 8; depth <= 12 && !error; depth += 2) { in test_finddir()
222 for (level = 0; level < (1 << depth) && !error; in test_finddir()
223 level += 1 << (depth - 8)) { in test_finddir()
224 for (bits = 1; bits <= depth && !error; bits++) { in test_finddir()
227 (1 << depth) - 1); in test_finddir()
229 ref_res = ref_finddir(s, size, &ref_var, depth - 8); in test_finddir()
231 ASM_REGISTER_STATE_CHECK(res = finddir(s, size, &var, depth - 8)); in test_finddir()
234 errdepth = depth; in test_finddir()
245 << "depth: " << errdepth << std::endl in test_finddir()
273 test_cdef(bsize, 1, cdef, ref_cdef, boundary, depth); in TEST_P()
277 test_cdef_speed(bsize, 4, cdef, ref_cdef, boundary, depth); in TEST_P()