Home
last modified time | relevance | path

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

12345

/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
28 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
36 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
39 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()
76 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()
32 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
26 for (SkScalar y = 0; y < HEIGHT; y += tile_size) { in DEF_SIMPLE_GM()
/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
28 int y = rand.nextULessThan(HEIGHT); in imageblurgm_draw()
36 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
39 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()
76 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()
32 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
26 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/libvncserver/examples/
Dcamera.c47 #define HEIGHT 480 macro
88 for(j=0;j<HEIGHT;++j) { in TakePicture()
90 buffer[(j*WIDTH+i)*BPP+0]=(i+j)*128/(WIDTH+HEIGHT); /* red */ in TakePicture()
92 buffer[(j*WIDTH+i)*BPP+2]=j*256/HEIGHT; /* blue */ in TakePicture()
106 line = now.tv_usec / (1000000/HEIGHT); in TakePicture()
107 if (line>HEIGHT) line=HEIGHT-1; in TakePicture()
117 fprintf(stderr,"%03d/%03d Picture (%03d fps)\r", line, HEIGHT, fps); in TakePicture()
135 rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,WIDTH,HEIGHT,8,3,BPP); in main()
139 server->frameBuffer=(char*)malloc(WIDTH*HEIGHT*BPP); in main()
149 rfbMarkRectAsModified(server,0,0,WIDTH,HEIGHT); in main()
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateGeneralTests.cpp78 vk::VkViewport viewport = { 0, 0, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
79 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
80 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
120 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
144 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, in iterate()
183 vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
184 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
185 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
230 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
254 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateVPTests.cpp119 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
144 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH * 2, (float)HEIGHT * 2, 0.0f, 0.0f }; in setDynamicStates()
145 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH, HEIGHT } }; in setDynamicStates()
155 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
191 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in setDynamicStates()
192 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in setDynamicStates()
202 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
293 const float halfHeight = (float)HEIGHT / 2; in iterate()
295 const deInt32 quarterHeight = HEIGHT / 4; in iterate()
347 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
[all …]
/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/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/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawNegativeViewportHeightTests.cpp57 HEIGHT = WIDTH/2, enumerator
119 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in NegativeViewportHeightTestInstance()
174 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in NegativeViewportHeightTestInstance()
203 { WIDTH, HEIGHT }, // width, height in NegativeViewportHeightTestInstance()
283 const VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in draw()
323 …ntext.getDefaultAllocator(), VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in draw()
342 DE_ASSERT(HEIGHT == WIDTH/2); in generateReferenceImage()
344 …:TextureLevel> image (new tcu::TextureLevel(mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT)); in generateReferenceImage()
352 const int p1 = static_cast<int>(static_cast<float>(HEIGHT) * (1.0f - 0.6f) / 2.0f); in generateReferenceImage()
353 const int p2 = p1 + static_cast<int>(static_cast<float>(HEIGHT) * (2.0f * 0.6f) / 2.0f); in generateReferenceImage()
[all …]
/external/skia/tests/
DCanvasStateTest.cpp65 const int HEIGHT = 400; in DEF_TEST() local
70 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in DEF_TEST()
103 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST()
159 const int HEIGHT = 400; in DEF_TEST() local
162 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST()
210 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
317 const int HEIGHT = 100; in DEF_TEST() local
322 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
326 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
334 REPORTER_ASSERT(reporter, devClip.height() == HEIGHT); in DEF_TEST()
/external/skqp/tests/
DCanvasStateTest.cpp65 const int HEIGHT = 400; in DEF_TEST() local
70 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in DEF_TEST()
103 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST()
159 const int HEIGHT = 400; in DEF_TEST() local
162 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST()
210 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
317 const int HEIGHT = 100; in DEF_TEST() local
322 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
326 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
334 REPORTER_ASSERT(reporter, devClip.height() == HEIGHT); in DEF_TEST()
/external/skqp/samplecode/
DSampleHairline.cpp71 #define HEIGHT 460 macro
79 generate_pts(pts, N, WIDTH, HEIGHT); in line_proc()
95 generate_pts(pts, N, WIDTH, HEIGHT); in poly_proc()
118 generate_pts(pts, N, WIDTH, HEIGHT); in quad_proc()
142 generate_pts(pts, N, WIDTH, HEIGHT); in cube_proc()
204 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
208 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT), in onDrawContent()
/external/skia/samplecode/
DSampleHairline.cpp71 #define HEIGHT 460 macro
79 generate_pts(pts, N, WIDTH, HEIGHT); in line_proc()
95 generate_pts(pts, N, WIDTH, HEIGHT); in poly_proc()
118 generate_pts(pts, N, WIDTH, HEIGHT); in quad_proc()
142 generate_pts(pts, N, WIDTH, HEIGHT); in cube_proc()
204 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
208 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/deqp/external/openglcts/modules/common/
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/python/cpython2/Demo/tkinter/guido/
Dbrownian2.py9 HEIGHT = 300 variable
22 y = random.gauss(HEIGHT/2.0, SIGMA)
42 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
Dbrownian.py10 HEIGHT = 300 variable
22 y = random.gauss(HEIGHT/2.0, SIGMA)
37 canvas = Canvas(root, width=WIDTH, height=HEIGHT)

12345