Searched refs:alphaType (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/hwui/hwui/ |
D | Bitmap.cpp | 157 sk_sp<SkColorSpace> colorSpace, SkAlphaType alphaType, in createFrom() argument 162 colorType, alphaType, colorSpace); in createFrom() 210 SkAlphaType alphaType; in validateAlpha() local 212 !SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &alphaType), in validateAlpha() 214 return info.makeAlphaType(alphaType); in validateAlpha() 266 mImage = SkImage::MakeFromAHardwareBuffer(buffer, mInfo.alphaType(), mInfo.refColorSpace()); in Bitmap() 343 void Bitmap::setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument 344 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { in setAlphaType() 348 mInfo = mInfo.makeAlphaType(alphaType); in setAlphaType() 456 (int)info.alphaType()); in computePalette()
|
D | Bitmap.h | 86 SkAlphaType alphaType, 98 void setAlphaType(SkAlphaType alphaType);
|
D | ImageDecoder.cpp | 161 return mCodec->getInfo().alphaType() == kOpaque_SkAlphaType; in opaque()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 37 SkAlphaType alphaType = kOpaque_SkAlphaType; in createImageInfo() local 41 alphaType = kPremul_SkAlphaType; in createImageInfo() 45 alphaType = kOpaque_SkAlphaType; in createImageInfo() 49 alphaType = kOpaque_SkAlphaType; in createImageInfo() 53 alphaType = kPremul_SkAlphaType; in createImageInfo() 57 alphaType = kPremul_SkAlphaType; in createImageInfo() 63 return SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in createImageInfo()
|
/frameworks/base/libs/hwui/jni/ |
D | Bitmap.cpp | 86 void setAlphaType(SkAlphaType alphaType) { in setAlphaType() argument 88 mBitmap->setAlphaType(alphaType); in setAlphaType() 174 SkASSERT(info.alphaType() != kUnpremul_SkAlphaType); in assert_premultiplied() 176 SkASSERT(info.alphaType() != kPremul_SkAlphaType); in assert_premultiplied() 445 SkAlphaType alphaType; in Bitmap_reconfigure() local 447 && bitmap->info().alphaType() == kOpaque_SkAlphaType) { in Bitmap_reconfigure() 450 alphaType = kOpaque_SkAlphaType; in Bitmap_reconfigure() 453 alphaType = requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType; in Bitmap_reconfigure() 455 bitmap->bitmap().reconfigure(SkImageInfo::Make(width, height, colorType, alphaType, in Bitmap_reconfigure() 523 if (bitmap->info().alphaType() == kPremul_SkAlphaType) { in Bitmap_isPremultiplied() [all …]
|
D | ImageDecoder.cpp | 403 SkAlphaType newAlphaType = bm.alphaType(); in ImageDecoder_nDecodeBitmap() 420 if (newAlphaType != bm.alphaType()) { in ImageDecoder_nDecodeBitmap()
|
D | BitmapFactory.cpp | 349 SkAlphaType alphaType = codec->computeOutputAlphaType(requireUnpremultiplied); in doDecode() local 352 decodeColorType, alphaType, decodeColorSpace); in doDecode()
|
/frameworks/base/libs/hwui/apex/ |
D | android_bitmap.cpp | 83 switch (info.alphaType()) { in getAlphaFlags() 256 auto alphaType = getAlphaType(info); in ABitmap_compress() local 257 if (alphaType == kUnknown_SkAlphaType) { in ABitmap_compress() 284 SkImageInfo::Make(info->width, info->height, colorType, alphaType, std::move(cs)); in ABitmap_compress()
|
/frameworks/base/native/graphics/jni/ |
D | imagedecoder.cpp | 263 switch (toDecoder(info)->mCodec->getInfo().alphaType()) { in AImageDecoderHeaderInfo_getAlphaFlags()
|
/frameworks/base/libs/hwui/ |
D | HardwareBitmapUploader.cpp | 417 bitmap.refColorSpace(), bitmap.alphaType(), in allocateHardwareBitmap()
|
/frameworks/ml/nn/runtime/test/ |
D | TestPartitioningRandom.cpp | 388 const WrapperOperandType alphaType(WrapperType::FLOAT32, {}); in makeEluSpecialInput() local 389 return int(model->addConstantOperand(&alphaType, 1.0f)); in makeEluSpecialInput()
|