/external/skia/gm/ |
D | imagealphathreshold.cpp | 31 #define HEIGHT 500 macro 36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint() 48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint() 76 return SkISize::Make(WIDTH, HEIGHT); in onISize() 82 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 87 SkIRect cropRect = SkIRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw() [all …]
|
D | imageblur.cpp | 21 #define HEIGHT 500 macro 34 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw() 41 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 44 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
|
/external/skqp/gm/ |
D | imagealphathreshold.cpp | 18 #define HEIGHT 500 macro 23 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 25 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 27 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 29 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects() 34 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint() 35 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint() 62 return SkISize::Make(WIDTH, HEIGHT); in onISize() 68 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw() 73 SkRect r = SkRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw() [all …]
|
D | imageblur.cpp | 14 #define HEIGHT 500 macro 27 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw() 34 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 37 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_render_copy_redux.c | 56 #define HEIGHT 512 macro 57 #define SIZE (HEIGHT*STRIDE) 68 uint32_t linear[WIDTH * HEIGHT]; 139 scratch_buf_init(data, &src, WIDTH, HEIGHT, STRIDE, SRC_COLOR); in copy() 140 scratch_buf_init(data, &dst, WIDTH, HEIGHT, STRIDE, DST_COLOR); in copy() 142 scratch_buf_check(data, &src, WIDTH / 2, HEIGHT / 2, SRC_COLOR); in copy() 143 scratch_buf_check(data, &dst, WIDTH / 2, HEIGHT / 2, DST_COLOR); in copy() 146 &src, 0, 0, WIDTH, HEIGHT, in copy() 147 &dst, WIDTH / 2, HEIGHT / 2); in copy() 150 scratch_buf_check(data, &dst, WIDTH - 10, HEIGHT - 10, SRC_COLOR); in copy() [all …]
|
D | gem_gpgpu_fill.c | 49 #define HEIGHT 64 macro 51 #define SIZE (HEIGHT*STRIDE) 60 uint8_t linear[WIDTH * HEIGHT]; 121 scratch_buf_init(&data, &dst, WIDTH, HEIGHT, STRIDE, COLOR_C4); 124 for (j = 0; j < HEIGHT; j++) { 130 &dst, 0, 0, WIDTH / 2, HEIGHT / 2, 134 for (j = 0; j < HEIGHT; j++) { 135 if (i < WIDTH / 2 && j < HEIGHT / 2)
|
D | gem_media_fill.c | 53 #define HEIGHT 64 macro 54 #define SIZE (HEIGHT*STRIDE) 63 uint8_t linear[WIDTH * HEIGHT]; 125 scratch_buf_init(&data, &dst, WIDTH, HEIGHT, STRIDE, COLOR_C4); 128 for (j = 0; j < HEIGHT; j++) { 134 &dst, 0, 0, WIDTH / 2, HEIGHT / 2, 138 for (j = 0; j < HEIGHT; j++) { 139 if (i < WIDTH / 2 && j < HEIGHT / 2)
|
D | gem_render_tiled_blits.c | 53 #define HEIGHT 512 macro 54 #define SIZE (HEIGHT*STRIDE) 58 static uint32_t data[WIDTH*HEIGHT]; 74 render_copy(batch, NULL, buf, 0, 0, WIDTH, HEIGHT, &tmp, 0, 0); in check_bo() 82 for (i = 0; i < WIDTH*HEIGHT; i++) { in check_bo() 118 linear = drm_intel_bo_alloc(bufmgr, "linear", WIDTH*HEIGHT*4, 0); in run_test() 133 WIDTH, HEIGHT, 4, in run_test() 144 for (j = 0; j < WIDTH*HEIGHT; j++) in run_test() 158 render_copy(batch, NULL, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); in run_test() 169 render_copy(batch, NULL, buf+src, 0, 0, WIDTH, HEIGHT, buf+dst, 0, 0); in run_test() [all …]
|
D | gem_ring_sync_copy.c | 58 #define HEIGHT 512 macro 70 uint32_t linear[WIDTH * HEIGHT]; 128 for (i = 0; i < WIDTH * HEIGHT; i++) in bo_check() 139 buf->size = 4 * WIDTH * HEIGHT; in scratch_buf_init_from_bo() 176 scratch_buf_init(data, &data->render.srcs[i], WIDTH, HEIGHT, in render_busy() 178 scratch_buf_init(data, &data->render.dsts[i], WIDTH, HEIGHT, in render_busy() 187 WIDTH, HEIGHT, in render_busy() 219 WIDTH, HEIGHT, in render_copy() 241 WIDTH, HEIGHT, in blitter_busy() 244 WIDTH, HEIGHT, in blitter_busy() [all …]
|
D | gen3_render_tiledx_blits.c | 51 #define HEIGHT 512 macro 149 (HEIGHT - 1) << MS3_HEIGHT_SHIFT | in copy() 179 *b++ = (DRAW_YMAX(HEIGHT - 1) | in copy() 221 *b++ = pack_float(HEIGHT); in copy() 223 *b++ = pack_float(HEIGHT); in copy() 226 *b++ = pack_float(HEIGHT); in copy() 228 *b++ = pack_float(HEIGHT); in copy() 294 handle = gem_create(fd, WIDTH*HEIGHT*4); in create_bo() 298 v = gem_mmap__gtt(fd, handle, WIDTH * HEIGHT * 4, in create_bo() 301 for (i = 0; i < WIDTH*HEIGHT; i++) in create_bo() [all …]
|
D | gen3_render_tiledy_blits.c | 51 #define HEIGHT 512 macro 149 (HEIGHT - 1) << MS3_HEIGHT_SHIFT | in copy() 179 *b++ = (DRAW_YMAX(HEIGHT - 1) | in copy() 221 *b++ = pack_float(HEIGHT); in copy() 223 *b++ = pack_float(HEIGHT); in copy() 226 *b++ = pack_float(HEIGHT); in copy() 228 *b++ = pack_float(HEIGHT); in copy() 294 handle = gem_create(fd, WIDTH*HEIGHT*4); in create_bo() 298 v = gem_mmap__gtt(fd, handle, WIDTH * HEIGHT * 4, in create_bo() 301 for (i = 0; i < WIDTH*HEIGHT; i++) in create_bo() [all …]
|
D | gen3_render_mixed_blits.c | 51 #define HEIGHT 512 macro 157 (HEIGHT - 1) << MS3_HEIGHT_SHIFT | in copy() 192 *b++ = (DRAW_YMAX(HEIGHT - 1) | in copy() 234 *b++ = pack_float(HEIGHT); in copy() 236 *b++ = pack_float(HEIGHT); in copy() 239 *b++ = pack_float(HEIGHT); in copy() 241 *b++ = pack_float(HEIGHT); in copy() 307 handle = gem_create(fd, WIDTH*HEIGHT*4); in create_bo() 311 v = gem_mmap__gtt(fd, handle, WIDTH * HEIGHT * 4, in create_bo() 314 for (i = 0; i < WIDTH*HEIGHT; i++) in create_bo() [all …]
|
D | gem_render_linear_blits.c | 55 #define HEIGHT 512 macro 56 #define SIZE (HEIGHT*STRIDE) 58 static uint32_t linear[WIDTH*HEIGHT]; 67 for (i = 0; i < WIDTH*HEIGHT; i++) { in check_bo() 97 for (j = 0; j < WIDTH*HEIGHT; j++) in run_test() 122 render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0); in run_test() 147 render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0); in run_test() 174 render_copy(batch, NULL, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0); in run_test()
|
D | gen3_mixed_blits.c | 51 #define HEIGHT (512) macro 166 (HEIGHT - 1) << MS3_HEIGHT_SHIFT | in render_copy() 205 *b++ = (DRAW_YMAX(HEIGHT - 1) | in render_copy() 247 *b++ = pack_float(HEIGHT); in render_copy() 249 *b++ = pack_float(HEIGHT); in render_copy() 252 *b++ = pack_float(HEIGHT); in render_copy() 254 *b++ = pack_float(HEIGHT); in render_copy() 330 *b++ = HEIGHT << 16 | WIDTH; in blt_copy() 413 handle = gem_create(fd, WIDTH*HEIGHT*4); in create_bo() 417 v = gem_mmap__gtt(fd, handle, WIDTH * HEIGHT * 4, in create_bo() [all …]
|
D | gem_render_copy.c | 54 #define HEIGHT 512 macro 558 .x = 1, .y = HEIGHT/2+1, in test() 563 .x = WIDTH/2+1, .y = HEIGHT/2+1, in test() 588 scratch_buf_init(data, &src[i].buf, WIDTH, HEIGHT, src[i].tiling, false); in test() 589 scratch_buf_init(data, &dst, WIDTH, HEIGHT, tiling, false); in test() 591 scratch_buf_init(data, &ccs, WIDTH, HEIGHT, ccs_modifier, true); in test() 592 scratch_buf_init(data, &ref, WIDTH, HEIGHT, I915_TILING_NONE, false); in test() 596 0, 0, WIDTH, HEIGHT, in test() 597 0, 0, WIDTH, HEIGHT, true); in test() 599 0, 0, WIDTH, HEIGHT, in test() [all …]
|
D | gen3_render_linear_blits.c | 50 #define HEIGHT 512 macro 52 static uint32_t linear[WIDTH*HEIGHT]; 149 (HEIGHT - 1) << MS3_HEIGHT_SHIFT | in copy() 179 *b++ = (DRAW_YMAX(HEIGHT - 1) | in copy() 221 *b++ = pack_float(HEIGHT); in copy() 223 *b++ = pack_float(HEIGHT); in copy() 226 *b++ = pack_float(HEIGHT); in copy() 228 *b++ = pack_float(HEIGHT); in copy() 296 for (i = 0; i < WIDTH*HEIGHT; i++) in create_bo() 309 for (i = 0; i < WIDTH*HEIGHT; i++) { in check_bo()
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
D | GlRectDrawerTest.java | 41 private static final int HEIGHT = 16; field in GlRectDrawerTest 100 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testRgbRendering() 104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering() 113 HEIGHT, 0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, rgbPlane); in testRgbRendering() 118 drawer.drawRgb(rgbTexture, RendererCommon.identityMatrix(), 0, 0, WIDTH, HEIGHT); in testRgbRendering() 121 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testRgbRendering() 122 GLES20.glReadPixels(0, 0, WIDTH, HEIGHT, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData); in testRgbRendering() 126 assertEquals(WIDTH, HEIGHT, stripAlphaChannel(rgbaData), rgbPlane); in testRgbRendering() 137 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testYuvRendering() 144 yuvPlanes[i] = ByteBuffer.allocateDirect(WIDTH * HEIGHT); in testYuvRendering() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawScissorTests.cpp | 52 HEIGHT = 256 enumerator 83 bottom = de::min(bottom, (int)HEIGHT); in scissorQuad() 131 float scaleHeight = 2.0f / (float)HEIGHT; in getVertices() 386 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in iterate() 415 …const FramebufferCreateInfo framebufferCreateInfo (*renderPass, colorAttachment, WIDTH, HEIGHT, 1); in iterate() 455 const VkViewport viewport = makeViewport(WIDTH, HEIGHT); in iterate() 493 const VkRect2D renderArea = makeRect2D(WIDTH, HEIGHT); in iterate() 519 …ultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in iterate() 524 refImage.setStorage(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM), WIDTH, HEIGHT); in iterate() 571 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests() [all …]
|
/external/igt-gpu-tools/tests/ |
D | panfrost_submit.c | 41 #define HEIGHT 1080 macro 77 for (i = 0; i < ALIGN(WIDTH, 16) * HEIGHT; i++) in check_fb() 81 for (i = 0; i < ALIGN(WIDTH, 16) * HEIGHT; i++) in check_fb() 97 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT, 117 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT, 128 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT, 139 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT, 149 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT, 159 submit = igt_panfrost_trivial_job(fd, true, WIDTH, HEIGHT, 167 submit = igt_panfrost_trivial_job(fd, false, WIDTH, HEIGHT,
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateGeneralTests.cpp | 81 vk::VkViewport viewport = { 0, 0, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate() 82 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate() 83 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate() 109 …achmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + static_cast<float>(HEIGHT))); in iterate() 133 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, in iterate() 173 vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate() 174 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate() 175 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate() 206 …achmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + static_cast<float>(HEIGHT))); in iterate() 230 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate() [all …]
|
/external/skia/bench/ |
D | TileImageFilterBench.cpp | 15 #define HEIGHT 512 macro 41 SkRect::MakeWH(50, 50), SkRect::MakeWH(WIDTH, HEIGHT), nullptr)); in onDraw() 45 for (int y = 0; y < HEIGHT; y += fTileSize) { in onDraw() 50 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw() 55 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
|
/external/skqp/bench/ |
D | TileImageFilterBench.cpp | 15 #define HEIGHT 512 macro 41 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw() 46 for (int y = 0; y < HEIGHT; y += fTileSize) { in onDraw() 51 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw() 56 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
|
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/ |
D | vktConditionalDrawAndClearTests.cpp | 243 HEIGHT = 256 enumerator 318 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetColorImageAndImageView() 332 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetDepthImageAndImageView() 388 HEIGHT, // deUint32 height in createFramebuffer() 444 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor() 451 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor() 458 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneDepth() 465 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageDepthClearPartial() 468 (w >= (WIDTH / 2) && h >= (HEIGHT / 2)) reference.setPixDepth(clearValueFinal.depth, w, h); in prepareReferenceImageDepthClearPartial() 477 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageColorClearPartial() [all …]
|
/external/skqp/tests/ |
D | CanvasStateTest.cpp | 74 const int HEIGHT = 400; in DEF_TEST() local 79 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in DEF_TEST() 112 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST() 168 const int HEIGHT = 400; in DEF_TEST() local 171 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST() 219 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST() 296 const int HEIGHT = 100; in DEF_TEST() local 301 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST() 305 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST() 314 REPORTER_ASSERT(reporter, devClip.height() == HEIGHT); in DEF_TEST()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcLayoutLocationTests.cpp | 49 static const GLuint HEIGHT = 2; variable 110 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createTexture2D() 115 gl.texStorage2D(target, 1, internalFormat, WIDTH, HEIGHT); in createTexture2D() 116 gl.texSubImage2D(target, 0, 0, 0, WIDTH, HEIGHT, format, type, &data[0]); in createTexture2D() 125 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createTexture3D() 130 gl.texStorage3D(GL_TEXTURE_3D, 1, internalFormat, WIDTH, HEIGHT, 1); in createTexture3D() 131 gl.texSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, WIDTH, HEIGHT, 1, format, type, &data[0]); in createTexture3D() 139 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createCubeMap() 146 gl.texStorage2D(GL_TEXTURE_CUBE_MAP, 1, internalFormat, WIDTH, HEIGHT); in createCubeMap() 148 gl.texSubImage2D(faces[i], 0, 0, 0, WIDTH, HEIGHT, format, type, &data[0]); in createCubeMap() [all …]
|