Home
last modified time | relevance | path

Searched refs:kH (Results 1 – 25 of 41) sorted by relevance

12

/third_party/flutter/skia/tests/
DCopySurfaceTest.cpp35 static const int kH = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
38 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
39 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
43 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
49 { 0, 0, kW , kH }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
50 {-1, -1, kW+1, kH+1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
51 { 1, 1, kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
58 { kW/2, kH/4}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
59 { kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DVkWrapTests.cpp31 const int kH = 1024; variable
39 GrBackendTexture origBackendTex = context->createBackendTexture(kW, kH, in wrap_tex_test()
57 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
70 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
82 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
93 GrBackendTexture origBackendTex = context->createBackendTexture(kW, kH, in wrap_rt_test()
103 GrBackendRenderTarget origBackendRT(kW, kH, 1, 0, imageInfo); in wrap_rt_test()
112 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
122 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
135 GrBackendTexture origBackendTex = context->createBackendTexture(kW, kH, in wrap_trt_test()
[all …]
DClearTest.cpp72 static const int kH = 10; in clear_op_test() local
74 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test()
79 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
80 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in clear_op_test()
82 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
83 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
87 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
88 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in clear_op_test()
90 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
91 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in clear_op_test()
[all …]
DApplyGammaTest.cpp99 static const int kH = 256; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
105 baseDesc.fHeight = kH; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
107 const SkImageInfo ii = SkImageInfo::MakeN32Premul(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
110 for (int y = 0; y < kH; ++y) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 sk_memset32(read.get(), 0, kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
153 for (int y = 0; y < kH && !abort; ++y) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkProtectedContextTest.cpp150 const int kH = 8; in createSkSurface() local
152 kW, kH, kRGBA_8888_SkColorType, GrMipMapped::kNo, GrRenderable::kNo, in createSkSurface()
187 const int kH = 8; in DEF_GPUTEST() local
190 kW, kH, kRGBA_8888_SkColorType, GrMipMapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
213 const int kH = 8; in DEF_GPUTEST() local
216 kW, kH, kRGBA_8888_SkColorType, GrMipMapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
229 const int kH = 8; in DEF_GPUTEST() local
232 kW, kH, kRGBA_8888_SkColorType, GrMipMapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
DSRGBReadWritePixelsTest.cpp177 static constexpr int kH = 255; variable
180 std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]); in make_data()
181 for (int j = 0; j < kH; ++j) { in make_data()
192 SkBackingFit::kExact, kW, kH, GrColorType::kRGBA_8888, in make_surface_context()
208 auto writeII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
217 auto readII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
/third_party/skia/tests/
DCopySurfaceTest.cpp36 static const int kH = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
39 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
40 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
45 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
50 { 0, 0, kW , kH }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
51 {-1, -1, kW+1, kH+1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
52 { 1, 1, kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
59 { kW/2, kH/4}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
60 { kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DClearTest.cpp78 static const int kH = 10; in clear_op_test() local
80 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test()
85 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
86 SkIRect outerLeftEdge = SkIRect::MakeXYWH(0, 0, 1, kH); in clear_op_test()
88 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
89 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
93 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
94 SkIRect innerLeftEdge = SkIRect::MakeXYWH(1, 1, 1, kH-2); in clear_op_test()
96 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
97 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in clear_op_test()
[all …]
DVkWrapTests.cpp31 const int kH = 1024; variable
38 dContext, kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo); in wrap_tex_test()
59 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
72 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
84 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
106 gpu->createTestingOnlyBackendRenderTarget({kW, kH}, ct, sampleCnt); in wrap_rt_test()
121 GrBackendRenderTarget backendRT(kW, kH, 1, backendCopy); in wrap_rt_test()
131 GrBackendRenderTarget backendRT(kW, kH, 1, backendCopy); in wrap_rt_test()
144 dContext, kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kYes); in wrap_trt_test()
162 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_trt_test()
[all …]
DVkProtectedContextTest.cpp30 const int kH = 8; in create_protected_sksurface() local
35 {kW, kH}, in create_protected_sksurface()
45 {kW, kH}, in create_protected_sksurface()
103 const int kH = 8; in DEF_GPUTEST() local
106 kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
119 const int kH = 8; in DEF_GPUTEST() local
122 kW, kH, kRGBA_8888_SkColorType, GrMipmapped::kNo, GrRenderable::kNo, in DEF_GPUTEST()
DSRGBReadWritePixelsTest.cpp179 static constexpr int kH = 255; variable
182 std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]); in make_data()
183 for (int j = 0; j < kH; ++j) { in make_data()
197 kW, kH); in make_surface_context()
217 auto writeII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
227 auto readII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
DReadWritePixelsGpuTest.cpp390 static constexpr int kH = 16; in gpu_read_pixels_test_driver() local
392 const std::vector<SkIRect> longRectArray = make_long_rect_array(kW, kH); in gpu_read_pixels_test_driver()
393 const std::vector<SkIRect> shortRectArray = make_short_rect_array(kW, kH); in gpu_read_pixels_test_driver()
413 auto refInfo = SkImageInfo::Make(kW, kH, in gpu_read_pixels_test_driver()
977 static constexpr int kH = 16; in gpu_write_pixels_test_driver() local
979 const std::vector<SkIRect> longRectArray = make_long_rect_array(kW, kH); in gpu_write_pixels_test_driver()
980 const std::vector<SkIRect> shortRectArray = make_short_rect_array(kW, kH); in gpu_write_pixels_test_driver()
996 const auto dstInfo = SkImageInfo::Make(kW, kH, dstCT, dstAT, SkColorSpace::MakeSRGB()); in gpu_write_pixels_test_driver()
1108 kH = 37; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
1109 SkAutoPixmapStorage refP = make_ref_data(SkImageInfo::Make({kW, kH}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/third_party/skia/docs/examples/
Dskbug6031.cpp7 constexpr float kH = 512; in draw() local
12 canvas->clipRect(SkRect{0, 0, 2 * kW, 2 * kH}, replaceClipOp); in draw()
16 canvas->clipRect(SkRect{0, 0, kW, kH}, replaceClipOp); in draw()
20 canvas->clipRect(SkRect{0, kH, kW, 3 * kH}, replaceClipOp); in draw()
24 canvas->clipRect(SkRect{kW, 0, 3 * kW, kH}, replaceClipOp); in draw()
28 canvas->clipRect(SkRect{kW, kH, 3 * kW, 3 * kH}, replaceClipOp); in draw()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_dynaminc_shape_util.cc33 enum k2Axis : int { kN = 0, kC, kH, kW, kNchwDims }; enumerator
72 case kH: in PaddingRangeTo4D()
74 dst_range[kH] = ori_range[kC]; in PaddingRangeTo4D()
78 dst_range[kH] = ori_range[kC]; in PaddingRangeTo4D()
79 dst_range[kW] = ori_range[kH]; in PaddingRangeTo4D()
95 dst_range.push_back(range[kH]); in NhwcRange()
103 dst_range.push_back(range[kH]); in HwchRange()
116 dst_range.push_back(range[kH]); in Nc1hwc0Range()
128 dst_range.push_back(range[kH]); in Nc1hwc04Range()
160 const std::pair<int64_t, int64_t> r0 = {range[kH].first * range[kW].first * cin16.first / k16, in FracZRange()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DScissorTests.cpp104 constexpr uint32_t kH = 13; in TEST_P() local
110 pass.SetScissorRect(kX, kY, kW, kH); in TEST_P()
122 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 0, 0, 0), renderPass.color, kX + kW, kY + kH); in TEST_P()
123 EXPECT_PIXEL_RGBA8_EQ(RGBA8(0, 255, 0, 255), renderPass.color, kX + kW - 1, kY + kH - 1); in TEST_P()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DScissorTests.cpp80 constexpr uint32_t kH = 13; in TEST_P() local
86 pass.SetScissorRect(kX, kY, kW, kH); in TEST_P()
98 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kZero, renderPass.color, kX + kW, kY + kH); in TEST_P()
99 EXPECT_PIXEL_RGBA8_EQ(RGBA8::kGreen, renderPass.color, kX + kW - 1, kY + kH - 1); in TEST_P()
/third_party/mindspore/mindspore/ccsrc/common/
Dtrans.h36 enum kAxis : int { kN = 0, kC, kH, kW, kNchwDims }; enumerator
179 case kH: in PaddingShapeTo4dDefault()
181 shape_4d[kH] = shape[kC]; in PaddingShapeTo4dDefault()
185 shape_4d[kH] = shape[kC]; in PaddingShapeTo4dDefault()
186 shape_4d[kW] = shape[kH]; in PaddingShapeTo4dDefault()
Dtrans.cc254 device_shape.push_back(shape[kH]); in NhwcDeviceShape()
266 device_shape.push_back(shape[kH]); in NhwcDeviceDynamicShape()
277 device_shape.push_back(shape[kH]); in HwchDeviceShape()
289 device_shape.push_back(shape[kH]); in HwchDeviceDynamicShape()
303 device_shape.push_back(shape[kH] * shape[kW] * cin16 / kCubeSize); in FracZDeviceShape()
316 if (HasShapeDynamic({shape[kC], shape[kH], shape[kW]})) { in FracZDeviceDynamicShape()
320 device_shape.push_back(shape[kH] * shape[kW] * cin16 / tmp); in FracZDeviceDynamicShape()
342 device_shape.push_back(shape[kH]); in Nc1hwc0DeviceShape()
358 device_shape.push_back(shape[kH]); in Nc1hwc0DeviceDynamicShape()
441 device_shape.push_back(shape[kH]); in C1hwncoc0DeviceShape()
[all …]
/third_party/flutter/skia/gm/
Ddrawimageset.cpp215 static constexpr SkScalar kH = kN * kTileH; in onDraw() local
220 matrices[1].setRotate(90, kW / 2.f, kH / 2.f); in onDraw()
225 matrices[3].postTranslate(kW, kH); in onDraw()
228 matrices[4].postTranslate(0, kH); in onDraw()
229 matrices[4].postRotate(90, kW / 2.f, kH / 2.f); in onDraw()
236 static constexpr SkScalar kTranslate = SkTMax(kW, kH) * 2.f + 10.f; in onDraw()
Dshadowutils.cpp40 static constexpr int kH = 960; variable
227 DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
231 DEF_SIMPLE_GM(shadow_utils_occl, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
235 DEF_SIMPLE_GM(shadow_utils_gray, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
Dcirculararcs.cpp28 constexpr int kH = 1000; variable
64 constexpr SkScalar kGridH = kH / 2.f; in draw_arcs()
73 canvas->drawLine(kGridW, 0.f , kGridW, SkIntToScalar(kH), linePaint); in draw_arcs()
77 #define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
/third_party/skia/gm/
Ddrawimageset.cpp221 static constexpr SkScalar kH = kN * kTileH; in onDraw() local
226 matrices[1].setRotate(90, kW / 2.f, kH / 2.f); in onDraw()
231 matrices[3].postTranslate(kW, kH); in onDraw()
234 matrices[4].postTranslate(0, kH); in onDraw()
235 matrices[4].postRotate(90, kW / 2.f, kH / 2.f); in onDraw()
241 static constexpr SkScalar kTranslate = std::max(kW, kH) * 2.f + 10.f; in onDraw()
Dcirculararcs.cpp35 constexpr int kH = 1000; variable
71 constexpr SkScalar kGridH = kH / 2.f; in draw_arcs()
80 canvas->drawLine(kGridW, 0.f , kGridW, SkIntToScalar(kH), linePaint); in draw_arcs()
84 #define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
Dshadowutils.cpp40 static constexpr int kH = 960; variable
225 DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
229 DEF_SIMPLE_GM(shadow_utils_occl, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
233 DEF_SIMPLE_GM(shadow_utils_gray, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
/third_party/node/test/fixtures/keys/
Ddsa_public_1025.pem9 OAw5OL4+5BsE4jfSVFq4nmNl+m6Iy6ls3hOHOZ9sJlw0Fi+ZtdeddOTYnIngW/kH

12