Home
last modified time | relevance | path

Searched refs:WIDTH (Results 1 – 25 of 144) sorted by relevance

123456

/external/skia/gm/
Dimagealphathreshold.cpp17 #define WIDTH 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 …]
Dxfermodeimagefilter.cpp16 #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 …]
Dimageblur.cpp13 #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
Dclip_error.cpp15 #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()
/external/skqp/gm/
Dimagealphathreshold.cpp17 #define WIDTH 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 …]
Dxfermodeimagefilter.cpp16 #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 …]
Dimageblur.cpp13 #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
Dclip_error.cpp15 #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()
/external/libvncserver/examples/
Dcamera.c46 #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/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java40 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/
Dsingle_step_syscall.c58 # 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()
Dsyscall_nt.c27 # 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()
Dunwind_vdso.c66 # 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/
Dturbo-visualizer.js26 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/
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 …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 …]
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 …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/skqp/bench/
DTileImageFilterBench.cpp14 #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/bench/
DTileImageFilterBench.cpp14 #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/
DCanvasStateTest.cpp64 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/skqp/tests/
DCanvasStateTest.cpp64 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/icu/icu4c/source/test/testdata/
DGraphemeBreakTest.txt55 ÷ 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/tensorflow/tensorflow/core/kernels/hexagon/
Dhexagon_graph_execution_test.cc71 const int WIDTH = 299; variable
130 const int64 pixel_count = WIDTH * HEIGHT * DEPTH; in LoadImage()
142 CHECK(fsize >= (WIDTH + 1) * WIDTH * 3 + header_size); in LoadImage()
169 if (src_pixel_index % (WIDTH + 1) == (WIDTH - 1)) { in LoadImage()
186 Tensor img_tensor(DT_FLOAT, {1, WIDTH, HEIGHT, DEPTH}); in BuildImageTensor()
187 CHECK_EQ(WIDTH * HEIGHT * DEPTH, img_floats.size()); in BuildImageTensor()
198 Tensor img_tensor(DT_QUINT8, {1, WIDTH, HEIGHT, DEPTH}); in BuildQuantizedImageTensor()
199 CHECK_EQ(WIDTH * HEIGHT * DEPTH, quantized_img.size()); in BuildQuantizedImageTensor()
410 inputs.emplace_back("Mul", Tensor(DT_FLOAT, {1, WIDTH, HEIGHT, DEPTH})); in TEST()
443 inputs.emplace_back("Mul", Tensor(DT_QUINT8, {1, WIDTH, HEIGHT, DEPTH})); in TEST()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawNegativeViewportHeightTests.cpp56 WIDTH = 256, enumerator
57 HEIGHT = WIDTH/2,
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 …ue, m_context.getDefaultAllocator(), VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_… in draw()
342 DE_ASSERT(HEIGHT == WIDTH/2); in generateReferenceImage()
344 …:TextureLevel> image (new tcu::TextureLevel(mapVkFormat(m_colorAttachmentFormat), WIDTH, HEIGHT)); in generateReferenceImage()
371 for (int x = WIDTH - y; x < p2 + HEIGHT; ++x) in generateReferenceImage()
[all …]
/external/skqp/samplecode/
DSampleHairline.cpp70 #define WIDTH 620 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.cpp70 #define WIDTH 620 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()

123456