HomeSort by relevance Sort by last modified time
    Searched defs:alphaType (Results 1 - 13 of 13) sorted by null

  /external/skia/bench/
CodecBench.cpp 53 SkAlphaType alphaType;
56 SkAssertResult(SkColorTypeValidateAlphaType(fColorType, fInfo.alphaType(),
57 &alphaType));
58 if (alphaType != fInfo.alphaType()) {
59 fInfo = fInfo.makeAlphaType(alphaType);
nanobench.cpp 683 SkAlphaType alphaType;
684 if (!SkColorTypeValidateAlphaType(colorType, info.alphaType(),
685 &alphaType)) {
688 if (alphaType != info.alphaType()) {
689 info = info.makeAlphaType(alphaType);
    [all...]
  /external/skia/src/images/
SkImageDecoder_astc.cpp 124 SkAlphaType alphaType = kOpaque_SkAlphaType;
126 alphaType = kUnpremul_SkAlphaType;
128 alphaType = kPremul_SkAlphaType;
132 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
SkImageDecoder_ktx.cpp 73 SkAlphaType alphaType = kOpaque_SkAlphaType;
76 alphaType = kUnpremul_SkAlphaType;
83 alphaType = kPremul_SkAlphaType;
113 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType));
213 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
SkImageDecoder_libwebp.cpp 300 SkAlphaType alphaType = kOpaque_SkAlphaType;
303 alphaType = kUnpremul_SkAlphaType;
305 alphaType = kPremul_SkAlphaType;
308 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
SkImageDecoder_libjpeg.cpp 601 const SkAlphaType alphaType = kAlpha_8_SkColorType == colorType ?
612 colorType, alphaType));
638 colorType, alphaType));
652 colorType, alphaType));
    [all...]
SkImageDecoder_libpng.cpp 336 SkAlphaType alphaType = this->getRequireUnpremultipliedColors() ?
341 colorType, alphaType));
    [all...]
  /external/skia/dm/
DMSrcSink.cpp 119 if (decodeInfo.alphaType() == kUnpremul_SkAlphaType) {
485 SkAlphaType alphaType = kPremul_SkAlphaType;
486 (void)SkColorTypeValidateAlphaType(fColorType, alphaType, &alphaType);
488 dst->allocPixels(SkImageInfo::Make(size.width(), size.height(), fColorType, alphaType));
  /external/skia/include/c/
sk_types.h 62 sk_alphatype_t alphaType;
  /external/skia/include/core/
SkBitmap.h 74 SkAlphaType alphaType() const { return fInfo.alphaType(); }
118 * Set the bitmap's alphaType, returning true on success. If false is
119 * returned, then the specified new alphaType is incompatible with the
120 * colortype, and the current alphaType is unchanged.
122 * Note: this changes the alphatype for the underlying pixels, which means
176 return SkAlphaTypeIsOpaque(this->alphaType());
609 * corresponding src pixels, performing any colortype/alphatype transformations needed
614 * - If the requested colortype/alphatype cannot be converted from the src's types.
    [all...]
SkImageInfo.h 117 * Return true if alphaType is supported by colorType. If there is a canonical
118 * alphaType for this colorType, return it in canonical.
120 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
175 * Sets colortype to the native ARGB32 type, and the alphatype to premul.
183 * Sets colortype to the native ARGB32 type, and the alphatype to premul.
207 SkAlphaType alphaType() const { return fAlphaType; }
223 * Return a new ImageInfo with the same colortype and alphatype as this info,
  /external/skia/src/codec/
SkCodec_libbmp.cpp 27 if (src.alphaType() != dst.alphaType()) {
28 if (kOpaque_SkAlphaType == src.alphaType()) {
34 switch (dst.alphaType()) {
429 SkAlphaType alphaType = kOpaque_SkAlphaType;
438 alphaType = kUnpremul_SkAlphaType;
447 alphaType = kUnpremul_SkAlphaType;
515 colorType, alphaType);
599 if (!createColorTable(dstInfo.alphaType(), inputColorCount)) {
626 bool SkBmpCodec::createColorTable(SkAlphaType alphaType, int* numColors)
    [all...]
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 64 SkAlphaType alphaType;
66 newInfo.colorType(), newInfo.alphaType(), &alphaType),
76 changeAlphaType(alphaType);
267 void Bitmap::setAlphaType(SkAlphaType alphaType) {
268 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) {
272 mPixelRef->changeAlphaType(alphaType);
489 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
491 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444
    [all...]

Completed in 266 milliseconds