Home
last modified time | relevance | path

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

123

/external/skia/gm/
Dimagealphathreshold.cpp14 #define HEIGHT 500 macro
21 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
23 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
25 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
27 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
32 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
33 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()
93 return SkISize::Make(WIDTH, HEIGHT); in onISize()
[all …]
Dimagemagnifier.cpp13 #define HEIGHT 500 macro
15 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
21 SkIntToScalar(HEIGHT / 2)), in DEF_SIMPLE_GM_BG()
28 int y = rand.nextULessThan(HEIGHT); in DEF_SIMPLE_GM_BG()
Dimageblur.cpp13 #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.cpp38 #define HEIGHT 480 macro
49 return SkISize::Make(1024, HEIGHT); in onISize()
53 SkPoint pts[] = { { 0, 0 }, { 0, SkIntToScalar(HEIGHT) } }; in drawGrad()
59 SkRect r = { 0, 0, SkIntToScalar(1024), SkIntToScalar(HEIGHT) }; in drawGrad()
87 SkScalar stopy = SkIntToScalar(HEIGHT); in onDraw()
Dimageresizetiled.cpp13 #define HEIGHT 480 macro
17 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { in DEF_SIMPLE_GM() argument
27 for (SkScalar y = 0; y < HEIGHT; y += tile_size) { in DEF_SIMPLE_GM()
Dimageblur2.cpp15 #define HEIGHT 500 macro
45 return SkISize::Make(WIDTH, HEIGHT); in onISize()
52 SkScalar dy = HEIGHT / sigmaCount; in onDraw()
Dcomplexclip_blur_tiled.cpp14 #define HEIGHT 512 macro
29 return SkISize::Make(WIDTH, HEIGHT); in onISize()
53 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.cpp75 vk::VkViewport viewport = { 0, 0, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
76 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
77 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
117 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
141 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, in iterate()
180 vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
181 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
182 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
227 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
251 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateVPTests.cpp116 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
141 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH * 2, (float)HEIGHT * 2, 0.0f, 0.0f }; in setDynamicStates()
142 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH, HEIGHT } }; in setDynamicStates()
152 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
188 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in setDynamicStates()
189 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in setDynamicStates()
199 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in buildReferenceFrame()
290 const float halfHeight = (float)HEIGHT / 2; in iterate()
292 const deInt32 quarterHeight = HEIGHT / 4; in iterate()
344 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
[all …]
DvktDynamicStateRSTests.cpp63 HEIGHT = 128 enumerator
127 const vk::VkExtent3D imageExtent = { WIDTH, HEIGHT, 1 }; in initialize()
237 const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, attachments, WIDTH, HEIGHT, 1); in initialize()
313 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPassWithClearColor()
414 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
452 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
477 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
521 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
558 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
583 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateDSTests.cpp71 HEIGHT = 128 enumerator
137 const vk::VkExtent3D imageExtent = { WIDTH, HEIGHT, 1 }; in initialize()
266 const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, attachments, WIDTH, HEIGHT, 1); in initialize()
338 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPassWithClearColor()
454 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
491 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
516 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
606 setDynamicViewportState(WIDTH, HEIGHT); in iterate()
643 … referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(0.5 + HEIGHT)); in iterate()
664 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
42 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw()
48 for (int y = 0; y < HEIGHT; y += fTileSize) { in onDraw()
53 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
58 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
/external/skia/tests/
DCanvasStateTest.cpp63 const int HEIGHT = 400; in DEF_TEST() local
68 SkIntToScalar((HEIGHT-(2*SPACER)) / 7)); in DEF_TEST()
101 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST()
157 const int HEIGHT = 400; in DEF_TEST() local
160 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST()
208 bitmaps[i].allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
322 const int HEIGHT = 100; in DEF_TEST() local
327 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
331 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
347 REPORTER_ASSERT(reporter, clipStackBounds.height() == HEIGHT); in DEF_TEST()
/external/skia/samplecode/
DSampleHairline.cpp75 #define HEIGHT 460 macro
83 generate_pts(pts, N, WIDTH, HEIGHT); in line_proc()
99 generate_pts(pts, N, WIDTH, HEIGHT); in poly_proc()
122 generate_pts(pts, N, WIDTH, HEIGHT); in quad_proc()
146 generate_pts(pts, N, WIDTH, HEIGHT); in cube_proc()
208 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
212 bm2.installPixels(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT), in onDrawContent()
/external/opencv3/samples/cpp/tutorial_code/ml/non_linear_svms/
Dnon_linear_svms.cpp30 const int WIDTH = 512, HEIGHT = 512; in main() local
31 Mat I = Mat::zeros(HEIGHT, WIDTH, CV_8UC3); in main()
50 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
59 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
71 rng.fill(c, RNG::UNIFORM, Scalar(1), Scalar(HEIGHT)); in main()
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawBaseClass.cpp50 const vk::VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in initialize()
92 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in initialize()
164 viewport.height = static_cast<float>(HEIGHT); in initPipeline()
172 scissor.extent.height = HEIGHT; in initPipeline()
213 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPass()
/external/mesa3d/src/gallium/tests/graw/
Dclear.c19 static const int HEIGHT = 300; variable
71 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()
231 fb.height = HEIGHT; in init()
264 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
Dtri.c11 static const int HEIGHT = 300; variable
117 if (!graw_util_create_window(&info, WIDTH, HEIGHT, 1, FALSE)) in init()
135 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()
226 fb.height = HEIGHT; in init()
259 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
Dtri-instanced.c26 static const int HEIGHT = 300; variable
257 templat.height0 = HEIGHT; in init()
282 fb.height = HEIGHT; in init()
315 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
/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()
Dquad-tex.c29 #define HEIGHT 300 macro
145 tmplt.height0 = HEIGHT; in init_prog()
225 p->framebuffer.height = HEIGHT; in init_prog()
235 float half_height = (float)HEIGHT / 2.0f; in init_prog()
241 bias = (float)HEIGHT; in init_prog()

123