/external/fonttools/Tools/ |
H A D | pyftsubset | 4 from fontTools import subset namespace 6 subset.main(sys.argv[1:])
|
/external/skia/src/android/ |
H A D | SkBitmapRegionDecoderPriv.h | 20 * 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...] |
/external/skqp/src/android/ |
H A D | SkBitmapRegionDecoderPriv.h | 20 * 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...] |
/external/skia/src/pdf/ |
H A D | SkPDFMakeToUnicodeCmap.h | 16 const SkBitSet* subset, 23 const SkBitSet* subset,
|
H A D | SkPDFMakeCIDGlyphWidthsArray.h | 19 const SkBitSet* subset,
|
H A D | SkKeyedImage.cpp | 33 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 D | SkKeyedImage.h | 34 SkKeyedImage subset(SkIRect subset) const;
|
/external/skqp/src/pdf/ |
H A D | SkPDFMakeToUnicodeCmap.h | 16 const SkBitSet* subset, 23 const SkBitSet* subset,
|
H A D | SkPDFMakeCIDGlyphWidthsArray.h | 19 const SkBitSet* subset,
|
H A D | SkKeyedImage.cpp | 33 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 D | SkKeyedImage.h | 34 SkKeyedImage subset(SkIRect subset) const;
|
/external/skia/src/core/ |
H A D | SkSpecialSurface.cpp | 16 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...] |
H A D | SkSpecialImage.h | 42 * 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 D | SkSpecialSurface.h | 71 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 D | SkSpecialImage.cpp | 37 SkSpecialImage_Base(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps* props) argument 38 : INHERITED(subset, uniqueID, props) { 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 59 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0; 73 SkSpecialImage::SkSpecialImage(const SkIRect& subset, argument 77 , fSubset(subset) 113 // GrMakeCachedBitmapProxy has uploaded only the specified subset of 'bmp' so we need not 163 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { 164 return as_SIB(this)->onMakeSubset(subset); 167 sk_sp<SkImage> SkSpecialImage::asImage(const SkIRect* subset) cons 186 MakeFromImage(const SkIRect& subset, sk_sp<SkImage> image, SkColorSpace* dstColorSpace, const SkSurfaceProps* props) argument 213 SkSpecialImage_Raster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps* props) argument 317 MakeFromRaster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps* props) argument 350 SkSpecialImage_Gpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, SkAlphaType at, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) argument 508 MakeDeferredFromGpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props, SkAlphaType at) argument [all...] |
/external/skqp/src/core/ |
H A D | SkSpecialSurface.cpp | 16 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...] |
H A D | SkSpecialImage.h | 42 * 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 D | SkSpecialSurface.h | 71 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 D | SkSpecialImage.cpp | 37 SkSpecialImage_Base(const SkIRect& subset, uint32_t uniqueID, const SkSurfaceProps* props) argument 38 : INHERITED(subset, uniqueID, props) { 54 virtual sk_sp<SkSpecialImage> onMakeSubset(const SkIRect& subset) const = 0; 59 virtual sk_sp<SkImage> onAsImage(const SkIRect* subset) const = 0; 73 SkSpecialImage::SkSpecialImage(const SkIRect& subset, argument 77 , fSubset(subset) 113 // GrMakeCachedBitmapProxy has uploaded only the specified subset of 'bmp' so we need not 163 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { 164 return as_SIB(this)->onMakeSubset(subset); 167 sk_sp<SkImage> SkSpecialImage::asImage(const SkIRect* subset) cons 186 MakeFromImage(const SkIRect& subset, sk_sp<SkImage> image, SkColorSpace* dstColorSpace, const SkSurfaceProps* props) argument 213 SkSpecialImage_Raster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps* props) argument 317 MakeFromRaster(const SkIRect& subset, const SkBitmap& bm, const SkSurfaceProps* props) argument 350 SkSpecialImage_Gpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, SkAlphaType at, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) argument 505 MakeDeferredFromGpu(GrContext* context, const SkIRect& subset, uint32_t uniqueID, sk_sp<GrTextureProxy> proxy, sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props, SkAlphaType at) argument [all...] |
/external/skia/gm/ |
H A D | extractbitmap.cpp | 53 // 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 D | crosscontextimage.cpp | 40 SkIRect subset = SkIRect::MakeXYWH(256 - 64, 256 - 64, 128, 128); local 41 sk_sp<SkImage> encodedSubset = encodedImage->makeSubset(subset); 42 sk_sp<SkImage> crossContextSubset = crossContextImage->makeSubset(subset); 43 sk_sp<SkImage> crossContextRasterSubset = crossContextRaster->makeSubset(subset);
|
/external/skqp/gm/ |
H A D | extractbitmap.cpp | 53 // 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...] |
/external/noto-fonts/other/ |
H A D | subset_noto_serif.py | 18 """Create a curated subset of Noto Serif for Android.""" 22 from nototools import subset namespace 51 subset.subset_font(
|
/external/skia/tests/ |
H A D | SpecialImageTest.cpp | 60 const SkIRect subset = img->subset(); local 61 REPORTER_ASSERT(reporter, offset == subset.left()); 62 REPORTER_ASSERT(reporter, offset == subset.top()); 63 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); 64 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); 92 // Test that draw restricts itself to the subset 119 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); 123 REPORTER_ASSERT(reporter, tightImg->width() == subset 149 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 171 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 214 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 285 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 325 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local [all...] |
/external/skqp/tests/ |
H A D | SpecialImageTest.cpp | 60 const SkIRect subset = img->subset(); local 61 REPORTER_ASSERT(reporter, offset == subset.left()); 62 REPORTER_ASSERT(reporter, offset == subset.top()); 63 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); 64 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); 92 // Test that draw restricts itself to the subset 119 SkIRect newSubset = SkIRect::MakeWH(subset.width(), subset.height()); 123 REPORTER_ASSERT(reporter, tightImg->width() == subset 149 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 171 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 214 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 285 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local 325 const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); local [all...] |