Searched defs:subset (Results 1 - 25 of 87) sorted by relevance

1234

/external/fonttools/Tools/
H A Dpyftsubset4 from fontTools import subset namespace
6 subset.main(sys.argv[1:])
/external/noto-fonts/other/
H A Dsubset_noto_sans_symbols.py18 """Create a curated subset of NotoSansSymbols for Android."""
24 from nototools import subset namespace
209 subset.subset_font(
/external/skia/gm/
H A Dextractbitmap.cpp54 // Do some subset drawing. This will test that an SkGPipe properly
57 SkBitmap subset; variable
58 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
59 canvas->drawBitmap(subset, 0, 0);
61 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y));
62 canvas->drawBitmap(subset, SkIntToScalar(x), SkIntToScalar(y));
63 // Draw a subset which has the same height and pixelref offset but a
65 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height()));
68 canvas->drawBitmap(subset, 0, 0);
71 bitmap.extractSubset(&subset, SkIRec
[all...]
/external/skia/samplecode/
H A DSampleWritePixels.cpp51 SkBitmap subset; local
52 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
57 canvas->writePixels(subset, 0, 0);
/external/skia/src/android/
H A DSkBitmapRegionDecoderPriv.h18 * Corrects image subset offsets and dimensions in order to perform a valid decode.
19 * Also indicates if the image subset should be placed at an offset within the
25 * @param subset As input, the subset that the client requested.
26 * As output, the image subset that we will decode.
27 * @param outX The left offset of the image subset within the output bitmap.
28 * @param outY The top offset of the image subset within the output bitmap.
30 * @return An indication of how the subset is contained in the image.
33 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, argument
36 int left = SkTMax(0, subset
[all...]
H A DSkBitmapRegionCanvas.cpp44 // requested subset, not by the size of the intersection of the subset
54 SkIRect subset = desiredSubset; local
55 SubsetType type = adjust_subset_rect(fDecoder->getInfo().dimensions(), &subset, &outX, &outY);
73 SkImageInfo tmpInfo = decodeInfo.makeWH(this->width(), subset.height());
80 if (!fDecoder->skipScanlines(subset.y())) {
86 fDecoder->getScanlines(tmp.getAddr(0, 0), subset.height(), tmp.rowBytes());
115 SkRect src = SkRect::MakeXYWH((SkScalar) subset.x(), (SkScalar) 0,
116 (SkScalar) subset.width(), (SkScalar) subset
[all...]
/external/skia/src/core/
H A DSkSpecialImage.h38 * Note: the contents of the backing storage outside of the subset rect are undefined.
44 const SkIRect& subset() const { return fSubset; } function in class:SkSpecialImage
55 static SkSpecialImage* NewFromImage(const SkIRect& subset, const SkImage*);
57 const SkIRect& subset,
60 const SkIRect& subset,
76 SkSpecialImage(SkImageFilter::Proxy* proxy, const SkIRect& subset, uint32_t uniqueID) argument
77 : fSubset(subset)
92 * The returned ImageInfo represents the backing memory. Use 'subset'
101 * The active portion of the texture can be retrieved via 'subset'.
H A DSkSpecialSurface.h57 const SkIRect& subset, GrTexture*,
72 const SkIRect& subset, SkBitmap& bm,
86 SkSpecialSurface(SkImageFilter::Proxy*, const SkIRect& subset, const SkSurfaceProps*);
90 const SkIRect& subset() const { return fSubset; } function in class:SkSpecialSurface
H A DSkPictureImageGenerator.cpp134 GrTexture* SkPictureImageGenerator::onGenerateTexture(GrContext* ctx, const SkIRect* subset) { argument
136 SkImageInfo surfaceInfo = subset ? info.makeWH(subset->width(), subset->height()) : info;
148 if (subset) {
149 matrix.postTranslate(-subset->x(), -subset->y());
H A DSkSpecialSurface.cpp17 const SkIRect& subset, const SkSurfaceProps* props)
18 : INHERITED(proxy, subset, props)
45 const SkIRect& subset,
48 , fSubset(subset)
71 const SkIRect& subset,
73 : INHERITED(proxy, subset, props) {
85 return SkSpecialImage::NewFromRaster(this->proxy(), this->subset(), fBitmap);
95 const SkIRect& subset, SkBitmap& bm,
97 return new SkSpecialSurface_Raster(proxy, bm.pixelRef(), subset, props);
108 const SkIRect subset local
16 SkSpecialSurface_Base(SkImageFilter::Proxy* proxy, const SkIRect& subset, const SkSurfaceProps* props) argument
44 SkSpecialSurface(SkImageFilter::Proxy* proxy, const SkIRect& subset, const SkSurfaceProps* props) argument
69 SkSpecialSurface_Raster(SkImageFilter::Proxy* proxy, SkPixelRef* pr, const SkIRect& subset, const SkSurfaceProps* props) argument
94 NewFromBitmap(SkImageFilter::Proxy* proxy, const SkIRect& subset, SkBitmap& bm, const SkSurfaceProps* props) argument
120 SkSpecialSurface_Gpu(SkImageFilter::Proxy* proxy, GrTexture* texture, const SkIRect& subset, const SkSurfaceProps* props) argument
151 NewFromTexture(SkImageFilter::Proxy* proxy, const SkIRect& subset, GrTexture* texture, const SkSurfaceProps* props) argument
175 const SkIRect subset = SkIRect::MakeWH(desc.fWidth, desc.fHeight); local
182 NewFromTexture(SkImageFilter::Proxy* proxy, const SkIRect& subset, GrTexture*, const SkSurfaceProps*) argument
[all...]
/external/skia/tests/
H A DPDFGlyphsToUnicodeTest.cpp27 const SkPDFGlyphSet* subset,
36 SkPDFGlyphSet subset; local
75 subset.set(glyphsInSubset.begin(), glyphsInSubset.count());
76 append_cmap_sections(glyphToUnicode, &subset, &buffer, true, 0, 0xFFFF);
98 append_cmap_sections(glyphToUnicode, &subset, &buffer, true, 8, 0x00FF);
116 append_cmap_sections(glyphToUnicode, &subset, &buffer, true, 0x00D, 0x00FE);
H A DSpecialSurfaceTest.cpp21 return surf->subset();
25 return img->subset();
72 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
74 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewFromBitmap(nullptr, subset, bm));
106 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
108 SkAutoTUnref<SkSpecialSurface> surf(SkSpecialSurface::NewFromTexture(nullptr, subset, temp));
H A DSpecialImageTest.cpp22 return img->subset();
65 const SkIRect subset = TestingSpecialImageAccess::Subset(img); local
66 REPORTER_ASSERT(reporter, kPad == subset.left());
67 REPORTER_ASSERT(reporter, kPad == subset.top());
68 REPORTER_ASSERT(reporter, kSmallerSize == subset.width());
69 REPORTER_ASSERT(reporter, kSmallerSize == subset.height());
111 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
113 SkAutoTUnref<SkSpecialImage> img(SkSpecialImage::NewFromRaster(nullptr, subset, bm));
122 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
124 SkAutoTUnref<SkSpecialImage> img(SkSpecialImage::NewFromImage(subset, fullImag
144 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
[all...]
H A DSubsetPath.cpp26 bool SubsetPath::subset(bool testFailed, SkPath* sub) { function in class:SubsetPath
H A DImageFilterCacheTest.cpp31 SkSpecialImage* subset) {
36 SkImageFilter::Cache::Key key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset());
37 SkImageFilter::Cache::Key key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset());
55 SkSpecialImage* subset) {
61 SkImageFilter::Cache::Key key0(0, SkMatrix::I(), clip1, image->uniqueID(), image->subset());
62 SkImageFilter::Cache::Key key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset());
64 image->uniqueID(), image->subset());
65 SkImageFilter::Cache::Key key3(0, SkMatrix::I(), clip2, image->uniqueID(), image->subset());
29 test_find_existing(skiatest::Reporter* reporter, SkSpecialImage* image, SkSpecialImage* subset) argument
53 test_dont_find_if_diff_key(skiatest::Reporter* reporter, SkSpecialImage* image, SkSpecialImage* subset) argument
103 test_explicit_purging(skiatest::Reporter* reporter, SkSpecialImage* image, SkSpecialImage* subset) argument
140 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
157 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
226 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
[all...]
/external/skia/bench/
H A DBitmapRegionDecoderBench.cpp15 uint32_t sampleSize, const SkIRect& subset)
21 , fSubset(subset)
13 BitmapRegionDecoderBench(const char* baseName, SkData* encoded, SkBitmapRegionDecoder::Strategy strategy, SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) argument
/external/skia/src/gpu/
H A DGrImageIDTextureAdjuster.cpp78 SkIRect subset = SkIRect::MakeXYWH(origin.fX, origin.fY, bitmap.width(), local
80 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset);
H A DSkGrPixelRef.cpp54 SkColorProfileType dstPT, const SkIRect* subset) {
66 if (!subset) {
71 SkASSERT(SkIRect::MakeWH(texture->width(), texture->height()).contains(*subset));
72 // Create a new texture that is the size of subset.
73 desc.fWidth = subset->width();
74 desc.fHeight = subset->height();
75 srcRect = *subset;
135 const SkIRect* subset) {
146 return copy_to_new_texture_pixelref(fSurface->asTexture(), dstCT, dstPT, subset);
159 bool SkGrPixelRef::onReadPixels(SkBitmap* dst, SkColorType colorType, const SkIRect* subset) { argument
53 copy_to_new_texture_pixelref(GrTexture* texture, SkColorType dstCT, SkColorProfileType dstPT, const SkIRect* subset) argument
134 deepCopy(SkColorType dstCT, SkColorProfileType dstPT, const SkIRect* subset) argument
[all...]
/external/skia/src/image/
H A DSkImage_Generator.cpp81 SkImage* SkImage_Generator::onNewSubset(const SkIRect& subset) const {
82 // TODO: make this lazy, by wrapping the subset inside a new generator or something
85 const SkImageInfo info = SkImageInfo::MakeN32(subset.width(), subset.height(),
92 surface->getCanvas()->drawImage(this, SkIntToScalar(-subset.x()), SkIntToScalar(-subset.y()),
97 SkImage* SkImage::NewFromGenerator(SkImageGenerator* generator, const SkIRect* subset) { argument
98 SkImageCacherator* cache = SkImageCacherator::NewFromGenerator(generator, subset);
/external/skia/src/lazy/
H A DSkDiscardablePixelRef.cpp104 bool SkDEPRECATED_InstallDiscardablePixelRef(SkImageGenerator* generator, const SkIRect* subset, argument
118 if (subset) {
120 if (subset->isEmpty() || !prBounds.contains(*subset)) {
123 bmInfo = prInfo.makeWH(subset->width(), subset->height());
124 origin.set(subset->x(), subset->y());
/external/dexmaker/src/dx/java/com/android/dx/rop/code/
H A DRegisterSpecList.java296 * Returns a new instance, which contains a subset of the elements
304 public RegisterSpecList subset(BitSet exclusionSet) { method in class:RegisterSpecList
/external/opencv3/modules/stitching/src/
H A Dutil.cpp168 void selectRandomSubset(int count, int size, std::vector<int> &subset) argument
170 subset.clear();
175 subset.push_back(i);
/external/skia/src/effects/
H A DSkTileImageFilter.cpp65 SkBitmap subset; local
74 if (!source.extractSubset(&subset, srcIRect)) {
87 subset = device->accessBitmap(false);
89 SkASSERT(subset.width() == srcIRect.width());
90 SkASSERT(subset.height() == srcIRect.height());
100 SkAutoTUnref<SkShader> shader(SkShader::CreateBitmapShader(subset,
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
H A DBitSet.java426 public boolean subset(BitSet a) { method in class:BitSet
/external/google-breakpad/src/third_party/libdisasm/
H A Dx86_format.c625 static const char *subset[] = { local
638 if ( isa > sizeof (subset)/sizeof(subset[0]) ) {
642 return subset[isa];

Completed in 631 milliseconds

1234