Home
last modified time | relevance | path

Searched refs:hasAlpha (Results 1 – 25 of 30) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dformat_traits.h60 static const bool hasAlpha{ false };
80 static const bool hasAlpha{ true };
102 static const bool hasAlpha{ true };
124 static const bool hasAlpha{ true };
146 static const bool hasAlpha{ false };
168 static const bool hasAlpha{ false };
190 static const bool hasAlpha{ true };
212 static const bool hasAlpha{ true };
234 static const bool hasAlpha{ true };
256 static const bool hasAlpha{ false };
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DImageHeaderParser.java37 private final boolean hasAlpha; field in ImageHeaderParser.ImageType
39 ImageType(boolean hasAlpha) { in ImageType() argument
40 this.hasAlpha = hasAlpha; in ImageType()
43 public boolean hasAlpha() { in hasAlpha() method in ImageHeaderParser.ImageType
44 return hasAlpha; in hasAlpha()
82 public boolean hasAlpha() throws IOException { in hasAlpha() method in ImageHeaderParser
83 return getType().hasAlpha(); in hasAlpha()
DDownsampler.java239 boolean hasAlpha = false; in getConfig()
243 hasAlpha = new ImageHeaderParser(is).hasAlpha(); in getConfig()
258 return hasAlpha ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565; in getConfig()
DBitmapEncoder.java62 } else if (bitmap.hasAlpha()) { in getFormat()
DGlideBitmapDrawable.java122 return bm == null || bm.hasAlpha() || state.paint.getAlpha() < 255 in getOpacity()
DTransformationUtils.java145 outBitmap.setHasAlpha(toTransform.hasAlpha()); in setAlpha()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBitmap.java48 private boolean hasAlpha; field in ShadowBitmap
203 boolean hasAlpha) { in createBitmap() argument
481 protected final boolean hasAlpha() { in hasAlpha() method in ShadowBitmap
482 return hasAlpha; in hasAlpha()
486 protected void setHasAlpha(boolean hasAlpha) { in setHasAlpha() argument
487 this.hasAlpha = hasAlpha; in setHasAlpha()
/external/skia/src/codec/
DSkWebpCodec.cpp134 const bool hasAlpha = SkToBool(frame.has_alpha) in MakeFromStream() local
149 if (hasAlpha) { in MakeFromStream()
159 if (hasAlpha) { in MakeFromStream()
207 SkWebpCodec::Frame* SkWebpCodec::FrameHolder::appendNewFrame(bool hasAlpha) { in appendNewFrame() argument
209 fFrames.emplace_back(i, hasAlpha ? SkEncodedInfo::kUnpremul_Alpha in appendNewFrame()
317 frameInfo->fAlphaType = frame->hasAlpha() ? kUnpremul_SkAlphaType in onGetFrameInfo()
DSkWebpCodec.h83 Frame* appendNewFrame(bool hasAlpha);
DSkFrameHolder.h68 bool hasAlpha() const { return fHasAlpha; } in hasAlpha() function
DSkCodec.cpp304 return this->initializeColorXform(info, frame->reportedAlpha(), !frame->hasAlpha()) in handleFrameIndex()
784 frame->setHasAlpha(prevFrame->hasAlpha() || clearPrevFrame); in setAlphaAndRequiredFrame()
815 frame->setHasAlpha(prevFrame->hasAlpha() || (reportsAlpha && !blendWithPrevFrame)); in setAlphaAndRequiredFrame()
DSkGifCodec.cpp137 frameInfo->fAlphaType = frameContext->hasAlpha() ? kUnpremul_SkAlphaType in onGetFrameInfo()
/external/skqp/src/codec/
DSkWebpCodec.cpp134 const bool hasAlpha = SkToBool(frame.has_alpha) in MakeFromStream() local
149 if (hasAlpha) { in MakeFromStream()
159 if (hasAlpha) { in MakeFromStream()
207 SkWebpCodec::Frame* SkWebpCodec::FrameHolder::appendNewFrame(bool hasAlpha) { in appendNewFrame() argument
209 fFrames.emplace_back(i, hasAlpha ? SkEncodedInfo::kUnpremul_Alpha in appendNewFrame()
317 frameInfo->fAlphaType = frame->hasAlpha() ? kUnpremul_SkAlphaType in onGetFrameInfo()
DSkWebpCodec.h83 Frame* appendNewFrame(bool hasAlpha);
DSkFrameHolder.h68 bool hasAlpha() const { return fHasAlpha; } in hasAlpha() function
DSkCodec.cpp304 return this->initializeColorXform(info, frame->reportedAlpha(), !frame->hasAlpha()) in handleFrameIndex()
784 frame->setHasAlpha(prevFrame->hasAlpha() || clearPrevFrame); in setAlphaAndRequiredFrame()
815 frame->setHasAlpha(prevFrame->hasAlpha() || (reportsAlpha && !blendWithPrevFrame)); in setAlphaAndRequiredFrame()
DSkGifCodec.cpp137 frameInfo->fAlphaType = frameContext->hasAlpha() ? kUnpremul_SkAlphaType in onGetFrameInfo()
/external/skia/src/ports/
DSkImageGeneratorCG.cpp83 bool hasAlpha = bool(CFDictionaryGetValue(properties.get(), kCGImagePropertyHasAlpha)); in MakeFromEncodedCG() local
84 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; in MakeFromEncodedCG()
/external/skqp/src/ports/
DSkImageGeneratorCG.cpp83 bool hasAlpha = bool(CFDictionaryGetValue(properties.get(), kCGImagePropertyHasAlpha)); in MakeFromEncodedCG() local
84 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; in MakeFromEncodedCG()
/external/skia/bench/
DGradientBench.cpp328 Gradient2Bench(bool hasAlpha) { in Gradient2Bench() argument
329 fName.printf("gradient_create_%s", hasAlpha ? "alpha" : "opaque"); in Gradient2Bench()
330 fHasAlpha = hasAlpha; in Gradient2Bench()
/external/skqp/bench/
DGradientBench.cpp328 Gradient2Bench(bool hasAlpha) { in Gradient2Bench() argument
329 fName.printf("gradient_create_%s", hasAlpha ? "alpha" : "opaque"); in Gradient2Bench()
330 fHasAlpha = hasAlpha; in Gradient2Bench()
/external/deqp/modules/glshared/
DglsRandomShaderCase.cpp479 bool hasAlpha = m_renderCtx.getRenderTarget().getPixelFormat().alphaBits > 0; in iterate() local
480 …tcu::TextureLevel rendered (tcu::TextureFormat(hasAlpha ? tcu::TextureFormat::RGBA : tcu::Textur… in iterate()
481 …tcu::TextureLevel reference (tcu::TextureFormat(hasAlpha ? tcu::TextureFormat::RGBA : tcu::Textu… in iterate()
DglsShaderRenderCase.cpp642 bool hasAlpha = m_renderCtx.getRenderTarget().getPixelFormat().alphaBits > 0; in computeVertexReference() local
659 if (!hasAlpha) in computeVertexReference()
727 bool hasAlpha = m_renderCtx.getRenderTarget().getPixelFormat().alphaBits > 0; in computeFragmentReference() local
742 if (!hasAlpha) in computeFragmentReference()
/external/deqp/external/openglcts/modules/common/
DglcShaderRenderCase.cpp695 bool hasAlpha = m_renderCtx.getRenderTarget().getPixelFormat().alphaBits > 0; in computeVertexReference() local
712 if (!hasAlpha) in computeVertexReference()
784 bool hasAlpha = m_renderCtx.getRenderTarget().getPixelFormat().alphaBits > 0; in computeFragmentReference() local
799 if (!hasAlpha) in computeFragmentReference()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java53 public void hasAlpha() { in hasAlpha() method in ShadowBitmapTest
55 assertThat(bitmap.hasAlpha()).isFalse(); in hasAlpha()
57 assertThat(bitmap.hasAlpha()).isTrue(); in hasAlpha()

12