Home
last modified time | relevance | path

Searched refs:subset (Results 1 – 25 of 763) sorted by relevance

12345678910>>...31

/external/skia/src/core/
DSkSpecialImage.cpp39 SkSpecialImage_Base(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps* props) in SkSpecialImage_Base() argument
40 : INHERITED(subset, uniqueID, props) { in SkSpecialImage_Base()
56 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
62 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0;
76 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() argument
80 , fSubset(subset) in SkSpecialImage()
167 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { in makeSubset()
168 return as_SIB(this)->onMakeSubset(subset); in makeSubset()
171 sk_sp<SkImage> SkSpecialImage::asImage(const SkIRect* subset) const { in asImage()
172 return as_SIB(this)->onAsImage(subset); in asImage()
[all …]
DSkSpecialSurface.cpp16 SkSpecialSurface_Base(const SkIRect& subset, const SkSurfaceProps* props) in SkSpecialSurface_Base() argument
17 : INHERITED(subset, props) in SkSpecialSurface_Base()
43 SkSpecialSurface::SkSpecialSurface(const SkIRect& subset, in SkSpecialSurface() argument
46 , fSubset(subset) { in SkSpecialSurface()
68 const SkIRect& subset, in SkSpecialSurface_Raster() argument
70 : INHERITED(subset, props) { in SkSpecialSurface_Raster()
76 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
85 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, &this->props()); in onMakeImageSnapshot()
94 sk_sp<SkSpecialSurface> SkSpecialSurface::MakeFromBitmap(const SkIRect& subset, SkBitmap& bm, in MakeFromBitmap() argument
96 if (subset.isEmpty() || !SkSurfaceValidateRasterInfo(bm.info(), bm.rowBytes())) { in MakeFromBitmap()
[all …]
DSkSpecialImage.h53 const SkIRect& subset() const { return fSubset; } in subset() function
73 const SkIRect& subset,
76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
79 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
84 const SkIRect& subset,
112 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
122 sk_sp<SkImage> asImage(const SkIRect* subset = nullptr) const;
151 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
/external/skqp/src/core/
DSkSpecialImage.cpp37 SkSpecialImage_Base(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps* props) in SkSpecialImage_Base() argument
38 : INHERITED(subset, uniqueID, props) { in SkSpecialImage_Base()
54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
60 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0;
74 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() argument
78 , fSubset(subset) in SkSpecialImage()
165 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { in makeSubset()
166 return as_SIB(this)->onMakeSubset(subset); in makeSubset()
169 sk_sp<SkImage> SkSpecialImage::asImage(const SkIRect* subset) const { in asImage()
170 return as_SIB(this)->onAsImage(subset); in asImage()
[all …]
DSkSpecialSurface.cpp16 SkSpecialSurface_Base(const SkIRect& subset, const SkSurfaceProps* props) in SkSpecialSurface_Base() argument
17 : INHERITED(subset, props) in SkSpecialSurface_Base()
43 SkSpecialSurface::SkSpecialSurface(const SkIRect& subset, in SkSpecialSurface() argument
46 , fSubset(subset) { in SkSpecialSurface()
68 const SkIRect& subset, in SkSpecialSurface_Raster() argument
70 : INHERITED(subset, props) { in SkSpecialSurface_Raster()
76 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
85 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, &this->props()); in onMakeImageSnapshot()
94 sk_sp<SkSpecialSurface> SkSpecialSurface::MakeFromBitmap(const SkIRect& subset, SkBitmap& bm, in MakeFromBitmap() argument
96 if (subset.isEmpty() || !SkSurfaceValidateRasterInfo(bm.info(), bm.rowBytes())) { in MakeFromBitmap()
[all …]
DSkSpecialImage.h53 const SkIRect& subset() const { return fSubset; } in subset() function
73 const SkIRect& subset,
76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
79 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
84 const SkIRect& subset,
112 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
122 sk_sp<SkImage> asImage(const SkIRect* subset = nullptr) const;
151 SkSpecialImage(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps*);
/external/harfbuzz_ng/test/api/
Dtest-subset.c39 hb_face_t *subset; in test_subset_32_tables() local
45 subset = hb_subset (face, input); in test_subset_32_tables()
46 g_assert (subset); in test_subset_32_tables()
47 g_assert (subset != hb_face_get_empty ()); in test_subset_32_tables()
50 hb_face_destroy (subset); in test_subset_32_tables()
61 hb_face_t *subset; in test_subset_no_inf_loop() local
67 subset = hb_subset (face, input); in test_subset_no_inf_loop()
68 g_assert (subset); in test_subset_no_inf_loop()
69 g_assert (subset == hb_face_get_empty ()); in test_subset_no_inf_loop()
72 hb_face_destroy (subset); in test_subset_no_inf_loop()
[all …]
DMakefile.am25 EXTRA_DIST += hb-test.h hb-subset-test.h
43 test-subset \
44 test-subset-cmap \
45 test-subset-glyf \
46 test-subset-hdmx \
47 test-subset-hmtx \
48 test-subset-os2 \
49 test-subset-post \
50 test-subset-vmtx \
51 test-subset-cff1 \
[all …]
Dtest-subset-hdmx.c79 hb_face_t *subset; in test_subset_hdmx_invalid() local
85 subset = hb_subset (face, input); in test_subset_hdmx_invalid()
86 g_assert (subset); in test_subset_hdmx_invalid()
87 g_assert (subset == hb_face_get_empty ()); in test_subset_hdmx_invalid()
90 hb_face_destroy (subset); in test_subset_hdmx_invalid()
101 hb_face_t *subset; in test_subset_hdmx_fails_sanitize() local
107 subset = hb_subset (face, input); in test_subset_hdmx_fails_sanitize()
108 g_assert (subset); in test_subset_hdmx_fails_sanitize()
109 g_assert (subset == hb_face_get_empty ()); in test_subset_hdmx_fails_sanitize()
112 hb_face_destroy (subset); in test_subset_hdmx_fails_sanitize()
/external/fonttools/Tests/subset/
Dsubset_test.py3 from fontTools import subset
80 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
87 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
94 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
101 subset.main([fontpath, "--glyphs=one", "--output-file=%s" % subsetpath])
108 subset.main([fontpath, "--glyphs=two", "--output-file=%s" % subsetpath])
114 subset.main([fontpath, "--glyphs=one", "--output-file=%s" % subsetpath])
127 subset.main([fontpath, "--unicodes=U+0030-0031",
143 subset.main([fontpath, "--unicodes=U+0030-0031,U+2EA2",
154 subset.main([fontpath, "--glyphs=one", "--output-file=%s" % subsetpath])
[all …]
/external/skqp/tests/
DSpecialImageTest.cpp59 const SkIRect subset = img->subset(); in test_image() local
60 REPORTER_ASSERT(reporter, offset == subset.left()); in test_image()
61 REPORTER_ASSERT(reporter, offset == subset.top()); in test_image()
62 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); in test_image()
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); in test_image()
116 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); in test_image()
120 REPORTER_ASSERT(reporter, tightImg->width() == subset.width()); in test_image()
121 REPORTER_ASSERT(reporter, tightImg->height() == subset.height()); in test_image()
128 sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size())); in test_image()
130 REPORTER_ASSERT(reporter, tightSurf->width() == subset.width()); in test_image()
[all …]
DImageFilterCacheTest.cpp39 const sk_sp<SkSpecialImage>& subset) { in test_find_existing() argument
44 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing()
45 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing()
64 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key() argument
70 SkImageFilterCacheKey key0(0, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
71 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
73 image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
74 SkImageFilterCacheKey key3(0, SkMatrix::I(), clip2, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
75 SkImageFilterCacheKey key4(0, SkMatrix::I(), clip1, subset->uniqueID(), subset->subset()); in test_dont_find_if_diff_key()
95 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge()
[all …]
DBitmapCopyTest.cpp89 SkBitmap subset; in DEF_TEST() local
96 if (kUnknown_SkColorType != bitmap.colorType() && bitmap.extractSubset(&subset, r)) { in DEF_TEST()
97 REPORTER_ASSERT(reporter, subset.width() == W); in DEF_TEST()
98 REPORTER_ASSERT(reporter, subset.height() == 2); in DEF_TEST()
99 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType()); in DEF_TEST()
100 REPORTER_ASSERT(reporter, subset.isVolatile() == true); in DEF_TEST()
105 bool success = sk_tool_utils::copy_to(&copy, gPairs[j].fColorType, subset); in DEF_TEST()
115 REPORTER_ASSERT(reporter, copy.getGenerationID() != subset.getGenerationID()); in DEF_TEST()
124 if (bitmap.extractSubset(&subset, r)) { in DEF_TEST()
125 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType()); in DEF_TEST()
[all …]
/external/skia/tests/
DSpecialImageTest.cpp59 const SkIRect subset = img->subset(); in test_image() local
60 REPORTER_ASSERT(reporter, offset == subset.left()); in test_image()
61 REPORTER_ASSERT(reporter, offset == subset.top()); in test_image()
62 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); in test_image()
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); in test_image()
116 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); in test_image()
120 REPORTER_ASSERT(reporter, tightImg->width() == subset.width()); in test_image()
121 REPORTER_ASSERT(reporter, tightImg->height() == subset.height()); in test_image()
128 sk_sp<SkSurface> tightSurf(img->makeTightSurface(outProps, subset.size())); in test_image()
130 REPORTER_ASSERT(reporter, tightSurf->width() == subset.width()); in test_image()
[all …]
DImageFilterCacheTest.cpp39 const sk_sp<SkSpecialImage>& subset) { in test_find_existing() argument
44 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing()
45 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing()
64 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key() argument
70 SkImageFilterCacheKey key0(0, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
71 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
73 image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
74 SkImageFilterCacheKey key3(0, SkMatrix::I(), clip2, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
75 SkImageFilterCacheKey key4(0, SkMatrix::I(), clip1, subset->uniqueID(), subset->subset()); in test_dont_find_if_diff_key()
95 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge()
[all …]
DBitmapCopyTest.cpp89 SkBitmap subset; in DEF_TEST() local
96 if (kUnknown_SkColorType != bitmap.colorType() && bitmap.extractSubset(&subset, r)) { in DEF_TEST()
97 REPORTER_ASSERT(reporter, subset.width() == W); in DEF_TEST()
98 REPORTER_ASSERT(reporter, subset.height() == 2); in DEF_TEST()
99 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType()); in DEF_TEST()
100 REPORTER_ASSERT(reporter, subset.isVolatile() == true); in DEF_TEST()
105 bool success = sk_tool_utils::copy_to(&copy, gPairs[j].fColorType, subset); in DEF_TEST()
115 REPORTER_ASSERT(reporter, copy.getGenerationID() != subset.getGenerationID()); in DEF_TEST()
124 if (bitmap.extractSubset(&subset, r)) { in DEF_TEST()
125 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType()); in DEF_TEST()
[all …]
/external/skia/src/android/
DSkBitmapRegionDecoderPriv.h35 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, in adjust_subset_rect() argument
38 int left = SkTMax(0, subset->fLeft); in adjust_subset_rect()
39 int top = SkTMax(0, subset->fTop); in adjust_subset_rect()
42 *outX = left - subset->fLeft; in adjust_subset_rect()
43 *outY = top - subset->fTop; in adjust_subset_rect()
46 int width = SkTMin(imageDims.width() - left, subset->width() - *outX); in adjust_subset_rect()
47 int height = SkTMin(imageDims.height() - top, subset->height() - *outY); in adjust_subset_rect()
52 subset->setXYWH(left, top, width, height); in adjust_subset_rect()
53 if ((*outX != 0) || (*outY != 0) || (width != subset->width()) || in adjust_subset_rect()
54 (height != subset->height())) { in adjust_subset_rect()
/external/skqp/src/android/
DSkBitmapRegionDecoderPriv.h35 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, in adjust_subset_rect() argument
38 int left = SkTMax(0, subset->fLeft); in adjust_subset_rect()
39 int top = SkTMax(0, subset->fTop); in adjust_subset_rect()
42 *outX = left - subset->fLeft; in adjust_subset_rect()
43 *outY = top - subset->fTop; in adjust_subset_rect()
46 int width = SkTMin(imageDims.width() - left, subset->width() - *outX); in adjust_subset_rect()
47 int height = SkTMin(imageDims.height() - top, subset->height() - *outY); in adjust_subset_rect()
52 subset->setXYWH(left, top, width, height); in adjust_subset_rect()
53 if ((*outX != 0) || (*outY != 0) || (width != subset->width()) || in adjust_subset_rect()
54 (height != subset->height())) { in adjust_subset_rect()
/external/skqp/src/pdf/
DSkPDFSubsetFont.cpp17 std::vector<unsigned> subset; in SkPDFSubsetFont() local
19 subset.push_back(0); // Always include glyph 0. in SkPDFSubsetFont()
21 glyphUsage.getSetValues([&subset](unsigned v) { subset.push_back(v); }); in SkPDFSubsetFont()
30 subset.data(), in SkPDFSubsetFont()
31 subset.size(), in SkPDFSubsetFont()
38 subset.data(), in SkPDFSubsetFont()
39 subset.size(), in SkPDFSubsetFont()
/external/skqp/gm/
Dextractbitmap.cpp55 SkBitmap subset; in onDraw() local
56 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDraw()
57 canvas->drawBitmap(subset, 0, 0); in onDraw()
59 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw()
60 canvas->drawBitmap(subset, SkIntToScalar(x), SkIntToScalar(y)); in onDraw()
63 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height())); in onDraw()
66 canvas->drawBitmap(subset, 0, 0); in onDraw()
69 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y)); in onDraw()
71 canvas->drawBitmap(subset, 0, 0); in onDraw()
/external/skia/gm/
Dextractbitmap.cpp55 SkBitmap subset; in onDraw() local
56 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y)); in onDraw()
57 canvas->drawBitmap(subset, 0, 0); in onDraw()
59 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y)); in onDraw()
60 canvas->drawBitmap(subset, SkIntToScalar(x), SkIntToScalar(y)); in onDraw()
63 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height())); in onDraw()
66 canvas->drawBitmap(subset, 0, 0); in onDraw()
69 bitmap.extractSubset(&subset, SkIRect::MakeWH(bitmap.height(), y)); in onDraw()
71 canvas->drawBitmap(subset, 0, 0); in onDraw()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeMultisetTest.java102 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() local
103 assertThat(subset).has().exactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemove()
105 assertTrue(subset.remove("c")); in testElementSetSubsetRemove()
107 assertThat(subset).has().exactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
110 assertFalse(subset.remove("a")); in testElementSetSubsetRemove()
112 assertThat(subset).has().exactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
127 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() local
128 assertThat(subset).has().exactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
130 assertTrue(subset.removeAll(Arrays.asList("a", "c"))); in testElementSetSubsetRemoveAll()
132 assertThat(subset).has().exactly("b", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
[all …]
/external/skia/src/pdf/
DSkPDFSubsetFont.cpp71 HBFace subset(hb_subset(face.get(), input.get())); in SkPDFSubsetFont() local
72 HBBlob result(hb_face_reference_blob(subset.get())); in SkPDFSubsetFont()
92 std::vector<unsigned> subset; in SkPDFSubsetFont() local
94 subset.push_back(0); // Always include glyph 0. in SkPDFSubsetFont()
96 glyphUsage.getSetValues([&subset](unsigned v) { subset.push_back(v); }); in SkPDFSubsetFont()
105 subset.data(), in SkPDFSubsetFont()
106 subset.size(), in SkPDFSubsetFont()
113 subset.data(), in SkPDFSubsetFont()
114 subset.size(), in SkPDFSubsetFont()
/external/harfbuzz_ng/test/fuzzing/
DCMakeLists.txt15 add_executable (hb-subset-fuzzer ${hb_subset_fuzzer_SOURCES})
16 target_link_libraries (hb-subset-fuzzer harfbuzz-subset)
19 target_compile_definitions(hb-subset-fuzzer PUBLIC ${FUZZING_CPPFLAGS})
24 add_test (NAME hb-subset-fuzzer
25 COMMAND "${PYTHON_EXECUTABLE}" run-subset-fuzzer-tests.py $<TARGET_FILE:hb-subset-fuzzer>
DMakefile.am16 $(top_builddir)/src/libharfbuzz-subset.la: libs
21 run-subset-fuzzer-tests.py \
28 hb-subset-fuzzer \
48 hb-subset-fuzzer.cc \
53 $(top_builddir)/src/libharfbuzz-subset.la
55 hb_subset_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz-subset.la
59 EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" $(srcdir)/run-subset-fuzzer-tests.py

12345678910>>...31