Home
last modified time | relevance | path

Searched refs:HEIGHT (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/external/skia/gm/
Dimagealphathreshold.cpp31 #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 …]
Dimageblur.cpp21 #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/
Dimagealphathreshold.cpp18 #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 …]
Dimageblur.cpp14 #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/
Dgem_render_copy_redux.c56 #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 …]
Dgem_gpgpu_fill.c49 #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)
Dgem_media_fill.c53 #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)
Dgem_ring_sync_copy.c58 #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 …]
Dgem_render_tiled_blits.c53 #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 …]
Dgen3_render_tiledx_blits.c51 #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 …]
Dgen3_render_tiledy_blits.c51 #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 …]
Dgen3_render_mixed_blits.c51 #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 …]
Dgen3_mixed_blits.c51 #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 …]
Dgem_render_linear_blits.c55 #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()
Dgem_render_copy.c54 #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 …]
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DGlRectDrawerTest.java30 private static final int HEIGHT = 16; field in GlRectDrawerTest
102 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testRgbRendering()
106 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering()
114 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH, HEIGHT, 0, GLES20.GL_RGB, in testRgbRendering()
120 drawer.drawRgb(rgbTexture, IDENTITY_MATRIX, WIDTH, HEIGHT, 0 /* viewportX */, 0 /* viewportY */, in testRgbRendering()
121 WIDTH, HEIGHT); in testRgbRendering()
124 final ByteBuffer rgbaData = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 4); in testRgbRendering()
125 GLES20.glReadPixels(0, 0, WIDTH, HEIGHT, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, rgbaData); in testRgbRendering()
129 assertByteBufferEquals(WIDTH, HEIGHT, stripAlphaChannel(rgbaData), rgbPlane); in testRgbRendering()
143 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testYuvRendering()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawScissorTests.cpp52 HEIGHT = 256 enumerator
131 float scaleHeight = 2.0f / (float)HEIGHT; in getVertices()
230 TestParams() : framebufferSize({WIDTH,HEIGHT}) {}; in TestParams()
390 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in iterate()
458 const VkViewport viewport = makeViewport(WIDTH, HEIGHT); in iterate()
527 …ultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in iterate()
532 refImage.setStorage(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM), WIDTH, HEIGHT); in iterate()
579 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
581 …params.commands.push_back(TestCommandSp(new QuadDrawTestCommand(WIDTH - 80, HEIGHT - 100, 30, 40, … in createTests()
590 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
[all …]
DvktDrawNegativeViewportHeightTests.cpp58 HEIGHT = WIDTH/2, enumerator
121 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in NegativeViewportHeightTestInstance()
176 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in NegativeViewportHeightTestInstance()
202 const VkRect2D scissor = makeRect2D(WIDTH, HEIGHT); in NegativeViewportHeightTestInstance()
296 beginRenderPass(vk, *cmdBuffer, *m_renderPass, *m_framebuffer, makeRect2D(0, 0, WIDTH, HEIGHT)); in draw()
316 …ntext.getDefaultAllocator(), VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in draw()
335 DE_ASSERT(HEIGHT == WIDTH/2); in generateReferenceImage()
337 …:TextureLevel> image (new tcu::TextureLevel(mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT)); in generateReferenceImage()
353 const int p1 = static_cast<int>(static_cast<float>(HEIGHT) * (1.0f - 0.6f) / 2.0f); in generateReferenceImage()
354 const int p2 = p1 + static_cast<int>(static_cast<float>(HEIGHT) * (2.0f * 0.6f) / 2.0f); in generateReferenceImage()
[all …]
/external/igt-gpu-tools/tests/
Dpanfrost_submit.c41 #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/
DvktDynamicStateGeneralTests.cpp81 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/
DTileImageFilterBench.cpp15 #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/
DTileImageFilterBench.cpp15 #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/
DvktConditionalDrawAndClearTests.cpp243 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/
DCanvasStateTest.cpp74 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/
DglcLayoutLocationTests.cpp49 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 …]

12345678910>>...12