Home
last modified time | relevance | path

Searched refs:kStride (Results 1 – 7 of 7) sorted by relevance

/external/libyuv/files/unit_test/
Dplanar_test.cc117 const int kStride = width * kBpp; in TestAttenuateI() local
118 align_buffer_page_end(src_argb, kStride * height + off); in TestAttenuateI()
119 align_buffer_page_end(dst_argb_c, kStride * height); in TestAttenuateI()
120 align_buffer_page_end(dst_argb_opt, kStride * height); in TestAttenuateI()
121 for (int i = 0; i < kStride * height; ++i) { in TestAttenuateI()
124 memset(dst_argb_c, 0, kStride * height); in TestAttenuateI()
125 memset(dst_argb_opt, 0, kStride * height); in TestAttenuateI()
128 ARGBAttenuate(src_argb + off, kStride, dst_argb_c, kStride, width, in TestAttenuateI()
132 ARGBAttenuate(src_argb + off, kStride, dst_argb_opt, kStride, width, in TestAttenuateI()
136 for (int i = 0; i < kStride * height; ++i) { in TestAttenuateI()
[all …]
Dconvert_test.cc747 const int kStride = (kStrideUV * SUBSAMP_X * 8 * BPP_A + 7) / 8; \
748 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
764 for (int j = 0; j < kStride; ++j) \
765 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
767 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_c, kWidth, dst_u_c, \
771 FMT_A##To##FMT_PLANAR(src_argb + OFF, kStride, dst_y_opt, kWidth, \
808 const int kStride = (kStrideUV * SUBSAMP_X * 8 * BPP_A + 7) / 8; \
809 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
821 for (int j = 0; j < kStride; ++j) \
822 src_argb[(i * kStride) + j + OFF] = (fastrand() & 0xff); \
[all …]
/external/compiler-rt/test/tsan/
Dbench_local_mutex.cc10 const int kStride = 16; variable
14 pthread_mutex_lock(&mtx[tid * kStride]); in thread()
15 pthread_mutex_unlock(&mtx[tid * kStride]); in thread()
20 mtx = (pthread_mutex_t*)malloc(bench_nthread * kStride * sizeof(*mtx)); in bench()
22 pthread_mutex_init(&mtx[i * kStride], 0); in bench()
23 pthread_mutex_lock(&mtx[i * kStride]); in bench()
24 pthread_mutex_unlock(&mtx[i * kStride]); in bench()
Dbench_release_only.cc10 const int kStride = 32; variable
13 __atomic_load_n(&x[tid * kStride], __ATOMIC_ACQUIRE); in thread()
15 __atomic_store_n(&x[tid * kStride], 0, __ATOMIC_RELEASE); in thread()
19 x = (int*)malloc(bench_nthread * kStride * sizeof(x[0])); in bench()
21 __atomic_store_n(&x[i * kStride], 0, __ATOMIC_RELEASE); in bench()
Dbench_shadow_flush.cc14 const long kStride = 1 << 10; variable
32 uptr sz = mem_size + stride2 * kStride + kLargePage; in main()
40 mem[off + off2 * kStride] = 42; in main()
/external/skia/gm/
Dtexdata.cpp24 constexpr int kStride = 2 * S; variable
40 pixels[offset + y * kStride + x] = gray; in fill_in_pixels()
47 pixels[offset + y * kStride + x] = white; in fill_in_pixels()
51 offset = S * kStride; in fill_in_pixels()
54 pixels[offset + y * kStride + x] = black; in fill_in_pixels()
58 offset = S * kStride + S; in fill_in_pixels()
61 pixels[offset + y * kStride + x] = gray; in fill_in_pixels()
130 gTextureData[y * kStride + x] = ((x + y) % 2) ? (i ? green : red) : blue;
134 if (!tContext->writePixels(ii, gTextureData.get(), 4 * kStride, S, i ? 0 : S)) {
/external/skia/src/jumper/
DSkJumper_stages.cpp243 static const size_t kStride = sizeof(F) / sizeof(float); variable
261 __builtin_assume(tail < kStride); in load()
282 __builtin_assume(tail < kStride); in store()
320 uint64_t mask = 0xffffffffffffffff >> 8*(kStride-tail); in mask()
328 __builtin_assume(tail < kStride); in load()
337 __builtin_assume(tail < kStride); in store()
426 while (x + kStride <= limit) { in WRAP()
428 x += kStride; in WRAP()
463 while (x + kStride <= limit) { in WRAP()
465 x += kStride; in WRAP()