Searched defs:subset (Results 1 - 25 of 85) 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_serif.py18 """Create a curated subset of Noto Serif for Android."""
22 from nototools import subset namespace
51 subset.subset_font(
H A Dsubset_noto_sans_symbols.py18 """Create a curated subset of NotoSansSymbols for Android."""
25 from nototools import subset namespace
171 subset.subset_font(
178 subset.subset_font(
/external/skia/gm/
H A Dxform_image_gen.cpp39 SkIRect subset = SkIRect::MakeXYWH(25, 25, 50, 50); variable
40 sk_sp<SkImage> image = SkImage::MakeFromGenerator(std::move(gen), &subset);
H A Dcrosscontextimage.cpp31 SkIRect subset = SkIRect::MakeXYWH(256 - 64, 256 - 64, 128, 128); local
32 sk_sp<SkImage> encodedSubset = encodedImage->makeSubset(subset);
33 sk_sp<SkImage> crossContextSubset = crossContextImage->makeSubset(subset);
H A Dextractbitmap.cpp53 // Do some subset drawing. This will test that an SkGPipe properly
56 SkBitmap subset; variable
57 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
58 canvas->drawBitmap(subset, 0, 0);
60 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, y));
61 canvas->drawBitmap(subset, SkIntToScalar(x), SkIntToScalar(y));
62 // Draw a subset which has the same height and pixelref offset but a
64 bitmap.extractSubset(&subset, SkIRect::MakeWH(x, bitmap.height()));
67 canvas->drawBitmap(subset, 0, 0);
70 bitmap.extractSubset(&subset, SkIRec
[all...]
H A Dimagemasksubset.cpp70 // Checks whether subset SkImages preserve the original color type (A8 in this case).
81 sk_sp<SkImage> subset = image->makeSubset(kSubset); local
82 canvas->drawImageRect(subset, kDest.makeOffset(kSize.width() * 1.5f, 0), &paint);
H A Dimagemakewithfilter.cpp19 static void show_bounds(SkCanvas* canvas, const SkIRect& subset, const SkIRect& clip) { argument
20 SkIRect rects[] { subset, clip };
34 // We'll then draw the appropriate subset of the result to the screen at the
83 SkIRect subset = SkIRect::MakeXYWH(25, 25, 50, 50); variable
86 sk_sp<SkImage> result = source->makeWithFilter(filters[i].get(), subset, clipBound,
H A Dverylargebitmap.cpp61 SkIRect subset = SkIRect::MakeLTRB(hw - 64, hh - 32, hw + 64, hh + 32); local
62 canvas->drawImageRect(image, subset, dstRect, nullptr);
/external/skia/src/core/
H A DSkSpecialSurface.h71 static sk_sp<SkSpecialSurface> MakeFromBitmap(const SkIRect& subset, SkBitmap& bm,
85 SkSpecialSurface(const SkIRect& subset, const SkSurfaceProps*);
89 const SkIRect& subset() const { return fSubset; } function in class:SkSpecialSurface
H A DSkSpecialImage.h42 * Note: the contents of the backing storage outside of the subset rect are undefined.
53 const SkIRect& subset() const { return fSubset; } function in class:SkSpecialImage
72 static sk_sp<SkSpecialImage> MakeFromImage(const SkIRect& subset,
76 static sk_sp<SkSpecialImage> MakeFromRaster(const SkIRect& subset,
81 const SkIRect& subset,
105 * Extract a subset of this special image and return it as a special image.
108 sk_sp<SkSpecialImage> makeSubset(const SkIRect& subset) const;
111 * Create an SkImage from the contents of this special image optionally extracting a subset.
113 * Note: when no 'subset' parameter is specified the the entire SkSpecialImage will be
115 * When the 'subset' paramete
[all...]
H A DSkSpecialSurface.cpp16 SkSpecialSurface_Base(const SkIRect& subset, const SkSurfaceProps* props) argument
17 : INHERITED(subset, props)
43 SkSpecialSurface::SkSpecialSurface(const SkIRect& subset, argument
46 , fSubset(subset) {
68 const SkIRect& subset,
70 : INHERITED(subset, props) {
76 fCanvas->clipRect(SkRect::Make(subset));
85 return SkSpecialImage::MakeFromRaster(this->subset(), fBitmap, &this->props());
94 sk_sp<SkSpecialSurface> SkSpecialSurface::MakeFromBitmap(const SkIRect& subset, SkBitmap& bm, argument
96 if (subset
66 SkSpecialSurface_Raster(const SkImageInfo& info, sk_sp<SkPixelRef> pr, const SkIRect& subset, const SkSurfaceProps* props) argument
113 const SkIRect subset = SkIRect::MakeWH(info.width(), info.height()); local
125 SkSpecialSurface_Gpu(GrContext* context, sk_sp<GrRenderTargetContext> renderTargetContext, int width, int height, const SkIRect& subset) argument
180 const SkIRect subset = SkIRect::MakeWH(width, height); local
[all...]
/external/skia/src/pdf/
H A DSkKeyedImage.cpp33 SkKeyedImage SkKeyedImage::subset(SkIRect subset) const { function in class:SkKeyedImage
35 if (fImage && subset.intersect(fImage->bounds())) {
36 img.fImage = fImage->makeSubset(subset);
38 img.fKey = {subset.makeOffset(fKey.fSubset.x(), fKey.fSubset.y()), fKey.fID};
H A DSkPDFMakeToUnicodeCmap.cpp151 const SkBitSet* subset,
174 (subset == nullptr || subset->has(i + glyphOffset));
214 const SkBitSet* subset,
220 SkPDFAppendCmapSections(glyphToUnicode, subset, &cmap, multiByteGlyphs,
150 SkPDFAppendCmapSections(const SkTDArray<SkUnichar>& glyphToUnicode, const SkBitSet* subset, SkDynamicMemoryWStream* cmap, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) argument
/external/skia/bench/
H A DBitmapRegionDecoderBench.cpp14 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset)
19 , fSubset(subset)
13 BitmapRegionDecoderBench(const char* baseName, SkData* encoded, SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) argument
H A DImageFilterDAGBench.cpp64 SkIRect subset = SkIRect::MakeSize(fImage->dimensions()); variable
76 image = image->makeWithFilter(mergeFilter.get(), subset, subset, &discardSubset,
/external/skia/samplecode/
H A DSampleWritePixels.cpp50 SkBitmap subset; local
51 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
56 canvas->writePixels(subset, 0, 0);
/external/skia/src/android/
H A DSkBitmapRegionDecoderPriv.h20 * Corrects image subset offsets and dimensions in order to perform a valid decode.
21 * Also indicates if the image subset should be placed at an offset within the
27 * @param subset As input, the subset that the client requested.
28 * As output, the image subset that we will decode.
29 * @param outX The left offset of the image subset within the output bitmap.
30 * @param outY The top offset of the image subset within the output bitmap.
32 * @return An indication of how the subset is contained in the image.
35 inline SubsetType adjust_subset_rect(const SkISize& imageDims, SkIRect* subset, int* outX, argument
38 int left = SkTMax(0, subset
[all...]
H A DSkBitmapRegionCodec.cpp29 // requested subset, not by the size of the intersection of the subset
39 SkIRect subset = desiredSubset; local
40 SubsetType type = adjust_subset_rect(fCodec->getInfo().dimensions(), &subset, &outX, &outY);
45 // Ask the codec for a scaled subset
46 if (!fCodec->getSupportedSubset(&subset)) {
47 SkCodecPrintf("Error: Could not get subset.\n");
50 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset);
68 // We need to be safe here because getSupportedSubset() may have modified the subset.
69 const int extraX = SkTMax(0, desiredSubset.width() - outX - subset
[all...]
/external/skia/src/gpu/
H A DGrBitmapTextureMaker.cpp24 SkIRect subset = SkIRect::MakeXYWH(origin.fX, origin.fY, bitmap.width(), local
26 GrMakeKeyFromImageID(&fOriginalKey, bitmap.pixelRef()->getGenerationID(), subset);
H A DGrBackendTextureImageGenerator.cpp130 // and re-used. If they draw a subset, though, we may be re-called. In that case, we want
176 // Otherwise, make a copy of the requested subset. Make sure our temporary is renderable,
192 SkIRect subset = SkIRect::MakeXYWH(origin.fX, origin.fY, info.width(), info.height()); local
193 if (!sContext->copy(proxy.get(), subset, SkIPoint::Make(0, 0))) {
H A DGrTextureProducer.cpp19 const SkIRect* subset,
21 SkASSERT(!subset || !subset->isEmpty());
36 if (subset) {
37 localRect = SkRect::Make(*subset);
48 needsDomain = subset && resizing;
56 // This would cause us to read values from outside the subset. Surely, the caller knows
17 CopyOnGpu(GrContext* context, sk_sp<GrTextureProxy> inputProxy, const SkIRect* subset, const CopyParams& copyParams) argument
/external/skia/tests/
H A DSpecialSurfaceTest.cpp22 return surf->subset();
51 const SkIRect imgSubset = img->subset();
71 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local
73 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm));
H A DSubsetPath.cpp27 bool SubsetPath::subset(bool testFailed, SkPath* sub) { function in class:SubsetPath
/external/skia/src/effects/
H A DSkTileImageFilter.cpp74 sk_sp<SkImage> subset; local
76 subset = input->asImage(&srcIRect);
77 if (!subset) {
96 subset = surf->makeImageSnapshot();
98 SkASSERT(subset->width() == srcIRect.width());
99 SkASSERT(subset->height() == srcIRect.height());
111 paint.setShader(subset->makeShader(SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode));

Completed in 817 milliseconds

1234