/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 | 14 #define WIDTH 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 …]
|
D | xfermodeimagefilter.cpp | 16 #define WIDTH 600 macro 34 return SkISize::Make(WIDTH, HEIGHT); in onISize() 90 if (x + fBitmap.width() > WIDTH) { in onDraw() 100 if (x + fBitmap.width() > WIDTH) { in onDraw() 108 if (x + fBitmap.width() > WIDTH) { in onDraw() 129 if (x + fBitmap.width() > WIDTH) { in onDraw() 140 if (x + fBitmap.width() > WIDTH) { in onDraw() 164 if (x + fBitmap.width() > WIDTH) { in onDraw() 176 if (x + fBitmap.width() > WIDTH) { in onDraw() 184 if (x + fBitmap.width() > WIDTH) { in onDraw() [all …]
|
D | imageblur.cpp | 13 #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 | clip_error.cpp | 15 #define WIDTH 800 macro 39 SkISize onISize() override { return SkISize::Make(WIDTH, HEIGHT); } in onISize() 69 canvas->clipRect(SkRect::MakeLTRB(0, 0, WIDTH, 256)); in onDraw() 75 canvas->clipRect(SkRect::MakeLTRB(0, 256, WIDTH, 510)); in onDraw()
|
D | imagemagnifier.cpp | 16 #define WIDTH 500 macro 19 DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument 24 SkIntToScalar(WIDTH / 2), in DEF_SIMPLE_GM_BG() 31 int x = rand.nextULessThan(WIDTH); in DEF_SIMPLE_GM_BG()
|
D | imageresizetiled.cpp | 13 #define WIDTH 640 macro 18 DEF_SIMPLE_GM(imageresizetiled, canvas, WIDTH, HEIGHT) { in DEF_SIMPLE_GM() argument 27 for (SkScalar x = 0; x < WIDTH; x += tile_size) { in DEF_SIMPLE_GM()
|
D | imageblur2.cpp | 15 #define WIDTH 500 macro 46 return SkISize::Make(WIDTH, HEIGHT); in onISize() 52 SkScalar dx = WIDTH / sigmaCount; in onDraw()
|
D | complexclip_blur_tiled.cpp | 14 #define WIDTH 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/ |
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/linux-kselftest/tools/testing/selftests/x86/ |
D | single_step_syscall.c | 58 # define WIDTH "q" macro 62 # define WIDTH "l" macro 69 asm volatile ("pushf" WIDTH "\n\tpop" WIDTH " %0" : "=rm" (eflags)); in get_eflags() 75 asm volatile ("push" WIDTH " %0\n\tpopf" WIDTH in set_eflags() 135 asm volatile ("pushf" WIDTH "\n\t" in main() 136 "pop" WIDTH " %%r11\n\t" in main()
|
D | syscall_nt.c | 27 # define WIDTH "q" macro 29 # define WIDTH "l" macro 37 asm volatile ("pushf" WIDTH "\n\tpop" WIDTH " %0" : "=rm" (eflags)); in get_eflags() 43 asm volatile ("push" WIDTH " %0\n\tpopf" WIDTH in set_eflags()
|
D | unwind_vdso.c | 66 # define WIDTH "q" macro 68 # define WIDTH "l" macro 74 asm volatile ("pushf" WIDTH "\n\tpop" WIDTH " %0" : "=rm" (eflags)); in get_eflags() 80 asm volatile ("push" WIDTH " %0\n\tpopf" WIDTH in set_eflags()
|
/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 | 78 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in iterate() 254 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate() [all …]
|
D | vktDynamicStateVPTests.cpp | 119 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… 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 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in buildReferenceFrame() 292 const float halfWidth = (float)WIDTH / 2; in iterate() 294 const deInt32 quarterWidth = WIDTH / 4; in iterate() 347 …tcu::Texture2D referenceFrame(vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5 + WIDTH), (int)(… in iterate() [all …]
|
/external/skia/bench/ |
D | TileImageFilterBench.cpp | 14 #define WIDTH 512 macro 41 SkRect::MakeWH(WIDTH, HEIGHT), in onDraw() 47 for (int x = 0; x < WIDTH; x += 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/tests/ |
D | CanvasStateTest.cpp | 64 const int WIDTH = 400; in DEF_TEST() local 69 SkIntToScalar(WIDTH-(2*SPACER)), in DEF_TEST() 103 bitmaps[j].allocPixels(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST() 158 const int WIDTH = 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() 316 const int WIDTH = 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() 333 REPORTER_ASSERT(reporter, devClip.width() == WIDTH); in DEF_TEST()
|
/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawNegativeViewportHeightTests.cpp | 55 WIDTH = 256, enumerator 56 HEIGHT = WIDTH/2, 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 …ue, m_context.getDefaultAllocator(), VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_… in draw() 341 DE_ASSERT(HEIGHT == WIDTH/2); in generateReferenceImage() 343 …:TextureLevel> image (new tcu::TextureLevel(mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT)); in generateReferenceImage() 370 for (int x = WIDTH - y; x < p2 + HEIGHT; ++x) in generateReferenceImage() [all …]
|
/external/icu/icu4c/source/test/testdata/ |
D | GraphemeBreakTest.txt | 55 ÷ 0020 × 200D ÷ # ÷ [0.2] SPACE (Other) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.3] 56 … ÷ [0.2] SPACE (Other) × [9.0] COMBINING DIAERESIS (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.… 95 ÷ 000D ÷ 200D ÷ # ÷ [0.2] <CARRIAGE RETURN (CR)> (CR) ÷ [4.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.3] 96 …RIAGE RETURN (CR)> (CR) ÷ [4.0] COMBINING DIAERESIS (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.… 135 ÷ 000A ÷ 200D ÷ # ÷ [0.2] <LINE FEED (LF)> (LF) ÷ [4.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.3] 136 …] <LINE FEED (LF)> (LF) ÷ [4.0] COMBINING DIAERESIS (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.… 175 ÷ 0001 ÷ 200D ÷ # ÷ [0.2] <START OF HEADING> (Control) ÷ [4.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.3] 176 …T OF HEADING> (Control) ÷ [4.0] COMBINING DIAERESIS (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.… 215 ÷ 0300 × 200D ÷ # ÷ [0.2] COMBINING GRAVE ACCENT (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.3] 216 …G GRAVE ACCENT (Extend) × [9.0] COMBINING DIAERESIS (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ) ÷ [0.… [all …]
|
/external/skia/samplecode/ |
D | SampleHairline.cpp | 69 #define WIDTH 620 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/syslinux/com32/menu/ |
D | menumain.c | 58 #define WIDTH (cm->mparm[P_WIDTH]) macro 157 fputs(pad_line("", 0, WIDTH - 2 * MARGIN - 4), stdout); in draw_row() 162 WIDTH - 2 * MARGIN - 4); in draw_row() 215 char user_passwd[WIDTH], *p; in ask_passwd() 222 for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++) in ask_passwd() 226 for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++) in ask_passwd() 230 for (x = 2; x <= WIDTH - 2 * PASSWD_MARGIN - 1; x++) in ask_passwd() 234 PASSWD_ROW, (WIDTH - (strlen(cm->messages[MSG_PASSPROMPT]) + 2)) / 2, in ask_passwd() 276 (p - user_passwd) < WIDTH - 2 * PASSWD_MARGIN - 5) { in ask_passwd() 294 memset(user_passwd, 0, WIDTH); in ask_passwd() [all …]
|
/external/python/cpython2/Demo/tkinter/guido/ |
D | brownian.py | 9 WIDTH = 400 variable 21 x = random.gauss(WIDTH/2.0, SIGMA) 37 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
|
D | brownian2.py | 8 WIDTH = 400 variable 21 x = random.gauss(WIDTH/2.0, SIGMA) 42 canvas = Canvas(root, width=WIDTH, height=HEIGHT)
|
/external/netperf/doc/examples/ |
D | bloat.sh | 78 WIDTH=$LENGTH 79 if [ $WIDTH -lt 800 ] 81 WIDTH=800 84 SIZE="-w $WIDTH -h 400"
|