Home
last modified time | relevance | path

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

12345

/external/skia/src/pdf/
DSkBitmapKey.h29 : fImage(std::move(i)) { in fImage() function
30 if (!fImage) { in fImage()
35 fID = fImage->uniqueID(); in fImage()
37 fSubset = fImage->bounds(); in fImage()
42 if (!fSubset.intersect(fImage->bounds())) { in fImage()
43 fImage = nullptr; in fImage()
52 bool isValid() const { return fImage != nullptr; } in isValid()
59 return fSubset == fImage->bounds() ? fImage : fImage->makeSubset(fSubset); in makeImage()
68 canvas->drawImageRect(fImage.get(), src, dst, paint); in draw()
73 sk_sp<SkImage> fImage; variable
/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/core/
DSkBitmapProvider.cpp14 return fImage->width(); in width()
18 return fImage->height(); in height()
22 return fImage->uniqueID(); in getID()
26 return as_IB(fImage)->onImageInfo(); in info()
31 const SkBitmap* bm = as_IB(fImage)->onPeekBitmap(); in isVolatile()
36 return SkBitmapCacheDesc::Make(fImage, w, h); in makeCacheDesc()
40 return SkBitmapCacheDesc::Make(fImage); in makeCacheDesc()
44 as_IB(fImage)->notifyAddedToCache(); in notifyAddedToCache()
48 return as_IB(fImage)->getROPixels(bm, fDstColorSpace, SkImage::kAllow_CachingHint); in asBitmap()
DSkBitmapProvider.h17 : fImage(img) in SkBitmapProvider()
22 : fImage(other.fImage) in SkBitmapProvider()
49 const SkImage* fImage; variable
DSkScalerContext.cpp33 mask->fImage = (uint8_t*)fImage; in toMask()
192 src.fImage = nullptr; // only want the bounds from the filter in getMetrics()
197 SkASSERT(dst.fImage == nullptr); in getMetrics()
221 uint8_t* SK_RESTRICT dst = (uint8_t*)mask.fImage; in applyLUTToA8Mask()
243 uint16_t* dstP = (uint16_t*)dst.fImage; in pack4xHToLCD16()
328 uint8_t* dst = mask.fImage; in packA8ToA1()
396 sk_bzero(mask.fImage, mask.computeImageSize()); in generateMask()
400 dst.reset(info, mask.fImage, dstRB); in generateMask()
436 uint8_t* dstRow = dst.fImage; in extract_alpha()
478 tmpGlyph.fImage = origGlyph.fImage; in getImage()
[all …]
DSkImageFilterCache.cpp41 : fKey(key), fImage(SkRef(image)), fOffset(offset) {} in Value()
44 sk_sp<SkSpecialImage> fImage; member
63 return v->fImage; in get()
108 SkASSERT(v->fImage); in removeInternal()
109 fCurrentBytes -= v->fImage->getSize(); in removeInternal()
DSkGlyph.h147 void* fImage; variable
160 fImage = nullptr; in initWithGlyphID()
191 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage()
194 fImage = alloc->makeArrayDefault<uint32_t>(fWidth * fHeight); in allocImage()
198 fImage = alloc->makeArrayDefault<uint16_t>(allocSize); in allocImage()
202 fImage = alloc->makeArrayDefault<char>(allocSize); in allocImage()
/external/skia/src/effects/
DSkImageSource.cpp41 , fImage(std::move(image)) in SkImageSource()
42 , fSrcRect(SkRect::MakeIWH(fImage->width(), fImage->height())) in SkImageSource()
52 , fImage(std::move(image)) in SkImageSource()
77 buffer.writeImage(fImage.get()); in flatten()
85 SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onFilterImage()
97 return SkSpecialImage::MakeFromImage(SkIRect::MakeWH(fImage->width(), fImage->height()), in onFilterImage()
98 fImage, ctx.outputProperties().colorSpace(), in onFilterImage()
126 canvas->drawImageRect(fImage.get(), fSrcRect, dstRect, &paint, in onFilterImage()
145 fImage->width(), fImage->height()); in toString()
DSkEmbossMaskFilter.cpp73 if (src.fImage == nullptr) { in filterMask()
80 uint8_t* alphaPlane = dst->fImage; in filterMask()
85 dst->fImage = SkMask::AllocImage(planeSize * 3); in filterMask()
86 memcpy(dst->fImage, alphaPlane, planeSize); in filterMask()
105 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()
/external/skia/tools/gpu/gl/mesa/
DGLTestContext_mesa.cpp53 GrGLubyte *fImage; member in __anoncd48c1080111::MesaGLContext
58 , fImage(nullptr) { in MesaGLContext()
76 fImage = (GrGLubyte *) sk_malloc_throw(gBOGUS_SIZE * gBOGUS_SIZE * in MesaGLContext()
78 if (!fImage) { in MesaGLContext()
86 fImage, in MesaGLContext()
117 if (fImage) { in destroyGLContext()
118 sk_free(fImage); in destroyGLContext()
119 fImage = nullptr; in destroyGLContext()
131 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.cpp40 fImage = SkImage::MakeFromBitmap(bm); in onOnceBeforeDraw()
49 const SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onDraw()
53 sk_sp<SkImageFilter> imageSource(SkImageSource::Make(fImage)); in onDraw()
60 SkImageSource::Make(fImage, srcRect, srcRect, kHigh_SkFilterQuality)); in onDraw()
67 SkImageSource::Make(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); in onDraw()
74 SkImageSource::Make(fImage, bounds, dstRect, kHigh_SkFilterQuality)); in onDraw()
81 sk_sp<SkImage> fImage; member in ImageSourceGM
Dimagefiltersgraph.cpp41 fImage = SkImage::MakeFromBitmap( in onOnceBeforeDraw()
48 sk_sp<SkImageFilter> bitmapSource(SkImageSource::Make(fImage)); in onDraw()
78 DrawClippedImage(canvas, fImage.get(), paint); in onDraw()
96 DrawClippedImage(canvas, fImage.get(), paint); in onDraw()
109 DrawClippedImage(canvas, fImage.get(), paint); in onDraw()
140 DrawClippedImage(canvas, fImage.get(), paint); in onDraw()
176 sk_sp<SkImage> fImage; member in ImageFiltersGraphGM
/external/skia/tools/viewer/
DImageSlide.cpp19 return fImage ? fImage->dimensions() : SkISize::Make(0, 0); in getDimensions()
23 SkASSERT(fImage); in draw()
24 canvas->drawImage(fImage, 0, 0); in draw()
29 fImage = SkImage::MakeFromEncoded(encoded); in load()
33 fImage.reset(nullptr); in unload()
/external/skia/tests/
DVkWrapTests.cpp47 backendCopy.fImage = VK_NULL_HANDLE; in wrap_tex_test()
55 backendCopy.fImage = backendTex->fImage; in wrap_tex_test()
91 backendCopy.fImage = VK_NULL_HANDLE; in wrap_rt_test()
97 backendCopy.fImage = backendTex->fImage; in wrap_rt_test()
127 backendCopy.fImage = VK_NULL_HANDLE; in wrap_trt_test()
135 backendCopy.fImage = backendTex->fImage; in wrap_trt_test()
DAAClipTest.cpp21 if (!a.fImage && !b.fImage) { in operator ==()
24 if (!a.fImage || !b.fImage) { in operator ==()
48 const char* aptr = (const char*)a.fImage; in operator ==()
49 const char* bptr = (const char*)b.fImage; in operator ==()
66 mask->fImage = nullptr; in copyToMask()
72 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
73 sk_bzero(mask->fImage, mask->computeImageSize()); in copyToMask()
80 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask()
115 SkMask::FreeImage(mask0.fImage); in operator ==()
116 SkMask::FreeImage(mask1.fImage); in operator ==()
[all …]
/external/skia/src/gpu/vk/
DGrVkImage.h36 fResource = new BorrowedResource(info.fImage, info.fAlloc, info.fImageTiling); in GrVkImage()
38 fResource = new Resource(info.fImage, info.fAlloc, info.fImageTiling); in GrVkImage()
43 VkImage image() const { return fInfo.fImage; } in image()
101 , fImage(VK_NULL_HANDLE) { in Resource()
107 : fImage(image), fAlloc(alloc), fImageTiling(tiling) {} in Resource()
113 SkDebugf("GrVkImage: %d (%d refs)\n", fImage, this->getRefCnt()); in dumpInfo()
119 VkImage fImage; variable
DGrVkTextureRenderTarget.cpp26 VkImage image = info.fImage; in Create()
63 colorImage = msInfo.fImage; in Create()
76 colorImage = info.fImage; in Create()
145 SkASSERT(VK_NULL_HANDLE != info->fImage && VK_NULL_HANDLE != info->fAlloc.fMemory); in MakeWrappedTextureRenderTarget()
160 newInfo.fImage, in updateForMipmap()
171 newInfo.fImage, in updateForMipmap()
/external/skia/bench/
DPDFBench.cpp78 fImage = SkImage::MakeRasterCopy(pixmap); in onDelayedSetup()
83 if (!fImage) { in onDraw()
87 auto object = SkPDFCreateBitmapObject(fImage, nullptr); in onDraw()
97 sk_sp<SkImage> fImage; member in __anon0b7e5f620211::PDFImageBench
116 fImage = img; in onDelayedSetup()
119 if (!fImage) { in onDraw()
124 auto object = SkPDFCreateBitmapObject(fImage, nullptr); in onDraw()
134 sk_sp<SkImage> fImage; member in __anon0b7e5f620211::PDFJpegImageBench
DImageBench.cpp36 fImage = surface->makeImageSnapshot(); in onPerCanvasPreDraw()
46 fImage.reset(nullptr); in onPerCanvasPostDraw()
52 fRasterSurface->getCanvas()->drawImage(fImage.get(), 0, 0); in onDraw()
59 sk_sp<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()
DImageFilterDAGBench.cpp61 fImage = GetResourceAsImage("mandrill_512.png"); in onDelayedSetup()
65 SkIRect subset = SkIRect::MakeSize(fImage->dimensions()); in onDraw()
68 sk_sp<SkImage> image = fImage; in onDraw()
81 SkASSERT(image && image->dimensions() == fImage->dimensions()); in onDraw()
87 sk_sp<SkImage> fImage; member in ImageMakeWithFilterDAGBench
/external/skia/samplecode/
DSampleFilterQuality.cpp145 sk_sp<SkImage> fImage; member in FilterQualityView
153 FilterQualityView() : fImage(make_image()), fTrans(2, 2), fShowFatBits(true) { in FilterQualityView()
205 … canvas->drawImage(fImage.get(), -SkScalarHalf(fImage->width()), -SkScalarHalf(fImage->height()), in drawTheImage()
218 SkISize size = SkISize::Make(fImage->width(), fImage->height()); in drawHere()
223 SkImageInfo info = SkImageInfo::MakeN32(fImage->width() * 2, fImage->height() * 2, in drawHere()
230 canvas->translate(SkScalarHalf(fCell.width() - fImage->width()), in drawHere()
231 SkScalarHalf(fCell.height() - fImage->height())); in drawHere()

12345