Home
last modified time | relevance | path

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

123456789

/third_party/skia/gm/
Dimagealphathreshold.cpp30 #define WIDTH 500 macro
36 canvas->drawRect(SkRect::MakeXYWH(0, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
38 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, 0, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
40 canvas->drawRect(SkRect::MakeXYWH(0, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
42 canvas->drawRect(SkRect::MakeXYWH(WIDTH / 2, HEIGHT / 2, WIDTH / 2, HEIGHT / 2), rectPaint); in draw_rects()
47 rects[0] = SkIRect::MakeXYWH(0, 150, WIDTH, HEIGHT - 300); in create_filter_paint()
48 rects[1] = SkIRect::MakeXYWH(150, 0, WIDTH - 300, HEIGHT); in create_filter_paint()
76 return SkISize::Make(WIDTH, HEIGHT); in onISize()
82 matrix.setTranslate(WIDTH * .1f, HEIGHT * .1f); in onDraw()
87 SkIRect cropRect = SkIRect::MakeLTRB(100, 100, WIDTH - 100, HEIGHT - 100); in onDraw()
[all …]
Dxfermodeimagefilter.cpp27 #define WIDTH 600 macro
45 return SkISize::Make(WIDTH, HEIGHT); in onISize()
97 if (x + fBitmap.width() > WIDTH) { in onDraw()
106 if (x + fBitmap.width() > WIDTH) { in onDraw()
114 if (x + fBitmap.width() > WIDTH) { in onDraw()
129 if (x + fBitmap.width() > WIDTH) { in onDraw()
138 if (x + fBitmap.width() > WIDTH) { in onDraw()
159 if (x + fBitmap.width() > WIDTH) { in onDraw()
170 if (x + fBitmap.width() > WIDTH) { in onDraw()
178 if (x + fBitmap.width() > WIDTH) { in onDraw()
[all …]
Dimageblur.cpp20 #define WIDTH 500 macro
33 int x = rand.nextULessThan(WIDTH); in imageblurgm_draw()
41 DEF_SIMPLE_GM_BG(imageblur, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
44 DEF_SIMPLE_GM_BG(imageblur_large, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { in DEF_SIMPLE_GM_BG() argument
/third_party/ffmpeg/libavcodec/tests/
Dmotion.c39 #define WIDTH 64 macro
42 static uint8_t img1[WIDTH * HEIGHT];
43 static uint8_t img2[WIDTH * HEIGHT];
77 fill_random(img1, WIDTH * HEIGHT); in test_motion()
78 fill_random(img2, WIDTH * HEIGHT); in test_motion()
81 for(x=0;x<WIDTH-17;x++) { in test_motion()
82 ptr = img2 + y * WIDTH + x; in test_motion()
83 d1 = test_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
84 d2 = ref_func(NULL, img1, ptr, WIDTH, 8); in test_motion()
98 for(x=0;x<WIDTH-17;x++) { in test_motion()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawScissorTests.cpp51 WIDTH = 256, enumerator
131 float scaleWidth = 2.0f / (float)WIDTH; in getVertices()
231 TestParams() : framebufferSize({WIDTH,HEIGHT}) {} in TestParams()
396 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in iterate()
465 const VkViewport viewport = makeViewport(WIDTH, HEIGHT); in iterate()
558 ….getDefaultAllocator(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, zeroOffset, WIDTH, HEIGHT, VK_IMAGE_… in iterate()
563 refImage.setStorage(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM), WIDTH, HEIGHT); in iterate()
611 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
613 …params.commands.push_back(TestCommandSp(new QuadDrawTestCommand(WIDTH - 80, HEIGHT - 100, 30, 40, … in createTests()
623 params.staticScissors.push_back(makeRect2D(30, 40, WIDTH - 60, HEIGHT - 80)); in createTests()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAMDHSAKernelDescriptor.h29 #define AMDHSA_BITS_ENUM_ENTRY(NAME, SHIFT, WIDTH) \ argument
31 NAME ## _WIDTH = (WIDTH), \
32 NAME = (((1 << (WIDTH)) - 1) << (SHIFT))
75 #define COMPUTE_PGM_RSRC1(NAME, SHIFT, WIDTH) \ argument
76 AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC1_ ## NAME, SHIFT, WIDTH)
100 #define COMPUTE_PGM_RSRC2(NAME, SHIFT, WIDTH) \ argument
101 AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC2_ ## NAME, SHIFT, WIDTH)
126 #define COMPUTE_PGM_RSRC3(NAME, SHIFT, WIDTH) \ argument
127 AMDHSA_BITS_ENUM_ENTRY(COMPUTE_PGM_RSRC3_ ## NAME, SHIFT, WIDTH)
135 #define KERNEL_CODE_PROPERTY(NAME, SHIFT, WIDTH) \ argument
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/ctype/
Dwcswidth.c22 const int WIDTH = 2; variable
32 int result = wcswidth(L"abc", WIDTH); in wcswidth_0100()
33 if (result != WIDTH) { in wcswidth_0100()
45 int result = wcswidth(L"ab\t", WIDTH); in wcswidth_0200()
46 if (result != WIDTH) { in wcswidth_0200()
58 int result = wcswidth(L"a\tb", WIDTH); in wcswidth_0300()
/third_party/ffmpeg/tests/checkasm/
Dvf_threshold.c25 #define WIDTH 256 macro
44 int w = WIDTH; in check_threshold()
62 randomize_buffers(in, WIDTH); in check_threshold()
63 randomize_buffers(threshold, WIDTH); in check_threshold()
64 randomize_buffers(min, WIDTH); in check_threshold()
65 randomize_buffers(max, WIDTH); in check_threshold()
73 if (memcmp(out_ref, out_new, WIDTH)) in check_threshold()
Dutvideodsp.c29 #define WIDTH 240 macro
31 #define WIDTH_PADDED (WIDTH + 16) /* padded to 32 */
40 for (w = 0; w < WIDTH; w++) \
51 buf1 + h*WIDTH_PADDED, WIDTH *s)) \
76 call_ref(src_r0, src_g0, src_b0, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT);\
77 call_new(src_r1, src_g1, src_b1, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT);\
81 bench_new(src_r1, src_g1, src_b1, WIDTH_PADDED, WIDTH_PADDED, WIDTH_PADDED, WIDTH, HEIGHT)
Dvf_blend.c28 #define WIDTH 256 macro
31 #define SIZE_PER_UNIT (WIDTH * HEIGHT)
38 for (j = 0; j < WIDTH; j++) { \
39 top1[i * WIDTH + j] = \
40 top2[i * WIDTH + j] = i; \
41 bot1[i * WIDTH + j] = \
42 bot2[i * WIDTH + j] = j; \
71 w = WIDTH / depth; \
Dvf_gblur.c24 #define WIDTH 256 macro
26 #define PIXELS (WIDTH * HEIGHT)
44 call_ref(dst_ref, WIDTH, HEIGHT, steps, nu, bscale); in check_horiz_slice()
45 call_new(dst_new, WIDTH, HEIGHT, steps, nu, bscale); in check_horiz_slice()
49 bench_new(dst_new, WIDTH, HEIGHT, 1, nu, bscale); in check_horiz_slice()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateGeneralTests.cpp81 vk::VkViewport viewport = { 0, 0, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
82 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
83 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
109 …vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + st… in iterate()
133 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, in iterate()
173 vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in iterate()
174 vk::VkRect2D scissor_1 = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
175 vk::VkRect2D scissor_2 = { { WIDTH / 2, HEIGHT / 2 }, { WIDTH / 2, HEIGHT / 2 } }; in iterate()
206 …vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + st… in iterate()
230 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
[all …]
DvktDynamicStateVPTests.cpp107 vk::VK_IMAGE_LAYOUT_GENERAL, zeroOffset, WIDTH, HEIGHT, vk::VK_IMAGE_ASPECT_COLOR_BIT); in iterate()
132 …const vk::VkViewport viewport = { 0.0f, 0.0f, static_cast<float>(WIDTH) * 2.0f, static_cast<float>… in setDynamicStates()
133 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH, HEIGHT } }; in setDynamicStates()
143 …vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + st… in buildReferenceFrame()
179 const vk::VkViewport viewport = { 0.0f, 0.0f, (float)WIDTH, (float)HEIGHT, 0.0f, 0.0f }; in setDynamicStates()
180 const vk::VkRect2D scissor = { { 0, 0 }, { WIDTH / 2, HEIGHT / 2 } }; in setDynamicStates()
190 …vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + st… in buildReferenceFrame()
270 const float halfWidth = (float)WIDTH / 2; in iterate()
272 const deInt32 quarterWidth = WIDTH / 4; in iterate()
311 …vk::mapVkFormat(m_colorAttachmentFormat), (int)(0.5f + static_cast<float>(WIDTH)), (int)(0.5f + st… in iterate()
[all …]
/third_party/ffmpeg/libavcodec/
Ddiracdsp.c52 #define PIXOP_BILINEAR(PFX, OP, WIDTH) \ argument
53 …static void ff_ ## PFX ## _dirac_pixels ## WIDTH ## _bilinear_c(uint8_t *dst, const uint8_t *src[5…
63 for (x = 0; x < WIDTH; x++) { \
213 #define PIXFUNC(PFX, WIDTH) \ in DEQUANT_SUBBAND() argument
214 c->PFX ## _dirac_pixels_tab[WIDTH>>4][0] = ff_ ## PFX ## _dirac_pixels ## WIDTH ## _c; \ in DEQUANT_SUBBAND()
215 c->PFX ## _dirac_pixels_tab[WIDTH>>4][1] = ff_ ## PFX ## _dirac_pixels ## WIDTH ## _l2_c; \
216 c->PFX ## _dirac_pixels_tab[WIDTH>>4][2] = ff_ ## PFX ## _dirac_pixels ## WIDTH ## _l4_c; \
217 c->PFX ## _dirac_pixels_tab[WIDTH>>4][3] = ff_ ## PFX ## _dirac_pixels ## WIDTH ## _bilinear_c
Dc93.c43 #define WIDTH 320 macro
77 int from_x = offset % WIDTH; in copy_block()
78 int from_y = offset / WIDTH; in copy_block()
79 int overflow = from_x + width - WIDTH; in copy_block()
134 if ((ret = ff_set_dimensions(avctx, WIDTH, HEIGHT)) < 0) in decode_frame()
156 for (x = 0; x < WIDTH; x += 8) { in decode_frame()
179 int from_x = offset % WIDTH; in decode_frame()
180 int from_y = offset / WIDTH; in decode_frame()
182 (FFABS(from_x - x-i) < 4 || FFABS(from_x - x-i) > WIDTH-4)) { in decode_frame()
/third_party/gstreamer/gstplugins_good/tests/check/elements/
Dalpha.c73 #define WIDTH 3 macro
82 "width", G_TYPE_INT, WIDTH, in create_caps_rgba32()
100 guint8 rgba32_img[HEIGHT * WIDTH * 4]; in create_buffer_rgba32()
113 for (i = 0; i < HEIGHT * WIDTH; i++) in create_buffer_rgba32()
116 buf = gst_buffer_new_and_alloc (HEIGHT * WIDTH * 4); in create_buffer_rgba32()
162 outlength = WIDTH * HEIGHT * 4; /* output is AYUV */ in GST_START_TEST()
169 for (i = 0; i < HEIGHT * WIDTH; i += 4) in GST_START_TEST()
230 outlength = WIDTH * HEIGHT * 4; /* output is AYUV */ in GST_START_TEST()
236 for (i = 0; i < HEIGHT * WIDTH; i += 4) in GST_START_TEST()
Dalphacolor.c67 #define WIDTH 3 macro
102 const guint8 rgb24_3x4_img[HEIGHT * GST_ROUND_UP_4 (WIDTH * 3)] = { in create_buffer_rgb24_3x4()
108 guint rowstride = GST_ROUND_UP_4 (WIDTH * 3); in create_buffer_rgb24_3x4()
131 const guint8 rgba32_3x4_img[HEIGHT * WIDTH * 4] = { in create_buffer_rgba32_3x4()
137 guint rowstride = WIDTH * 4; in create_buffer_rgba32_3x4()
194 pixel = ((guint8*)(ayuv) + ((WIDTH * 4) * (y)) + ((x) * 4)); \
233 outlength = WIDTH * HEIGHT * 4; /* output is AYUV */ in GST_START_TEST()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcLayoutLocationTests.cpp48 static const GLuint WIDTH = 2; variable
96 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, 1, components); in createTexture1D()
101 gl.texImage1D(GL_TEXTURE_1D, 0, internalFormat, WIDTH, 0, format, type, &data[0]); in createTexture1D()
110 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createTexture2D()
115 gl.texStorage2D(target, 1, internalFormat, WIDTH, HEIGHT); in createTexture2D()
116 gl.texSubImage2D(target, 0, 0, 0, WIDTH, HEIGHT, format, type, &data[0]); in createTexture2D()
125 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createTexture3D()
130 gl.texStorage3D(GL_TEXTURE_3D, 1, internalFormat, WIDTH, HEIGHT, 1); in createTexture3D()
131 gl.texSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, WIDTH, HEIGHT, 1, format, type, &data[0]); in createTexture3D()
139 std::vector<DATA_TYPE> data = generateData<DATA_TYPE>(WIDTH, HEIGHT, components); in createCubeMap()
[all …]
/third_party/skia/bench/
DTileImageFilterBench.cpp14 #define WIDTH 512 macro
41 SkRect::MakeWH(50, 50), SkRect::MakeWH(WIDTH, HEIGHT), nullptr)); in onDraw()
46 for (int x = 0; x < WIDTH; x += fTileSize) { in onDraw()
50 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
55 canvas->drawRect(SkRect::MakeWH(WIDTH, HEIGHT), paint); in onDraw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalDrawAndClearTests.cpp242 WIDTH = 256, enumerator
319 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetColorImageAndImageView()
333 const VkExtent3D targetImageExtent = { WIDTH, HEIGHT, 1 }; in createTargetDepthImageAndImageView()
388 WIDTH, // deUint32 width in createFramebuffer()
444 for (int w = 0; w < WIDTH; ++w) in prepareReferenceImageOneColor()
451 for (int w = 0; w < WIDTH; ++w) in prepareReferenceImageOneColor()
458 for (int w = 0; w < WIDTH; ++w) in prepareReferenceImageOneDepth()
465 for (int w = 0; w < WIDTH; ++w) in prepareReferenceImageDepthClearPartial()
469 (w >= (WIDTH / 2) && h >= (HEIGHT / 2)) reference.setPixDepth(clearValueFinal.depth, w, h); in prepareReferenceImageDepthClearPartial()
477 for (int w = 0; w < WIDTH; ++w) in prepareReferenceImageColorClearPartial()
[all …]
/third_party/icu/icu4c/source/test/testdata/
DGraphemeBreakTest.txt59 ÷ 0020 × 200D ÷ # ÷ [0.2] SPACE (Other) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCccZwj) ÷ [0.3]
60 …SPACE (Other) × [9.0] COMBINING DIAERESIS (Extend_ExtCccZwj) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
97 ÷ 000D ÷ 200D ÷ # ÷ [0.2] <CARRIAGE RETURN (CR)> (CR) ÷ [4.0] ZERO WIDTH JOINER (ZWJ_ExtCccZwj) ÷ …
98 …RN (CR)> (CR) ÷ [4.0] COMBINING DIAERESIS (Extend_ExtCccZwj) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
135 ÷ 000A ÷ 200D ÷ # ÷ [0.2] <LINE FEED (LF)> (LF) ÷ [4.0] ZERO WIDTH JOINER (ZWJ_ExtCccZwj) ÷ [0.3]
136 …ED (LF)> (LF) ÷ [4.0] COMBINING DIAERESIS (Extend_ExtCccZwj) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
173 ÷ 0001 ÷ 200D ÷ # ÷ [0.2] <START OF HEADING> (Control) ÷ [4.0] ZERO WIDTH JOINER (ZWJ_ExtCccZwj) ÷…
174 …NG> (Control) ÷ [4.0] COMBINING DIAERESIS (Extend_ExtCccZwj) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
211 ÷ 034F × 200D ÷ # ÷ [0.2] COMBINING GRAPHEME JOINER (Extend) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
212 …INER (Extend) × [9.0] COMBINING DIAERESIS (Extend_ExtCccZwj) × [9.0] ZERO WIDTH JOINER (ZWJ_ExtCcc…
[all …]
/third_party/ffmpeg/libavcodec/ppc/
Dvp8dsp_altivec.c259 #define EPEL_FUNCS(WIDTH, TAPS) \ argument
261 void put_vp8_epel ## WIDTH ## _h ## TAPS ## _altivec(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *s…
263 put_vp8_epel_h_altivec_core(dst, dst_stride, src, src_stride, h, mx, WIDTH, TAPS == 6); \
267 void put_vp8_epel ## WIDTH ## _v ## TAPS ## _altivec(uint8_t *dst, ptrdiff_t dst_stride, uint8_t *s…
269 put_vp8_epel_v_altivec_core(dst, dst_stride, src, src_stride, h, my, WIDTH, TAPS == 6); \
272 #define EPEL_HV(WIDTH, HTAPS, VTAPS) \ argument
273 static void put_vp8_epel ## WIDTH ## _h ## HTAPS ## v ## VTAPS ## _altivec(uint8_t *dst, ptrdiff_t …
275 DECLARE_ALIGNED(16, uint8_t, tmp)[(2*WIDTH+5)*16]; \
277 …put_vp8_epel ## WIDTH ## _h ## HTAPS ## _altivec(tmp, 16, src-2*sstride, sstride, h+5, mx, my…
278 …put_vp8_epel ## WIDTH ## _v ## VTAPS ## _altivec(dst, dstride, tmp+2*16, 16, h, mx, my…
[all …]
/third_party/skia/tests/
DCanvasStateTest.cpp114 const int WIDTH = 400; in DEF_TEST() local
119 SkIntToScalar(WIDTH-(2*SPACER)), in DEF_TEST()
146 auto surf = SkSurface::MakeRaster(SkImageInfo::Make(WIDTH, HEIGHT, in DEF_TEST()
195 const int WIDTH = 400; in DEF_TEST() local
199 SkIRect layerRect = SkIRect::MakeWH(WIDTH, HEIGHT / 4); in DEF_TEST()
240 auto surf = SkSurface::MakeRaster(SkImageInfo::MakeN32Premul(WIDTH, HEIGHT)); in DEF_TEST()
307 const int WIDTH = 100; in DEF_TEST() local
313 bitmap.allocN32Pixels(WIDTH, HEIGHT); in DEF_TEST()
317 canvas.clipRect(SkRect::MakeWH(SkIntToScalar(WIDTH), SkIntToScalar(HEIGHT))); in DEF_TEST()
/third_party/vk-gl-cts/external/amber/src/tests/cases/
Ddraw_storageimage_multisample.amber41 IMAGE texture FORMAT R8G8B8A8_UNORM DIM_2D WIDTH 256 HEIGHT 256 SAMPLES 4
42 IMAGE sample0 FORMAT R8G8B8A8_UNORM DIM_2D WIDTH 256 HEIGHT 256
43 IMAGE sample1 FORMAT R8G8B8A8_UNORM DIM_2D WIDTH 256 HEIGHT 256
44 IMAGE sample2 FORMAT R8G8B8A8_UNORM DIM_2D WIDTH 256 HEIGHT 256
45 IMAGE sample3 FORMAT R8G8B8A8_UNORM DIM_2D WIDTH 256 HEIGHT 256
/third_party/jerryscript/tools/
Drun-perf-test.sh185 WIDTH=42
186 MD_DIFF=$(printf "%s%s" "$DIFF" "$(printf "%$(($WIDTH - ${#DIFF}))s")")
187 MD_PERCENT=$(printf "%s%s" "$(printf "%$(($WIDTH - ${#PERCENT}))s")" "$PERCENT")
206 WIDTH=20
207 MD_DIFF=$(printf "%s%s" "$DIFF" "$(printf "%$(($WIDTH - ${#DIFF}))s")")
208 MD_PERCENT=$(printf "%s%s" "$(printf "%$(($WIDTH - ${#PERCENT}))s")" "$PERCENT")

123456789