Home
last modified time | relevance | path

Searched refs:alphaType (Results 1 – 15 of 15) sorted by relevance

/aosp14/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp194 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument
199 colorType, alphaType, colorSpace); in createFrom()
247 SkAlphaType alphaType; in validateAlpha() local
249 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha()
251 return info.makeAlphaType(alphaType); in validateAlpha()
299 mImage = SkImage::MakeFromAHardwareBuffer(buffer, mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap()
366 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
367 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType()
371 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType()
479 (int)info.alphaType()); in computePalette()
H A DBitmap.h92 SkAlphaType alphaType,
104 void setAlphaType(SkAlphaType alphaType);
H A DImageDecoder.cpp332 info.fAlphaType = mCodec->codec()->getInfo().alphaType(); in getCurrentFrameInfo()
/aosp14/frameworks/base/libs/hwui/utils/
H A DColor.cpp38 SkAlphaType alphaType = kOpaque_SkAlphaType; in createImageInfo() local
42 alphaType = kPremul_SkAlphaType; in createImageInfo()
46 alphaType = kOpaque_SkAlphaType; in createImageInfo()
50 alphaType = kOpaque_SkAlphaType; in createImageInfo()
54 alphaType = kPremul_SkAlphaType; in createImageInfo()
58 alphaType = kPremul_SkAlphaType; in createImageInfo()
62 alphaType = kPremul_SkAlphaType; in createImageInfo()
68 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo()
/aosp14/frameworks/base/libs/hwui/apex/
H A Dandroid_bitmap.cpp92 switch (info.alphaType()) { in getAlphaFlags()
268 auto alphaType = getAlphaType(info); in ABitmap_compress() local
269 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress()
296 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DMeshSpecification.java379 @AlphaType int alphaType) { in make() argument
382 fragmentShader, colorSpace.getNativeInstance(), alphaType); in make()
405 int alphaType); in nativeMakeWithAlpha() argument
/aosp14/frameworks/base/libs/hwui/jni/
H A DBitmap.cpp95 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument
97 mBitmap->setAlphaType(alphaType); in setAlphaType()
183 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied()
185 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied()
484 SkAlphaType alphaType; in Bitmap_reconfigure() local
486 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure()
489 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure()
562 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied()
734 const SkAlphaType alphaType = static_cast<SkAlphaType>(p.readInt32()); in Bitmap_createFromParcel() local
846 p.writeInt32(bitmap.alphaType()); in Bitmap_writeToParcel()
[all …]
H A DMeshSpecification.cpp108 jstring fragmentShader, jlong colorSpace, jint alphaType) { in MakeWithAlpha() argument
116 SkAlphaType(alphaType)); in MakeWithAlpha()
H A DBitmapFactory.cpp219 SkAlphaType alphaType = codec->computeOutputAlphaType(false); in decodeGainmap() local
222 alphaType, decodeColorSpace); in decodeGainmap()
490 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local
493 decodeColorType, alphaType, decodeColorSpace); in doDecode()
H A DImageDecoder.cpp439 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap()
456 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
H A DGainmap.cpp41 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in getCreateFlags()
H A DGraphics.cpp680 mRecycledBitmap->setAlphaType(bitmap->alphaType()); in allocPixelRef()
717 recycledPixels->setAlphaType(mSkiaBitmap->alphaType()); in copyIfNecessary()
/aosp14/frameworks/base/libs/hwui/
H A DTonemapper.cpp99 .undoPremultipliedAlpha = source.alphaType() == kPremul_SkAlphaType, in tonemapPaint()
H A DHardwareBitmapUploader.cpp446 bitmap.alphaType(), Bitmap::computePalette(bitmap)); in allocateHardwareBitmap()
/aosp14/frameworks/base/native/graphics/jni/
H A Dimagedecoder.cpp323 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()