Home
last modified time | relevance | path

Searched refs:fImage (Results 1 – 25 of 85) sorted by relevance

1234

/external/skia/src/core/
DSkBitmapProvider.cpp13 return fImage ? fImage->width() : fBitmap.width(); in width()
17 return fImage ? fImage->height() : fBitmap.height(); in height()
21 return fImage ? fImage->uniqueID() : fBitmap.getGenerationID(); in getID()
25 if (!fImage) { in validForDrawing()
47 if (fImage) { in info()
48 SkAlphaType at = fImage->isOpaque() ? kOpaque_SkAlphaType : kPremul_SkAlphaType; in info()
49 return SkImageInfo::MakeN32(fImage->width(), fImage->height(), at); in info()
56 if (fImage) { in isVolatile()
64 return fImage ? SkBitmapCacheDesc::Make(fImage, w, h) : SkBitmapCacheDesc::Make(fBitmap, w, h); in makeCacheDesc()
68 return fImage ? SkBitmapCacheDesc::Make(fImage) : SkBitmapCacheDesc::Make(fBitmap); in makeCacheDesc()
[all …]
DSkBitmapProvider.h18 explicit SkBitmapProvider(const SkImage* img) : fImage(SkSafeRef(img)) {} in SkBitmapProvider()
21 , fImage(SkSafeRef(other.fImage.get())) in SkBitmapProvider()
42 SkAutoTUnref<const SkImage> fImage; variable
DSkSpecialImage.cpp96 , fImage(SkRef(image)) { in SkSpecialImage_Image()
101 bool isOpaque() const override { return fImage->isOpaque(); } in isOpaque()
105 if (fImage->getTexture()) { in getSize()
106 return fImage->getTexture()->gpuMemorySize(); in getSize()
113 if (fImage->peekPixels(&info, &rowBytes)) { in getSize()
123 canvas->drawImageRect(fImage, this->subset(), in onDraw()
128 return fImage->peekPixels(pixmap); in onPeekPixels()
131 GrTexture* onPeekTexture() const override { return fImage->getTexture(); } in onPeekTexture()
139 GrTexture* texture = fImage->getTexture(); in onNewSurface()
151 SkAutoTUnref<const SkImage> fImage; member in SkSpecialImage_Image
DSkScalerContext.cpp31 mask->fImage = (uint8_t*)fImage; in toMask()
210 src.fImage = nullptr; // only want the bounds from the filter in getMetrics()
215 SkASSERT(dst.fImage == nullptr); in getMetrics()
239 uint8_t* SK_RESTRICT dst = (uint8_t*)mask.fImage; in applyLUTToA8Mask()
261 uint16_t* dstP = (uint16_t*)dst.fImage; in pack4xHToLCD16()
346 uint8_t* dst = mask.fImage; in packA8ToA1()
414 sk_bzero(mask.fImage, mask.computeImageSize()); in generateMask()
418 dst.reset(info, mask.fImage, dstRB); in generateMask()
455 uint8_t* dstRow = dst.fImage; in extract_alpha()
498 tmpGlyph.fImage = origGlyph.fImage; in getImage()
[all …]
DSkMaskFilter.cpp26 SkASSERT((const void*)fMask.fImage == fCache->data()); in ~NinePatch()
29 SkMask::FreeImage(fMask.fImage); in ~NinePatch()
47 dst->fImage = src.fImage + dy * src.fRowBytes + dx; in extractMaskSubset()
224 patch.fMask.fImage = nullptr; in filterRRect()
228 SkASSERT(nullptr == patch.fMask.fImage); in filterRRect()
248 SkASSERT(nullptr == patch.fMask.fImage); in filterPath()
257 SkASSERT(nullptr == patch.fMask.fImage); in filterPath()
270 SkAutoMaskFreeImage autoSrc(srcM.fImage); in filterPath()
275 SkAutoMaskFreeImage autoDst(dstM.fImage); in filterPath()
/external/skia/include/core/
DSkMask.h20 SkMask() : fImage(nullptr) {} in SkMask()
34 uint8_t* fImage; member
62 SkASSERT(fImage != NULL); in getAddr1()
63 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
73 SkASSERT(fImage != NULL); in getAddr8()
74 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
85 SkASSERT(fImage != NULL); in getAddrLCD16()
86 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
98 SkASSERT(fImage != NULL); in getAddr32()
99 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32()
[all …]
/external/skia/src/gpu/gl/mesa/
DSkMesaGLContext.cpp18 , fImage(nullptr) { in SkMesaGLContext()
34 fImage = (GrGLubyte *) sk_malloc_throw(gBOGUS_SIZE * gBOGUS_SIZE * in SkMesaGLContext()
36 if (!fImage) { in SkMesaGLContext()
44 fImage, in SkMesaGLContext()
75 if (fImage) { in destroyGLContext()
76 sk_free(fImage); in destroyGLContext()
77 fImage = nullptr; in destroyGLContext()
90 if (!OSMesaMakeCurrent((OSMesaContext)fContext, fImage, in onPlatformMakeCurrent()
/external/dng_sdk/source/
Ddng_preview.cpp188 : fImage () in dng_image_preview()
210 fIFD.fImageWidth = fImage->Width (); in AddTagSet()
211 fIFD.fImageLength = fImage->Height (); in AddTagSet()
213 fIFD.fSamplesPerPixel = fImage->Planes (); in AddTagSet()
218 fIFD.fBitsPerSample [0] = TagTypeSize (fImage->PixelType ()) * 8; in AddTagSet()
243 *fImage.Get ()); in WriteData()
483 preview.fImage->Planes ()) in dng_raw_preview_tag_set()
497 if (preview.fImage->PixelType () == ttFloat) in dng_raw_preview_tag_set()
522 : fImage () in dng_raw_preview()
545 fIFD.fImageWidth = fImage->Width (); in AddTagSet()
[all …]
Ddng_opcodes.cpp423 dng_image &fImage; member in dng_inplace_opcode_task
439 , fImage (image) in dng_inplace_opcode_task()
453 fImage.Planes(), pad16Bytes); in Start()
465 fImage.Bounds (), in Start()
466 fImage.Planes (), in Start()
479 dng_pixel_buffer buffer(tile, 0, fImage.Planes (), fPixelType, in Process()
485 fImage.Get (buffer); in Process()
493 fImage.Bounds ()); in Process()
497 fImage.Put (buffer); in Process()
/external/skia/gm/
Dimagesource.cpp28 fImage.reset(SkImage::NewFromBitmap(bm)); in onOnceBeforeDraw()
46 SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onDraw()
47 SkAutoTUnref<SkImageFilter> imageSource(SkImageSource::Create(fImage)); in onDraw()
49 SkImageSource::Create(fImage, srcRect, srcRect, kHigh_SkFilterQuality)); in onDraw()
51 SkImageSource::Create(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); in onDraw()
53 SkImageSource::Create(fImage, bounds, dstRect, kHigh_SkFilterQuality)); in onDraw()
74 SkAutoTUnref<SkImage> fImage; member in ImageSourceGM
Dimagefiltersgraph.cpp114 fImage.reset(SkImage::NewFromBitmap( in onOnceBeforeDraw()
121 SkAutoTUnref<SkImageFilter> bitmapSource(SkImageSource::Create(fImage)); in onDraw()
149 DrawClippedImage(canvas, fImage, paint); in onDraw()
168 DrawClippedImage(canvas, fImage, paint); in onDraw()
182 DrawClippedImage(canvas, fImage, paint); in onDraw()
216 DrawClippedImage(canvas, fImage, paint); in onDraw()
248 SkAutoTUnref<SkImage> fImage; member in ImageFiltersGraphGM
Dninepatchstretch.cpp57 SkAutoTUnref<SkImage> fImage; member in NinePatchStretchGM
74 fImage.reset(make_image(canvas, &fCenter)); in onDraw()
75 image_to_bitmap(fImage, &fBitmap); in onDraw()
103 canvas->drawImageNine(fImage, fCenter, r.makeOffset(360, 0), &paint); in onDraw()
Ddrawminibitmaprect.cpp82 if (nullptr == fImage) { in onDraw()
83 fImage.reset(makebm(canvas, gSurfaceSize, gSurfaceSize)); in onDraw()
116 canvas->drawImageRect(fImage, srcRect, dstRect, &paint, in onDraw()
135 SkAutoTUnref<SkImage> fImage; member in DrawMiniBitmapRectGM
Dimagesource2.cpp59 fImage.reset(surface->newImageSnapshot()); in onOnceBeforeDraw()
68 SkImageSource::Create(fImage, srcRect, dstRect, fFilter)); in onDraw()
82 SkAutoTUnref<SkImage> fImage; member in skiagm::ImageSourceGM
/external/skia/src/effects/
DSkImageSource.cpp30 , fImage(SkRef(image)) in SkImageSource()
40 , fImage(SkRef(image)) in SkImageSource()
64 buffer.writeImage(fImage); in flatten()
71 SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onFilterImageDeprecated()
75 return fImage->asLegacyBitmap(result, SkImage::kRO_LegacyBitmapMode); in onFilterImageDeprecated()
95 canvas.drawImageRect(fImage, fSrcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); in onFilterImageDeprecated()
115 fImage->width(), fImage->height()); in toString()
DSkEmbossMaskFilter.cpp90 if (src.fImage == nullptr) { in filterMask()
97 uint8_t* alphaPlane = dst->fImage; in filterMask()
102 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
103 memcpy(dst->fImage, alphaPlane, planeSize); in filterMask()
122 memcpy(dst->fImage, src.fImage, src.computeImageSize()); in filterMask()
DSkTableMaskFilter.cpp36 dst->fImage = nullptr; in filterMask()
38 if (src.fImage) { in filterMask()
39 dst->fImage = SkMask::AllocImage(dst->computeImageSize()); in filterMask()
41 const uint8_t* srcP = src.fImage; in filterMask()
42 uint8_t* dstP = dst->fImage; in filterMask()
DSkBlurMask.cpp533 dst->fImage = nullptr; in BoxBlur()
535 if (src.fImage) { in BoxBlur()
543 const uint8_t* sp = src.fImage; in BoxBlur()
584 dst->fImage = dp; in BoxBlur()
593 dst->fImage = SkMask::AllocImage(srcSize); in BoxBlur()
594 merge_src_with_blur(dst->fImage, src.fRowBytes, in BoxBlur()
757 dst->fImage = nullptr; in BlurRect()
782 dst->fImage = dp; in BlurRect()
808 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect()
811 uint8_t *inner_scanline = dst->fImage + y*sw; in BlurRect()
[all …]
/external/skia/bench/
DPDFBench.cpp55 fImage.reset(SkImage::NewRasterCopy( in onDelayedSetup()
62 if (!fImage) { in onDraw()
67 SkPDFCreateBitmapObject(fImage, nullptr)); in onDraw()
77 SkAutoTUnref<SkImage> fImage; member in __anonffb17ae30111::PDFImageBench
97 fImage.reset(img.release()); in onDelayedSetup()
100 if (!fImage) { in onDraw()
106 SkPDFCreateBitmapObject(fImage, nullptr)); in onDraw()
116 SkAutoTUnref<SkImage> fImage; member in __anonffb17ae30111::PDFJpegImageBench
DImageBench.cpp36 fImage.reset(surface->newImageSnapshot()); in onPerCanvasPreDraw()
46 fImage.reset(nullptr); in onPerCanvasPostDraw()
52 fRasterSurface->getCanvas()->drawImage(fImage, 0, 0); in onDraw()
59 SkAutoTUnref<SkImage> fImage; member in Image2RasterBench
DBlurRectBench.cpp97 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
109 SkMask::FreeImage(fSrcMask.fImage); in ~BlurRectSeparableBench()
114 SkMask::FreeImage(fSrcMask.fImage); in preBenchSetup()
119 fSrcMask.fImage = SkMask::AllocImage(fSrcMask.computeTotalImageSize()); in preBenchSetup()
121 memset(fSrcMask.fImage, 0xff, fSrcMask.computeTotalImageSize()); in preBenchSetup()
151 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
179 SkMask::FreeImage(mask.fImage); in makeBlurryRect()
/external/skia/src/image/
DSkImageShader.cpp17 , fImage(SkRef(img)) in SkImageShader()
38 buffer.writeImage(fImage); in flatten()
42 return fImage->isOpaque(); in isOpaque()
51 SkBitmapProvider(fImage), rec, storage); in onCreateContext()
69 fImage->toString(str); in toString()
91 matrix.setIDiv(fImage->width(), fImage->height()); in asFragmentProcessor()
116 SkAutoTUnref<GrTexture> texture(as_IB(fImage)->asTextureRef(context, params)); in asFragmentProcessor()
/external/skia/tests/
DAAClipTest.cpp20 if (!a.fImage && !b.fImage) { in operator ==()
23 if (!a.fImage || !b.fImage) { in operator ==()
47 const char* aptr = (const char*)a.fImage; in operator ==()
48 const char* bptr = (const char*)b.fImage; in operator ==()
65 mask->fImage = nullptr; in copyToMask()
71 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
72 sk_bzero(mask->fImage, mask->computeImageSize()); in copyToMask()
79 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask()
114 SkMask::FreeImage(mask0.fImage); in operator ==()
115 SkMask::FreeImage(mask1.fImage); in operator ==()
[all …]
/external/skia/samplecode/
DSampleFilterQuality.cpp159 SkAutoTUnref<SkImage> fImage; member in FilterQualityView
167 FilterQualityView() : fImage(make_image()), fTrans(2, 2), fShowFatBits(true) { in FilterQualityView()
219 canvas->drawImage(fImage, -SkScalarHalf(fImage->width()), -SkScalarHalf(fImage->height()), in drawTheImage()
232 SkISize size = SkISize::Make(fImage->width(), fImage->height()); in drawHere()
237 SkImageInfo info = SkImageInfo::MakeN32(fImage->width() * 2, fImage->height() * 2, in drawHere()
244 canvas->translate(SkScalarHalf(fCell.width() - fImage->width()), in drawHere()
245 SkScalarHalf(fCell.height() - fImage->height())); in drawHere()
/external/skia/src/gpu/vk/
DGrVkImage.h28 VkImage fImage; variable
32 Resource() : INHERITED(), fImage(nullptr), fAlloc(nullptr), fFlags(kNo_Flags) {} in Resource()
35 : fImage(image), fAlloc(alloc), fFlags(flags) {} in Resource()
56 VkImage textureImage() const { return fResource->fImage; } in textureImage()

1234