Home
last modified time | relevance | path

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

1234

/external/skia/gm/
Dimagealphathreshold.cpp15 #define HEIGHT 500 macro
20 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
22 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
24 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
26 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
31 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
32 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
59 return SkISize::Make(WIDTH, HEIGHT); in onISize()
65 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw()
70 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
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()
Dgammatext.cpp34 #define HEIGHT 480 macro
45 return SkISize::Make(1024, HEIGHT); in onISize()
49 const SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; in drawGrad()
54 SkRect r = { 0, 0, SkIntToScalar(1024), SkIntToScalar(HEIGHT) }; in drawGrad()
82 SkScalar stopy = SkIntToScalar(HEIGHT); in onDraw()
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()
Dimageblur2.cpp16 #define HEIGHT 500 macro
46 return SkISize::Make(WIDTH, HEIGHT); in onISize()
53 SkScalar dy = HEIGHT / sigmaCount; in onDraw()
Dcomplexclip_blur_tiled.cpp15 #define HEIGHT 512 macro
30 return SkISize::Make(WIDTH, HEIGHT); in onISize()
50 SkRect rect = SkRect::MakeWH(WIDTH, HEIGHT); in onDraw()
/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 …]
DvktDynamicStateRSTests.cpp66 HEIGHT = 128 enumerator
130 const vk::VkExtent3D imageExtent = { WIDTH, HEIGHT, 1 }; in initialize()
240 const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, attachments, WIDTH, HEIGHT, 1); in initialize()
307 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPassWithClearColor()
408 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
446 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
471 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
515 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
552 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
577 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(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.cpp56 HEIGHT = WIDTH/2, enumerator
118 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in NegativeViewportHeightTestInstance()
173 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in NegativeViewportHeightTestInstance()
202 { WIDTH, HEIGHT }, // width, height in NegativeViewportHeightTestInstance()
282 const VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in draw()
322 …ntext.getDefaultAllocator(), VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_ASPECT_C… in draw()
341 DE_ASSERT(HEIGHT == WIDTH/2); in generateReferenceImage()
343 …:TextureLevel> image (new tcu::TextureLevel(mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT)); in generateReferenceImage()
351 const int p1 = static_cast<int>(static_cast<float>(HEIGHT) * (1.0f - 0.6f) / 2.0f); in generateReferenceImage()
352 const int p2 = p1 + static_cast<int>(static_cast<float>(HEIGHT) * (2.0f * 0.6f) / 2.0f); in generateReferenceImage()
[all …]
DvktDrawBaseClass.cpp50 const vk::VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in initialize()
92 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in initialize()
161 viewport.height = static_cast<float>(HEIGHT); in initPipeline()
169 scissor.extent.height = HEIGHT; in initPipeline()
210 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPass()
/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/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()
203 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
207 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT), in onDrawContent()
/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)
Dbrownian2.py9 HEIGHT = 300 variable
22 y = random.gauss(HEIGHT/2.0, SIGMA)
42 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
/external/mesa3d/src/gallium/tests/trivial/
Dtri.c29 #define HEIGHT 300 macro
136 tmplt.height0 = HEIGHT; in init_prog()
166 p->framebuffer.height = HEIGHT; in init_prog()
176 float half_height = (float)HEIGHT / 2.0f; in init_prog()
182 bias = (float)HEIGHT; in init_prog()
/external/mesa3d/src/gallium/tests/graw/
Dclear.c19 static const int HEIGHT = 300; variable
72 templat.height0 = HEIGHT; in init()
96 fb.height = HEIGHT; in init()
Dtri-gs.c23 static const int HEIGHT = 300; variable
206 templat.height0 = HEIGHT; in init()
230 fb.height = HEIGHT; in init()
264 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
Dtri-large.c14 static const int HEIGHT = 4*2048; variable
121 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE)) in init()
140 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 1000); in init()
Dtri.c11 static const int HEIGHT = 300; variable
118 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE)) in init()
137 graw_util_viewport(&info, 0, 0, WIDTH, HEIGHT, 30, 1000); in init()
Dshader-leak.c27 static const int HEIGHT = 300; variable
199 templat.height0 = HEIGHT; in init()
225 fb.height = HEIGHT; in init()
259 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()

1234