Home
last modified time | relevance | path

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

12345678910>>...19

/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/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_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_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_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_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_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_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.java27 private static final int HEIGHT = 16; field in GlRectDrawerTest
99 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testRgbRendering()
103 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering()
111 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH, HEIGHT, 0, GLES20.GL_RGB, in testRgbRendering()
117 drawer.drawRgb(rgbTexture, IDENTITY_MATRIX, WIDTH, HEIGHT, 0 /* viewportX */, 0 /* viewportY */, in testRgbRendering()
118 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 assertByteBufferEquals(WIDTH, HEIGHT, stripAlphaChannel(rgbaData), rgbPlane); in testRgbRendering()
140 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testYuvRendering()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawScissorTests.cpp52 HEIGHT = 256 enumerator
132 float scaleHeight = 2.0f / (float)HEIGHT; in getVertices()
233 , framebufferSize ({WIDTH,HEIGHT}) in TestParams()
409 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in iterate()
478 const VkViewport viewport = makeViewport(WIDTH, HEIGHT); in iterate()
608 …ultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in iterate()
613 refImage.setStorage(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM), WIDTH, HEIGHT); in iterate()
717 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
719 …params.commands.push_back(TestCommandSp(new QuadDrawTestCommand(WIDTH - 80, HEIGHT - 100, 30, 40, … in createTests()
728 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
[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/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativePathDashPathEffectTest.java25 private static final int HEIGHT = 100; field in ShadowNativePathDashPathEffectTest
29 Bitmap b = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in testPathDashPathEffect()
39 Bitmap expected = Bitmap.createBitmap(WIDTH, HEIGHT, Bitmap.Config.ARGB_8888); in testPathDashPathEffect()
44 RectF rect = new RectF(0, HEIGHT / 2 - SQUARE, 0, HEIGHT / 2 + SQUARE); in testPathDashPathEffect()
52 for (int y = 0; y < HEIGHT; y++) { in testPathDashPathEffect()
64 p.moveTo(0, HEIGHT / 2); in path()
65 p.lineTo(WIDTH, HEIGHT / 2); in path()
/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/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateGeneralTests.cpp79 vk::VkViewport viewport = { 0, 0, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
80 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
81 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
128 …achmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + static_cast<float>(HEIGHT))); in iterate()
152 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, in iterate()
190 vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
191 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
192 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
248 …achmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + static_cast<float>(HEIGHT))); in iterate()
272 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateDiscardTests.cpp126 const vk::VkExtent3D stencilImageExtent = { WIDTH, HEIGHT, 1 }; in DiscardTestInstance()
209 const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, attachments, WIDTH, HEIGHT, 1); in initFramebuffer()
218 …std::vector<vk::VkViewport> viewports { { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f,… in initPipeline()
219 std::vector<vk::VkRect2D> scissors { { { 0u, 0u }, { WIDTH, HEIGHT } } }; in initPipeline()
310 …RenderPass(m_vk, *m_cmdBuffer, *m_renderPass, *m_framebuffer, vk::makeRect2D(0, 0, WIDTH, HEIGHT)); in beginRenderPass()
405 …t.getDefaultAllocator(), vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPE… in verifyResults()
410 …(tcu::TextureFormat(tcu::TextureFormat::S, tcu::TextureFormat::UNSIGNED_INT8), WIDTH, HEIGHT, 1u)); in verifyResults()
417 for (int j = 0; j < HEIGHT; ++j) { in verifyResults()
439 vk::VkViewport viewport = vk::makeViewport(tcu::UVec2(WIDTH, HEIGHT)); in setDynamicState()
445 tcu::Texture2D referenceFrame(vk::mapVkFormat(m_depthStencilAttachmentFormat), WIDTH, HEIGHT); in verifyResults()
[all …]
DvktDynamicStateClearTests.cpp95 …ewport = { 0.0f, 0.0f, static_cast<float>(WIDTH / 2), static_cast<float>(HEIGHT / 2), 0.0f, 0.0f }; in iterate()
96 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH, HEIGHT } }; in iterate()
103 const vk::VkExtent3D imageExtent = { WIDTH, HEIGHT, 1 }; in iterate()
142 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
183 const vk::VkClearRect rect = { { { 0, 0 }, { WIDTH, HEIGHT } }, 0, 1 }; in command()
190 tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT); in buildReferenceFrame()
238 HEIGHT, in command()
254 HEIGHT, in command()
265 tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT); in buildReferenceFrame()
306 const vk::VkExtent3D extent = { WIDTH, HEIGHT, 1 }; in command()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalDrawAndClearTests.cpp337 HEIGHT = 256 enumerator
477 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetColorImageAndImageView()
491 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetDepthImageAndImageView()
547 HEIGHT, // deUint32 height in createFramebuffer()
603 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor()
610 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor()
617 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneDepth()
624 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageDepthClearPartial()
627 (w >= (WIDTH / 2) && h >= (HEIGHT / 2)) reference.setPixDepth(clearValueFinal.depth, w, h); in prepareReferenceImageDepthClearPartial()
636 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageColorClearPartial()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dcumsum.cc31 {Axis::HEIGHT, "args.src_tensor.Height()"}, in GetCumsumCode()
39 {Axis::WIDTH, "X"}, {Axis::HEIGHT, "Y"}, {Axis::DEPTH, "Z"}, in GetCumsumCode()
48 c += " int Y = linear_id % " + task_sizes[Axis::HEIGHT] + ";\n"; in GetCumsumCode()
49 c += " int D = linear_id / " + task_sizes[Axis::HEIGHT] + ";\n"; in GetCumsumCode()
53 c += " if (Y >= " + task_sizes[Axis::HEIGHT] + ") return;\n"; in GetCumsumCode()
89 const int height = axis_ == Axis::HEIGHT ? 1 : src_[0]->Height(); in GetGridSize()
/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 …]
/external/libaom/av1/encoder/
Dencoder_utils.h141 #define HIGHBD_BFP_WRAPPER(WIDTH, HEIGHT, BD) \ argument
143 BLOCK_##WIDTH##X##HEIGHT, aom_highbd_sad##WIDTH##x##HEIGHT##_bits##BD, \
144 aom_highbd_sad##WIDTH##x##HEIGHT##_avg_bits##BD, \
145 aom_highbd_##BD##_variance##WIDTH##x##HEIGHT, \
146 aom_highbd_##BD##_sub_pixel_variance##WIDTH##x##HEIGHT, \
147 aom_highbd_##BD##_sub_pixel_avg_variance##WIDTH##x##HEIGHT, \
148 aom_highbd_sad##WIDTH##x##HEIGHT##x4d_bits##BD, \
149 aom_highbd_sad##WIDTH##x##HEIGHT##x3d_bits##BD, \
150 aom_highbd_dist_wtd_sad##WIDTH##x##HEIGHT##_avg_bits##BD, \
151 aom_highbd_##BD##_dist_wtd_sub_pixel_avg_variance##WIDTH##x##HEIGHT)
[all …]

12345678910>>...19