Home
last modified time | relevance | path

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

12345678910>>...42

/external/skia/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()
57 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0;
65 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0;
80 SkSpecialImage::SkSpecialImage(const SkIRect& subset, in SkSpecialImage() argument
84 , fSubset(subset) in SkSpecialImage()
127 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { in makeSubset()
128 SkIRect absolute = subset.makeOffset(this->subset().topLeft()); in makeSubset()
132 sk_sp<SkImage> SkSpecialImage::asImage(const SkIRect* subset) const { in asImage()
133 if (subset) { in asImage()
[all …]
DSkSpecialSurface.cpp19 SkSpecialSurface_Base(const SkIRect& subset, const SkSurfaceProps& props) in SkSpecialSurface_Base() argument
20 : INHERITED(subset, props) in SkSpecialSurface_Base()
44 SkSpecialSurface::SkSpecialSurface(const SkIRect& subset, in SkSpecialSurface() argument
47 , fSubset(subset) { in SkSpecialSurface()
69 const SkIRect& subset, in SkSpecialSurface_Raster() argument
71 : INHERITED(subset, props) { in SkSpecialSurface_Raster()
77 fCanvas->clipRect(SkRect::Make(subset)); in SkSpecialSurface_Raster()
86 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, this->props()); in onMakeImageSnapshot()
95 sk_sp<SkSpecialSurface> SkSpecialSurface::MakeFromBitmap(const SkIRect& subset, SkBitmap& bm, in MakeFromBitmap() argument
97 if (subset.isEmpty() || !SkSurfaceValidateRasterInfo(bm.info(), bm.rowBytes())) { in MakeFromBitmap()
[all …]
DSkSpecialImage.h57 const SkIRect& subset() const { return fSubset; } in subset() function
74 const SkIRect& subset,
77 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
80 static sk_sp<SkSpecialImage> CopyFromRaster(const SkIRect& subset,
85 const SkIRect& subset,
119 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
129 sk_sp<SkImage> asImage(const SkIRect* subset = nullptr) const;
159 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-drop-tables \
46 test-subset-glyf \
47 test-subset-hdmx \
48 test-subset-hmtx \
49 test-subset-os2 \
50 test-subset-post \
51 test-subset-vmtx \
[all …]
/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/skia/client_utils/android/
DBitmapRegionDecoderPriv.h35 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, in adjust_subset_rect() argument
38 int left = std::max(0, subset->fLeft); in adjust_subset_rect()
39 int top = std::max(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 = std::min(imageDims.width() - left, subset->width() - *outX); in adjust_subset_rect()
47 int height = std::min(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/skia/tests/
DSpecialImageTest.cpp60 const SkIRect subset = img->subset(); in test_image() local
61 REPORTER_ASSERT(reporter, kPad == subset.left()); in test_image()
62 REPORTER_ASSERT(reporter, kPad == subset.top()); in test_image()
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); in test_image()
64 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); in test_image()
114 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); in test_image()
118 REPORTER_ASSERT(reporter, tightImg->width() == subset.width()); in test_image()
119 REPORTER_ASSERT(reporter, tightImg->height() == subset.height()); in test_image()
126 subset.size())); in test_image()
128 REPORTER_ASSERT(reporter, tightSurf->width() == subset.width()); in test_image()
[all …]
DImageFilterCacheTest.cpp44 const sk_sp<SkSpecialImage>& subset) { in test_find_existing() argument
49 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing()
50 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing()
68 const sk_sp<SkSpecialImage>& subset) { in test_dont_find_if_diff_key() argument
74 SkImageFilterCacheKey key0(0, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
75 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
77 image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
78 SkImageFilterCacheKey key3(0, SkMatrix::I(), clip2, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key()
79 SkImageFilterCacheKey key4(0, SkMatrix::I(), clip1, subset->uniqueID(), subset->subset()); in test_dont_find_if_diff_key()
100 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge()
[all …]
/external/fonttools/Tests/subset/
Dsubset_test.py4 from fontTools import subset
86 subset.main([fontpath, "--glyphs=*", "--layout-features=*",
96 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
103 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
110 subset.main([fontpath, "--no-notdef-outline", "--gids=0", "--output-file=%s" % subsetpath])
117 subset.main([fontpath, "--glyphs=one", "--output-file=%s" % subsetpath])
124 subset.main([fontpath, "--glyphs=two", "--output-file=%s" % subsetpath])
130 subset.main([fontpath, "--glyphs=one", "--output-file=%s" % subsetpath])
143 subset.main([fontpath, "--unicodes=U+0030-0031",
159 subset.main([fontpath, "--unicodes=U+0030-0031,U+2EA2",
[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/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/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 …srcdir="$(srcdir)" builddir="$(builddir)" LIBTOOL="$(LIBTOOL)" $(srcdir)/run-subset-fuzzer-tests.py
/external/skia/docs/examples/
DBitmap_pixelRef.cpp7 SkBitmap subset; in draw() local
8 source.extractSubset(&subset, SkIRect::MakeXYWH(32, 64, 128, 256)); in draw()
9 SkDebugf("src ref %c= sub ref\n", source.pixelRef() == subset.pixelRef() ? '=' : '!'); in draw()
10 SkDebugf("src pixels %c= sub pixels\n", source.getPixels() == subset.getPixels() ? '=' : '!'); in draw()
11 SkDebugf("src addr %c= sub addr\n", source.getAddr(32, 64) == subset.getAddr(0, 0) ? '=' : '!'); in draw()
/external/harfbuzz_ng/test/subset/
Dsubset_test_suite.py9 def __init__(self, font_path, profile_path, subset): argument
12 self.subset = subset
15 if self.subset == '*':
16 return self.subset[0]
18 return ",".join("%X" % ord(c) for (i, c) in enumerate(self.subset))
72 for subset in self.subsets:
73 yield Test(font, profile, subset)
/external/guava/guava-tests/test/com/google/common/collect/
DTreeMultisetTest.java187 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() local
188 assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemove()
190 assertTrue(subset.remove("c")); in testElementSetSubsetRemove()
192 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
195 assertFalse(subset.remove("a")); in testElementSetSubsetRemove()
197 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
212 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() local
213 assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
215 assertTrue(subset.removeAll(Arrays.asList("a", "c"))); in testElementSetSubsetRemoveAll()
217 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DTreeMultisetTest.java187 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemove() local
188 assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemove()
190 assertTrue(subset.remove("c")); in testElementSetSubsetRemove()
192 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
195 assertFalse(subset.remove("a")); in testElementSetSubsetRemove()
197 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemove()
212 SortedSet<String> subset = elementSet.subSet("b", "f"); in testElementSetSubsetRemoveAll() local
213 assertThat(subset).containsExactly("b", "c", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
215 assertTrue(subset.removeAll(Arrays.asList("a", "c"))); in testElementSetSubsetRemoveAll()
217 assertThat(subset).containsExactly("b", "d", "e").inOrder(); in testElementSetSubsetRemoveAll()
[all …]
/external/tensorflow/tensorflow/python/keras/preprocessing/
Dimage.py369 subset=None, argument
394 subset=subset,
439 subset=None, argument
459 subset=subset,
551 subset=None, argument
573 subset=subset,
827 subset=None): argument
880 subset=subset)
895 subset=None, argument
973 subset=subset,
[all …]

12345678910>>...42