Home
last modified time | relevance | path

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

12345

/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
Dgammatext.cpp29 #define HEIGHT 480 macro
40 return SkISize::Make(1024, HEIGHT); in onISize()
44 const SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; in drawGrad()
49 SkRect r = { 0, 0, SkIntToScalar(1024), SkIntToScalar(HEIGHT) }; in drawGrad()
74 SkScalar stopy = SkIntToScalar(HEIGHT); in onDraw()
Dimagemagnifier.cpp17 #define HEIGHT 500 macro
19 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
25 SkIntToScalar(HEIGHT / 2)), in DEF_SIMPLE_GM_BG()
33 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
Dimageresizetiled.cpp14 #define HEIGHT 480 macro
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { in DEF_SIMPLE_GM() argument
28 for (SkScalar y = 0; y < HEIGHT; y += tile_size) { in DEF_SIMPLE_GM()
/external/skia/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
Dgammatext.cpp29 #define HEIGHT 480 macro
38 return SkISize::Make(1024, HEIGHT); in onISize()
42 const SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; in drawGrad()
47 SkRect r = { 0, 0, SkIntToScalar(1024), SkIntToScalar(HEIGHT) }; in drawGrad()
72 SkScalar stopy = SkIntToScalar(HEIGHT); in onDraw()
Dimagemagnifier.cpp17 #define HEIGHT 500 macro
19 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
25 SkIntToScalar(HEIGHT / 2)), in DEF_SIMPLE_GM_BG()
33 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
Dimageresizetiled.cpp14 #define HEIGHT 480 macro
18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { in DEF_SIMPLE_GM() argument
28 for (SkScalar y = 0; y < HEIGHT; y += tile_size) { in DEF_SIMPLE_GM()
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java41 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/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 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + 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 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
230 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateVPTests.cpp107 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
132 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH * 2, (float)HEIGHT * 2, 0.0f, 0.0f }; in setDynamicStates()
133 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH, HEIGHT } }; in setDynamicStates()
143 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
179 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in setDynamicStates()
180 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in setDynamicStates()
190 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
282 const float halfHeight = (float)HEIGHT / 2; in iterate()
284 const deInt32 quarterHeight = HEIGHT / 4; in iterate()
322 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalDrawAndClearTests.cpp243 HEIGHT = 256 enumerator
320 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetColorImageAndImageView()
334 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetDepthImageAndImageView()
390 HEIGHT, // deUint32 height in createFramebuffer()
446 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor()
453 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneColor()
460 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageOneDepth()
467 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageDepthClearPartial()
470 (w >= (WIDTH / 2) && h >= (HEIGHT / 2)) reference.setPixDepth(clearValueFinal.depth, w, h); in prepareReferenceImageDepthClearPartial()
479 for (int h = 0; h < HEIGHT; ++h) in prepareReferenceImageColorClearPartial()
[all …]
/external/skia/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/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/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 …]
DglcSampleVariablesTests.cpp200 HEIGHT = 16, enumerator
292 …gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, m_samples, m_internalFormat, WIDTH, HEIGHT, … in iterate()
298 gl.texStorage2D(GL_TEXTURE_2D, 1, m_internalFormat, WIDTH, HEIGHT); in iterate()
312 gl.viewport(0, 0, WIDTH, HEIGHT); in iterate()
388 gl.renderbufferStorage(GL_RENDERBUFFER, m_internalFormat, width, HEIGHT); in iterate()
394 gl.viewport(0, 0, width, HEIGHT); in iterate()
461 tcu::TextureLevel results(m_texFormat, width, HEIGHT); in iterate()
490 for (int y = 0; y < HEIGHT; ++y) in iterate()
558 HEIGHT = 8, enumerator
607 gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, m_samples, GL_RGBA8, WIDTH, HEIGHT, in iterate()
[all …]
/external/skia/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/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/vulkancts/modules/vulkan/draw/
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/skia/samplecode/
DSampleHairline.cpp70 #define HEIGHT 460 macro
78 generate_pts(pts, N, WIDTH, HEIGHT); in line_proc()
94 generate_pts(pts, N, WIDTH, HEIGHT); in poly_proc()
117 generate_pts(pts, N, WIDTH, HEIGHT); in quad_proc()
141 generate_pts(pts, N, WIDTH, HEIGHT); in cube_proc()
202 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
206 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT), in onDrawContent()
/external/skqp/samplecode/
DSampleHairline.cpp70 #define HEIGHT 460 macro
78 generate_pts(pts, N, WIDTH, HEIGHT); in line_proc()
94 generate_pts(pts, N, WIDTH, HEIGHT); in poly_proc()
117 generate_pts(pts, N, WIDTH, HEIGHT); in quad_proc()
141 generate_pts(pts, N, WIDTH, HEIGHT); in cube_proc()
202 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
206 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT), in onDrawContent()
/external/deqp/external/openglcts/modules/gl/
Dgl4cES31CompatibilitySampleVariablesTests.cpp207 HEIGHT = 16, enumerator
290 …gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, m_samples, m_internalFormat, WIDTH, HEIGHT, … in iterate()
296 gl.texStorage2D(GL_TEXTURE_2D, 1, m_internalFormat, WIDTH, HEIGHT); in iterate()
310 gl.viewport(0, 0, WIDTH, HEIGHT); in iterate()
386 gl.renderbufferStorage(GL_RENDERBUFFER, m_internalFormat, width, HEIGHT); in iterate()
392 gl.viewport(0, 0, width, HEIGHT); in iterate()
459 tcu::TextureLevel textureLevel(m_texFormat, width, HEIGHT); in iterate()
488 for (int y = 0; y < HEIGHT; ++y) in iterate()
556 HEIGHT = 8, enumerator
608 gl.texStorage2DMultisample(GL_TEXTURE_2D_MULTISAMPLE, m_samples, GL_RGBA8, WIDTH, HEIGHT, in iterate()
[all …]
/external/python/cpython2/Demo/tkinter/guido/
Dbrownian.py10 HEIGHT = 300 variable
22 y = random.gauss(HEIGHT/2.0, SIGMA)
37 canvas = Canvas(root, width=WIDTH, height=HEIGHT)

12345