/external/skqp/samplecode/ |
D | SampleAnimatedImage.cpp | 49 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/skia/samplecode/ |
D | SampleAnimatedImage.cpp | 49 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/skia/src/gpu/ |
D | GrImageTextureMaker.cpp | 18 , fImage(static_cast<const SkImage_Lazy*>(client)) in GrImageTextureMaker() 27 return fImage->lockTextureProxy(this->context(), fOriginalKey, fCachingHint, in refOriginalTextureProxy() 34 fImage->makeCacheKeyFromOrigKey(fOriginalKey, &cacheKey); in makeCopyKey() 40 return fImage->alphaType(); in alphaType() 43 return fImage->colorSpace(); in colorSpace() 51 , fImage(static_cast<const SkImage_GpuYUVA*>(client)) { in GrYUVAImageTextureMaker() 64 return fImage->asMippedTextureProxyRef(this->context()); in refOriginalTextureProxy() 66 return fImage->asTextureProxyRef(this->context()); in refOriginalTextureProxy() 81 return fImage->alphaType(); in alphaType() 84 return fImage->colorSpace(); in colorSpace() [all …]
|
/external/skqp/src/gpu/ |
D | GrImageTextureMaker.cpp | 17 , 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/skqp/src/pdf/ |
D | SkKeyedImage.cpp | 23 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/pdf/ |
D | SkKeyedImage.cpp | 23 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/ |
D | SkBlurMask.cpp | 119 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 …]
|
D | SkMask.h | 23 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/ |
D | SkBlurMask.cpp | 119 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 …]
|
D | SkMask.h | 23 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/modules/particles/src/ |
D | SkParticleDrawable.cpp | 60 arrays.fRects[i].set(0.0f, 0.0f, fImage->width(), fImage->height()); in REFLECTED() 62 canvas->drawAtlas(fImage, arrays.fXforms.get(), arrays.fRects.get(), arrays.fColors.get(), in REFLECTED() 76 if (!fImage || fImage->width() != 2 * fRadius) { in rebuild() 77 fImage = make_circle_image(fRadius); in rebuild() 82 sk_sp<SkImage> fImage; member in SkCircleDrawable 110 canvas->drawAtlas(fImage, arrays.fXforms.get(), arrays.fRects.get(), arrays.fColors.get(), in REFLECTED() 134 return SkRect::MakeWH(static_cast<float>(fImage->width()) / fCols, in getBaseRect() 135 static_cast<float>(fImage->height() / fRows)); in getBaseRect() 139 fImage = SkImage::MakeFromEncoded(SkData::MakeFromFileName(fPath.c_str())); in rebuild() 140 if (!fImage) { in rebuild() [all …]
|
/external/skqp/src/effects/imagefilters/ |
D | SkImageSource.cpp | 42 , 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/skia/src/effects/imagefilters/ |
D | SkImageSource.cpp | 42 , 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/ |
D | dng_preview.cpp | 188 : 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/skqp/gm/ |
D | imagesource.cpp | 40 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
|
D | texturedomaineffect.cpp | 82 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/skia/gm/ |
D | imagesource.cpp | 40 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
|
D | texturedomaineffect.cpp | 82 fImage = surface->makeImageSnapshot(); in onOnceBeforeDraw() 91 SkImageInfo info = as_IB(fImage)->onImageInfo().makeColorType(kN32_SkColorType); in onDraw() 92 if (!copy.tryAllocPixels(info) || !fImage->readPixels(copy.pixmap(), 0, 0)) { in onDraw() 99 fImage, kNone_GrSurfaceFlags, 1, SkBudgeted::kYes, SkBackingFit::kExact); in onDraw() 113 fImage->bounds(), in onDraw() 114 SkIRect::MakeXYWH(fImage->width() / 4 - 1, fImage->height() / 4 - 1, in onDraw() 115 fImage->width() / 2 + 2, fImage->height() / 2 + 2), in onDraw() 118 SkRect renderRect = SkRect::Make(fImage->bounds()); in onDraw() 161 sk_sp<SkImage> fImage; member in skiagm::TextureDomainEffect
|
/external/skqp/src/gpu/text/ |
D | GrSDFMaskFilter.cpp | 61 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/ |
D | GrSDFMaskFilter.cpp | 61 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/tools/viewer/ |
D | ImageSlide.cpp | 19 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/tools/viewer/ |
D | ImageSlide.cpp | 19 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/modules/sksg/src/ |
D | SkSGImage.cpp | 15 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/ |
D | SkSGImage.cpp | 15 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/tests/ |
D | AAClipTest.cpp | 32 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 …]
|