Home
last modified time | relevance | path

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

/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/skia/src/images/
DSkImageDecoder_libwebp.cpp292 int origWidth, origHeight, hasAlpha; in onDecode() local
293 if (!webp_parse_header(stream, &origWidth, &origHeight, &hasAlpha)) { in onDecode()
296 this->fHasAlpha = hasAlpha; in onDecode()
431 static ScanlineImporter ChooseImporter(SkColorType ct, bool hasAlpha, int* bpp) { in ChooseImporter() argument
434 if (hasAlpha) { in ChooseImporter()
442 if (hasAlpha) { in ChooseImporter()
476 const bool hasAlpha = !bm.isOpaque(); in onEncode() local
478 const ScanlineImporter scanline_import = ChooseImporter(bm.colorType(), hasAlpha, &bpp); in onEncode()
536 int width, height, hasAlpha; in sk_libwebp_dfactory() local
537 if (!webp_parse_header(stream, &width, &height, &hasAlpha)) { in sk_libwebp_dfactory()
[all …]
DSkImageDecoder_libpng.cpp90 bool getBitmapColorType(png_structp, png_infop, SkColorType*, bool* hasAlpha,
301 bool hasAlpha = false; in onDecode() local
304 if (!this->getBitmapColorType(png_ptr, info_ptr, &colorType, &hasAlpha, &theTranspColor)) { in onDecode()
328 decodePalette(png_ptr, info_ptr, bitDepth, &hasAlpha, &reallyHasAlpha, &colorTable); in onDecode()
387 } else if (hasAlpha) { in onDecode()
715 static transform_scanline_proc choose_proc(SkColorType ct, bool hasAlpha) { in choose_proc() argument
719 hasAlpha = false; // we store false in the table entries for kIndex8 in choose_proc()
736 if (gMap[i].fColorType == ct && gMap[i].fHasAlpha == hasAlpha) { in choose_proc()
768 png_byte* SK_RESTRICT trans, bool hasAlpha) { in pack_palette() argument
773 if (hasAlpha) { in pack_palette()
[all …]
/external/skia/src/core/
DSkConvolver.cpp113 template<bool hasAlpha>
136 if (hasAlpha) { in ConvolveHorizontally()
146 if (hasAlpha) { in ConvolveHorizontally()
154 if (hasAlpha) { in ConvolveHorizontally()
194 template<bool hasAlpha>
214 if (hasAlpha) { in ConvolveVertically()
224 if (hasAlpha) { in ConvolveVertically()
232 if (hasAlpha) { in ConvolveVertically()
DSkConvolver.h149 bool hasAlpha);
159 bool hasAlpha);
/external/skia/src/opts/
DSkBitmapProcState_arm_neon.cpp91 bool hasAlpha) { in convolveHorizontally_neon() argument
190 template<bool hasAlpha>
247 if (hasAlpha) { in convolveVertically_neon()
306 if (hasAlpha) { in convolveVertically_neon()
/external/skia/bench/
DGradientBench.cpp359 Gradient2Bench(bool hasAlpha) { in Gradient2Bench() argument
360 fName.printf("gradient_create_%s", hasAlpha ? "alpha" : "opaque"); in Gradient2Bench()
361 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/skia/include/core/
DSkImageDecoder.h336 SkColorType getPrefColorType(SrcDepth, bool hasAlpha) const;
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp1746 const bool hasAlpha = true; // \todo [2015-09-07 elecro] add correct alpha check in computeVertexReference() local
1763 if (!hasAlpha) in computeVertexReference()
1831 const bool hasAlpha = true; // \todo [2015-09-07 elecro] add correct alpha check in computeFragmentReference() local
1846 if (!hasAlpha) in computeFragmentReference()
/external/deqp/framework/qphelper/
DqpTestLog.c723 deBool hasAlpha = imageFormat == QP_IMAGE_FORMAT_RGBA8888; in compressImagePNG() local
746 hasAlpha ? PNG_COLOR_TYPE_RGBA : PNG_COLOR_TYPE_RGB); in compressImagePNG()
/external/opencv3/modules/videoio/src/
Dcap_qtkit.mm1032 hasAlpha:YES
/external/opencv3/modules/highgui/src/
Dwindow_cocoa.mm856 hasAlpha:NO