/external/libvncserver/examples/ |
D | camera.c | 46 #define WIDTH 640 macro 89 for(i=0;i<WIDTH;++i) { in TakePicture() 90 buffer[(j*WIDTH+i)*BPP+0]=(i+j)*128/(WIDTH+HEIGHT); /* red */ in TakePicture() 91 buffer[(j*WIDTH+i)*BPP+1]=i*128/WIDTH; /* green */ in TakePicture() 92 buffer[(j*WIDTH+i)*BPP+2]=j*256/HEIGHT; /* blue */ in TakePicture() 94 buffer[j*WIDTH*BPP+0]=0xff; in TakePicture() 95 buffer[j*WIDTH*BPP+1]=0xff; in TakePicture() 96 buffer[j*WIDTH*BPP+2]=0xff; in TakePicture() 108 memset(&buffer[(WIDTH * BPP) * line], 0, (WIDTH * BPP)); in TakePicture() 135 rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,WIDTH,HEIGHT,8,3,BPP); in main() [all …]
|
/external/skia/gm/ |
D | imagealphathreshold.cpp | 13 #define WIDTH 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 …]
|
D | imagemagnifier.cpp | 12 #define WIDTH 500 macro 15 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 20 SkIntToScalar(WIDTH / 2), in DEF_SIMPLE_GM_BG() 27 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
|
D | xfermodeimagefilter.cpp | 16 #define WIDTH 600 macro 34 return SkISize::Make(WIDTH, HEIGHT); in onISize() 95 if (x + fBitmap.width() > WIDTH) { in onDraw() 106 if (x + fBitmap.width() > WIDTH) { in onDraw() 115 if (x + fBitmap.width() > WIDTH) { in onDraw() 133 if (x + fBitmap.width() > WIDTH) { in onDraw() 143 if (x + fBitmap.width() > WIDTH) { in onDraw() 167 if (x + fBitmap.width() > WIDTH) { in onDraw() 181 if (x + fBitmap.width() > WIDTH) { in onDraw() 190 if (x + fBitmap.width() > WIDTH) { in onDraw()
|
D | imageblur.cpp | 12 #define WIDTH 500 macro 27 int x = rand.nextULessThan(WIDTH); 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
|
D | imageresizetiled.cpp | 12 #define WIDTH 640 macro 17 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { in DEF_SIMPLE_GM() argument 28 for (SkScalar x = 0; x < WIDTH; x += tile_size) { in DEF_SIMPLE_GM()
|
D | imageblur2.cpp | 14 #define WIDTH 500 macro 45 return SkISize::Make(WIDTH, HEIGHT); in onISize() 51 SkScalar dx = WIDTH / sigmaCount; in onDraw()
|
D | complexclip_blur_tiled.cpp | 13 #define WIDTH 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/ |
D | GlRectDrawerTest.java | 40 private static final int WIDTH = 16; field in GlRectDrawerTest 100 eglBase.createPbufferSurface(WIDTH, HEIGHT); in testRgbRendering() 104 final ByteBuffer rgbPlane = ByteBuffer.allocateDirect(WIDTH * HEIGHT * 3); in testRgbRendering() 112 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGB, WIDTH, 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/v8/tools/turbolizer/ |
D | turbo-visualizer.js | 26 d3.select("#" + SOURCE_PANE_ID).style(WIDTH, "30%"); 27 d3.select("#" + INTERMEDIATE_PANE_ID).style(WIDTH, "40%"); 28 d3.select("#" + GENERATED_PANE_ID).style(WIDTH, "30%"); 30 d3.select("#" + SOURCE_PANE_ID).style(WIDTH, "50%"); 31 d3.select("#" + INTERMEDIATE_PANE_ID).style(WIDTH, "50%"); 32 d3.select("#" + GENERATED_PANE_ID).style(WIDTH, "0%"); 36 d3.select("#" + SOURCE_PANE_ID).style(WIDTH, "0%"); 37 d3.select("#" + INTERMEDIATE_PANE_ID).style(WIDTH, "50%"); 38 d3.select("#" + GENERATED_PANE_ID).style(WIDTH, "50%"); 40 d3.select("#" + SOURCE_PANE_ID).style(WIDTH, "0%"); [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateGeneralTests.cpp | 75 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in iterate() 251 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate() [all …]
|
D | vktDynamicStateVPTests.cpp | 116 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in buildReferenceFrame() 289 const float halfWidth = (float)WIDTH / 2; in iterate() 291 const deInt32 quarterWidth = WIDTH / 4; in iterate() 344 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in iterate() [all …]
|
D | vktDynamicStateRSTests.cpp | 62 WIDTH = 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in iterate() 583 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate() [all …]
|
/external/skia/bench/ |
D | TileImageFilterBench.cpp | 14 #define WIDTH 512 macro 42 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw() 49 for (int x = 0; x < WIDTH; x += 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/ |
D | CanvasStateTest.cpp | 62 const int WIDTH = 400; in DEF_TEST() local 67 SkIntToScalar(WIDTH-(2*SPACER)), in DEF_TEST() 101 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST() 156 const int WIDTH = 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() 321 const int WIDTH = 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() 346 REPORTER_ASSERT(reporter, clipStackBounds.width() == WIDTH); in DEF_TEST()
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | IsometricTileTest.java | 34 static final int WIDTH = 4; field in IsometricTileTest 36 static final int TILES_PER_LAYER = WIDTH * HEIGHT; 40 static final int BOUND_X = HEIGHT * TILE_WIDTH / 2 + WIDTH * TILE_WIDTH / 2; 41 static final int BOUND_Y = HEIGHT * TILE_HEIGHT_DIAMOND / 2 + WIDTH * TILE_HEIGHT_DIAMOND / 2; 68 for (int x = 0; x < WIDTH; x++) { in create()
|
D | TileTest.java | 33 static final int WIDTH = 15; field in TileTest 35 static final int TILES_PER_LAYER = WIDTH * HEIGHT; 47 cam.position.set(WIDTH * 32 / 2, HEIGHT * 32 / 2, 0); in create() 59 for (int x = 0; x < WIDTH; x++) { in create()
|
/external/skia/samplecode/ |
D | SampleHairline.cpp | 74 #define WIDTH 620 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/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/superkoalio/ |
D | SuperKoalio.java | 50 static float WIDTH; field in SuperKoalio.Koala 102 Koala.WIDTH = 1 / 16f * regions[0].getRegionWidth(); in create() 200 koalaRect.set(koala.position.x, koala.position.y, Koala.WIDTH, Koala.HEIGHT); in updateKoala() 203 startX = endX = (int)(koala.position.x + Koala.WIDTH + koala.velocity.x); in updateKoala() 227 endX = (int)(koala.position.x + Koala.WIDTH); in updateKoala() 310 batch.draw(frame, koala.position.x, koala.position.y, Koala.WIDTH, Koala.HEIGHT); in renderKoala() 312 batch.draw(frame, koala.position.x + Koala.WIDTH, koala.position.y, -Koala.WIDTH, Koala.HEIGHT); in renderKoala() 322 debugRenderer.rect(koala.position.x, koala.position.y, Koala.WIDTH, Koala.HEIGHT); in renderDebug()
|
/external/netperf/doc/examples/ |
D | bloat.sh | 78 WIDTH=$LENGTH 79 if [ $WIDTH -lt 800 ] 81 WIDTH=800 84 SIZE="-w $WIDTH -h 400"
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawBaseClass.cpp | 50 const vk::VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in initialize() 92 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in initialize() 163 viewport.width = static_cast<float>(WIDTH); in initPipeline() 171 scissor.extent.width = WIDTH; in initPipeline() 213 const vk::VkRect2D renderArea = { { 0, 0 }, { WIDTH, HEIGHT } }; in beginRenderPass()
|
/external/mesa3d/src/gallium/tests/graw/ |
D | clear.c | 18 static const int WIDTH = 300; variable 70 templat.width0 = WIDTH; in init() 95 fb.width = WIDTH; in init()
|
D | tri.c | 10 static const int WIDTH = 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()
|
D | tri-gs.c | 22 static const int WIDTH = 300; variable 205 templat.width0 = WIDTH; in init() 230 fb.width = WIDTH; in init() 264 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
|
D | shader-leak.c | 26 static const int WIDTH = 300; variable 198 templat.width0 = WIDTH; in init() 225 fb.width = WIDTH; in init() 259 set_viewport(0, 0, WIDTH, HEIGHT, 30, 1000); in init()
|