Home
last modified time | relevance | path

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

12345678910

/external/skia/samplecode/
DSampleAnimatedImage.cpp26 sk_sp<SkAnimatedImage> fImage; member in SampleAnimatedImage
50 if (!fImage) { in onDrawContent()
56 canvas->drawDrawable(fImage.get()); in onDrawContent()
57 canvas->drawDrawable(fDrawable.get(), fImage->getBounds().width(), 0); in onDrawContent()
61 if (!fImage) { in onAnimate()
71 fTimeToShowNextFrame += fImage->decodeNextFrame(); in onAnimate()
72 if (fImage->isFinished()) { in onAnimate()
88 fImage = SkAnimatedImage::Make(SkAndroidCodec::MakeFromCodec(std::move(codec))); in onOnceBeforeDraw()
89 if (!fImage) { in onOnceBeforeDraw()
93 fTimeToShowNextFrame = fImage->currentFrameDuration(); in onOnceBeforeDraw()
[all …]
/external/skqp/samplecode/
DSampleAnimatedImage.cpp49 if (!fImage) { in onDrawContent()
55 canvas->drawDrawable(fImage.get()); in onDrawContent()
56 canvas->drawDrawable(fDrawable.get(), fImage->getBounds().width(), 0); in onDrawContent()
60 if (!fImage) { in onAnimate()
70 fTimeToShowNextFrame += fImage->decodeNextFrame(); in onAnimate()
71 if (fImage->isFinished()) { in onAnimate()
87 fImage = SkAnimatedImage::Make(SkAndroidCodec::MakeFromCodec(std::move(codec))); in onOnceBeforeDraw()
88 if (!fImage) { in onOnceBeforeDraw()
92 fTimeToShowNextFrame = fImage->currentFrameDuration(); in onOnceBeforeDraw()
94 auto canvas = recorder.beginRecording(fImage->getBounds()); in onOnceBeforeDraw()
[all …]
/external/skqp/src/gpu/
DGrImageTextureMaker.cpp17 , fImage(static_cast<const SkImage_Lazy*>(client)) in GrImageTextureMaker()
26 return fImage->lockTextureProxy(this->context(), fOriginalKey, fCachingHint, in refOriginalTextureProxy()
33 fImage->makeCacheKeyFromOrigKey(fOriginalKey, &cacheKey); in makeCopyKey()
39 return fImage->alphaType(); in alphaType()
42 return fImage->colorSpace(); in colorSpace()
49 , fImage(static_cast<const SkImage_GpuYUVA*>(client)) { in GrYUVAImageTextureMaker()
62 return fImage->asMippedTextureProxyRef(); in refOriginalTextureProxy()
64 return fImage->asTextureProxyRef(); in refOriginalTextureProxy()
79 return fImage->alphaType(); in alphaType()
82 return fImage->colorSpace(); in colorSpace()
[all …]
/external/skia/src/pdf/
DSkKeyedImage.cpp23 SkKeyedImage::SkKeyedImage(sk_sp<SkImage> i) : fImage(std::move(i)) { in SkKeyedImage()
24 fKey = SkBitmapKeyFromImage(fImage.get()); in SkKeyedImage()
27 SkKeyedImage::SkKeyedImage(const SkBitmap& bm) : fImage(SkImage::MakeFromBitmap(bm)) { in SkKeyedImage()
28 if (fImage) { in SkKeyedImage()
35 if (fImage && subset.intersect(fImage->bounds())) { in subset()
36 img.fImage = fImage->makeSubset(subset); in subset()
37 if (img.fImage) { in subset()
45 sk_sp<SkImage> image = std::move(fImage); in release()
46 SkASSERT(nullptr == fImage); in release()
/external/skia/src/gpu/
DGrImageTextureMaker.cpp30 , fImage(static_cast<const SkImage_Lazy*>(client)) in GrImageTextureMaker()
38 return fImage->lockTextureProxyView(this->context(), fOriginalKey, fCachingHint, willBeMipped, in refOriginalTextureProxyView()
45 fImage->makeCacheKeyFromOrigKey(fOriginalKey, &cacheKey); in makeCopyKey()
56 , fImage(static_cast<const SkImage_GpuYUVA*>(client)) { in GrYUVAImageTextureMaker()
68 return fImage->refMippedView(this->context()); in refOriginalTextureProxyView()
70 if (const GrSurfaceProxyView* view = fImage->view(this->context())) { in refOriginalTextureProxyView()
97 if (!filterOrNullForBicubic || this->domainNeedsDecal() || fImage->fRGBView.proxy()) { in createFragmentProcessor()
109 !fImage->setupMipmapsForPlanes(this->context()))) { in createFragmentProcessor()
121 const auto& caps = *fImage->context()->priv().caps(); in createFragmentProcessor()
122 auto fp = GrYUVtoRGBEffect::Make(fImage->fViews, fImage->fYUVAIndices, fImage->fYUVColorSpace, in createFragmentProcessor()
[all …]
/external/skqp/src/pdf/
DSkKeyedImage.cpp23 SkKeyedImage::SkKeyedImage(sk_sp<SkImage> i) : fImage(std::move(i)) { in SkKeyedImage()
24 fKey = SkBitmapKeyFromImage(fImage.get()); in SkKeyedImage()
27 SkKeyedImage::SkKeyedImage(const SkBitmap& bm) : fImage(SkImage::MakeFromBitmap(bm)) { in SkKeyedImage()
28 if (fImage) { in SkKeyedImage()
35 if (fImage && subset.intersect(fImage->bounds())) { in subset()
36 img.fImage = fImage->makeSubset(subset); in subset()
37 if (img.fImage) { in subset()
45 sk_sp<SkImage> image = std::move(fImage); in release()
46 SkASSERT(nullptr == fImage); in release()
/external/skqp/src/core/
DSkBlurMask.cpp119 dst->fImage = nullptr; in BoxBlur()
135 if (src.fImage != nullptr && dst->fImage == nullptr) { in BoxBlur()
143 if (src.fImage == nullptr) { in BoxBlur()
155 auto dstStart = &dst->fImage[border.x() + border.y() * dst->fRowBytes]; in BoxBlur()
160 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
166 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
170 uint32_t* srcARGB = reinterpret_cast<uint32_t*>(src.fImage); in BoxBlur()
177 uint16_t* srcLCD = reinterpret_cast<uint16_t*>(src.fImage); in BoxBlur()
188 auto dstStart = &dst->fImage[border.x() + border.y() * dst->fRowBytes]; in BoxBlur()
193 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
[all …]
DSkMask.h23 SkMask() : fImage(nullptr) {} in SkMask()
38 uint8_t* fImage; member
66 SkASSERT(fImage != nullptr); in getAddr1()
67 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
77 SkASSERT(fImage != nullptr); in getAddr8()
78 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
89 SkASSERT(fImage != nullptr); in getAddrLCD16()
90 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
102 SkASSERT(fImage != nullptr); in getAddr32()
103 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32()
/external/skia/src/core/
DSkBlurMask.cpp119 dst->fImage = nullptr; in BoxBlur()
135 if (src.fImage != nullptr && dst->fImage == nullptr) { in BoxBlur()
143 if (src.fImage == nullptr) { in BoxBlur()
155 auto dstStart = &dst->fImage[border.x() + border.y() * dst->fRowBytes]; in BoxBlur()
160 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
166 SkMask::AlphaIter<SkMask::kA8_Format>(src.fImage), src.fRowBytes, in BoxBlur()
170 uint32_t* srcARGB = reinterpret_cast<uint32_t*>(src.fImage); in BoxBlur()
177 uint16_t* srcLCD = reinterpret_cast<uint16_t*>(src.fImage); in BoxBlur()
188 auto dstStart = &dst->fImage[border.x() + border.y() * dst->fRowBytes]; in BoxBlur()
193 SkMask::AlphaIter<SkMask::kBW_Format>(src.fImage, 0), src.fRowBytes, in BoxBlur()
[all …]
DSkMask.h23 SkMask() : fImage(nullptr) {} in SkMask()
38 uint8_t* fImage; member
68 SkASSERT(fImage != nullptr); in getAddr1()
69 return fImage + ((x - fBounds.fLeft) >> 3) + (y - fBounds.fTop) * fRowBytes; in getAddr1()
79 SkASSERT(fImage != nullptr); in getAddr8()
80 return fImage + x - fBounds.fLeft + (y - fBounds.fTop) * fRowBytes; in getAddr8()
91 SkASSERT(fImage != nullptr); in getAddrLCD16()
92 uint16_t* row = (uint16_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddrLCD16()
104 SkASSERT(fImage != nullptr); in getAddr32()
105 uint32_t* row = (uint32_t*)(fImage + (y - fBounds.fTop) * fRowBytes); in getAddr32()
/external/skqp/src/effects/imagefilters/
DSkImageSource.cpp42 , fImage(std::move(image)) in SkImageSource()
43 , fSrcRect(SkRect::MakeIWH(fImage->width(), fImage->height())) in SkImageSource()
53 , fImage(std::move(image)) in SkImageSource()
78 buffer.writeImage(fImage.get()); in flatten()
86 SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onFilterImage()
99 SkIRect::MakeWH(fImage->width(), fImage->height()), in onFilterImage()
100 fImage, &source->props()); in onFilterImage()
127 canvas->drawImageRect(fImage.get(), fSrcRect, dstRect, &paint, in onFilterImage()
138 auto image = xformer->apply(fImage.get()); in onMakeColorSpace()
139 if (image != fImage) { in onMakeColorSpace()
/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 …]
/external/skia/modules/particles/src/
DSkParticleDrawable.cpp85 arrays.fRects[i].setIWH(fImage->width(), fImage->height()); in REFLECTED()
87 canvas->drawAtlas(fImage, arrays.fXforms.get(), arrays.fRects.get(), arrays.fColors.get(), in REFLECTED()
93 if (!fImage || fImage->width() != 2 * r) { in prepare()
94 fImage = make_circle_image(r); in prepare()
106 sk_sp<SkImage> fImage; member in SkCircleDrawable
124 SkRect baseRect = SkRect::MakeWH(static_cast<float>(fImage->width()) / cols, in REFLECTED()
125 static_cast<float>(fImage->height()) / rows); in REFLECTED()
138 canvas->drawAtlas(fImage, arrays.fXforms.get(), arrays.fRects.get(), arrays.fColors.get(), in REFLECTED()
143 fImage.reset(); in prepare()
145 fImage = asset->getFrame(0); in prepare()
[all …]
/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/skqp/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/gm/
Dimagesource.cpp52 fImage = SkImage::MakeFromBitmap(bm); in onOnceBeforeDraw()
61 const SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onDraw()
65 sk_sp<SkImageFilter> imageSource(SkImageFilters::Image(fImage)); in onDraw()
72 SkImageFilters::Image(fImage, srcRect, srcRect, kHigh_SkFilterQuality)); in onDraw()
79 SkImageFilters::Image(fImage, srcRect, dstRect, kHigh_SkFilterQuality)); in onDraw()
86 SkImageFilters::Image(fImage, bounds, dstRect, kHigh_SkFilterQuality)); in onDraw()
93 sk_sp<SkImage> fImage; member in ImageSourceGM
/external/skqp/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
Dtexturedomaineffect.cpp82 fImage = surface->makeImageSnapshot(); in onOnceBeforeDraw()
102 SkImageInfo info = as_IB(fImage)->onImageInfo().makeColorType(kN32_SkColorType); in onDraw()
103 if (!copy.tryAllocPixels(info) || !fImage->readPixels(copy.pixmap(), 0, 0)) { in onDraw()
109 fImage, kNone_GrSurfaceFlags, 1, SkBudgeted::kYes, SkBackingFit::kExact); in onDraw()
122 fImage->bounds(), in onDraw()
123 SkIRect::MakeXYWH(fImage->width() / 4 - 1, fImage->height() / 4 - 1, in onDraw()
124 fImage->width() / 2 + 2, fImage->height() / 2 + 2), in onDraw()
127 SkRect renderRect = SkRect::Make(fImage->bounds()); in onDraw()
169 sk_sp<SkImage> fImage; member in skiagm::TextureDomainEffect
/external/skqp/src/gpu/text/
DGrSDFMaskFilter.cpp61 if (src.fImage == nullptr) { in filterMask()
64 if (dst->fImage == nullptr) { in filterMask()
70 return SkGenerateDistanceFieldFromA8Image(dst->fImage, src.fImage, in filterMask()
74 return SkGenerateDistanceFieldFromLCD16Mask(dst->fImage, src.fImage, in filterMask()
78 return SkGenerateDistanceFieldFromBWImage(dst->fImage, src.fImage, in filterMask()
/external/skia/src/gpu/text/
DGrSDFMaskFilter.cpp61 if (src.fImage == nullptr) { in filterMask()
64 if (dst->fImage == nullptr) { in filterMask()
70 return SkGenerateDistanceFieldFromA8Image(dst->fImage, src.fImage, in filterMask()
74 return SkGenerateDistanceFieldFromLCD16Mask(dst->fImage, src.fImage, in filterMask()
78 return SkGenerateDistanceFieldFromBWImage(dst->fImage, src.fImage, in filterMask()
/external/skqp/modules/sksg/src/
DSkSGImage.cpp15 Image::Image(sk_sp<SkImage> image) : fImage(std::move(image)) {} in Image()
18 if (!fImage) { in onRender()
30 canvas->drawImage(fImage, 0, 0, &paint); in onRender()
34 return fImage ? SkRect::Make(fImage->bounds()) : SkRect::MakeEmpty(); in onRevalidate()
/external/skia/modules/sksg/src/
DSkSGImage.cpp15 Image::Image(sk_sp<SkImage> image) : fImage(std::move(image)) {} in Image()
18 if (!fImage) { in onRender()
30 canvas->drawImage(fImage, 0, 0, &paint); in onRender()
39 return fImage ? SkRect::Make(fImage->bounds()) : SkRect::MakeEmpty(); in onRevalidate()
/external/skia/src/effects/imagefilters/
DSkImageSource.cpp26 , fImage(std::move(image)) in SkImageSourceImpl()
45 sk_sp<SkImage> fImage;
98 buffer.writeImage(fImage.get()); in flatten()
106 SkRect bounds = SkRect::MakeIWH(fImage->width(), fImage->height()); in onFilterImage()
119 SkIRect::MakeWH(fImage->width(), fImage->height()), in onFilterImage()
120 fImage, ctx.surfaceProps()); in onFilterImage()
147 canvas->drawImageRect(fImage.get(), fSrcRect, dstRect, &paint, in onFilterImage()
/external/skia/tests/
DAAClipTest.cpp32 if (!a.fImage && !b.fImage) { in operator ==()
35 if (!a.fImage || !b.fImage) { in operator ==()
59 const char* aptr = (const char*)a.fImage; in operator ==()
60 const char* bptr = (const char*)b.fImage; in operator ==()
77 mask->fImage = nullptr; in copyToMask()
83 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
84 sk_bzero(mask->fImage, mask->computeImageSize()); in copyToMask()
91 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask()
126 SkMask::FreeImage(mask0.fImage); in operator ==()
127 SkMask::FreeImage(mask1.fImage); in operator ==()
[all …]
/external/skqp/tests/
DAAClipTest.cpp32 if (!a.fImage && !b.fImage) { in operator ==()
35 if (!a.fImage || !b.fImage) { in operator ==()
59 const char* aptr = (const char*)a.fImage; in operator ==()
60 const char* bptr = (const char*)b.fImage; in operator ==()
77 mask->fImage = nullptr; in copyToMask()
83 mask->fImage = SkMask::AllocImage(mask->computeImageSize()); in copyToMask()
84 sk_bzero(mask->fImage, mask->computeImageSize()); in copyToMask()
91 bitmap.installPixels(info, mask->fImage, mask->fRowBytes); in copyToMask()
126 SkMask::FreeImage(mask0.fImage); in operator ==()
127 SkMask::FreeImage(mask1.fImage); in operator ==()
[all …]

12345678910