Home
last modified time | relevance | path

Searched refs:has_alpha (Results 1 – 25 of 29) sorted by relevance

12

/external/skia/src/opts/
DSkBitmapProcState_opts_SSSE3.cpp170 template<bool has_alpha, int scale>
176 if (has_alpha) { in ScaleFourPixels()
200 template<bool has_alpha>
209 return ScaleFourPixels<has_alpha, 4>(&sum, alpha); in ProcessPixelPairZeroSubY()
217 template<bool has_alpha>
231 return ScaleFourPixels<has_alpha, 4>(&sum, alpha); in ProcessOnePixelZeroSubY()
281 template<bool has_alpha>
306 return ScaleFourPixels<has_alpha, 8>(&sum0, alpha); in ProcessTwoPixelPairs()
310 template<bool has_alpha>
339 return ScaleFourPixels<has_alpha, 8>(&sum0, alpha); in ProcessTwoPixelPairsDXDY()
[all …]
/external/webp/src/dec/
Dio_dec.c192 const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w, in EmitAlphaRGB() local
197 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB()
297 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler() local
310 const int num_rescalers = has_alpha ? 4 : 3; in InitYUVRescaler()
313 if (has_alpha) { in InitYUVRescaler()
328 p->scaler_a = has_alpha ? &scalers[3] : NULL; in InitYUVRescaler()
341 if (has_alpha) { in InitYUVRescaler()
482 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitRGBRescaler() local
492 const int num_rescalers = has_alpha ? 4 : 3; in InitRGBRescaler()
496 if (has_alpha) { in InitRGBRescaler()
[all …]
Dwebp_dec.c281 int* const has_alpha, in ParseHeadersInternal() argument
325 if (has_alpha != NULL) *has_alpha = !!(flags & ALPHA_FLAG); in ParseHeadersInternal()
382 if (!VP8LGetInfo(data, data_size, &image_width, &image_height, has_alpha)) { in ParseHeadersInternal()
401 if (has_alpha != NULL) { in ParseHeadersInternal()
404 *has_alpha |= (hdrs.alpha_data != NULL); in ParseHeadersInternal()
689 &features->has_alpha, &features->has_animation, in GetFeatures()
Dvp8_dec.h179 int* const width, int* const height, int* const has_alpha);
Dvp8l_dec.c119 int* const has_alpha) { in ReadImageInfo() argument
123 *has_alpha = VP8LReadBits(br, 1); in ReadImageInfo()
129 int* const width, int* const height, int* const has_alpha) { in VP8LGetInfo() argument
143 if (has_alpha != NULL) *has_alpha = a; in VP8LGetInfo()
1577 int width, height, has_alpha; in VP8LDecodeHeader() local
1588 if (!ReadImageInfo(&dec->br_, &width, &height, &has_alpha)) { in VP8LDecodeHeader()
Dbuffer_dec.c297 (features != NULL && features->has_alpha); in WebPAvoidSlowMemory()
/external/skia/src/core/
DSkOpts.h68 int pixel_width, unsigned char* out_row, bool has_alpha);
73 unsigned char* out_row, bool has_alpha);
/external/webrtc/webrtc/modules/desktop_capture/win/
Dcursor.cc167 bool has_alpha = false; in CreateMouseCursorFromHCursor() local
186 has_alpha = HasAlphaChannel(reinterpret_cast<uint32_t*>(image->data()), in CreateMouseCursorFromHCursor()
203 if (!has_alpha) { in CreateMouseCursorFromHCursor()
/external/skia/src/codec/
DSkWebpCodec.cpp124 const bool hasAlpha = SkToBool(frame.has_alpha) in NewFromStream()
267 Frame* frame = fFrameHolder.appendNewFrame(iter.has_alpha); in onGetFrameCount()
511 && frame.has_alpha; in onGetPixels()
523 if (!frame.has_alpha) { in onGetPixels()
582 const auto srcAlpha = 0 == index ? srcInfo.alphaType() : alpha_type(frame.has_alpha); in onGetPixels()
/external/webp/src/enc/
Dpicture_csp_enc.c843 const int has_alpha = CheckNonOpaque(a_ptr, width, height, step, rgb_stride); in ImportYUVAFromRGBA() local
846 picture->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; in ImportYUVAFromRGBA()
858 if (has_alpha) { in ImportYUVAFromRGBA()
871 if (has_alpha) { in ImportYUVAFromRGBA()
900 int rows_have_alpha = has_alpha; in ImportYUVAFromRGBA()
919 if (has_alpha) { in ImportYUVAFromRGBA()
941 if (has_alpha) a_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
944 int row_has_alpha = has_alpha; in ImportYUVAFromRGBA()
Dpicture_enc.c93 const int has_alpha = (int)picture->colorspace & WEBP_CSP_ALPHA_BIT; in WebPPictureAllocYUVA() local
112 a_width = has_alpha ? width : 0; in WebPPictureAllocYUVA()
Dpicture_tools_enc.c163 const int has_alpha = pic->colorspace & WEBP_CSP_ALPHA_BIT; in WebPBlendAlpha() local
164 if (!has_alpha || pic->a == NULL) return; // nothing to do in WebPBlendAlpha()
Dvp8l_enc.c1063 static int WriteRealAlphaAndVersion(VP8LBitWriter* const bw, int has_alpha) { in WriteRealAlphaAndVersion() argument
1064 VP8LPutBits(bw, has_alpha, 1); in WriteRealAlphaAndVersion()
1575 int has_alpha; in VP8LEncodeImage() local
1623 has_alpha = WebPPictureHasTransparency(picture); in VP8LEncodeImage()
1625 if (!WriteRealAlphaAndVersion(&bw, has_alpha)) { in VP8LEncodeImage()
/external/pdfium/core/fxge/ge/
Dcfx_renderdevice.cpp212 const bool has_alpha = bitmap->GetFormat() == FXDIB_Argb; in DrawNormalTextHelper() local
217 const int Bpp = has_alpha ? 4 : bitmap->GetBPP() / 8; in DrawNormalTextHelper()
218 auto* pNormalizeSrcFunc = has_alpha ? &NormalizeArgbSrc : &NormalizeRgbDst; in DrawNormalTextHelper()
219 auto* pNormalizeDstFunc = has_alpha ? &NormalizeArgbDest : &NormalizeRgbSrc; in DrawNormalTextHelper()
220 auto* pSetAlpha = has_alpha ? &SetAlpha : &SetAlphaDoNothing; in DrawNormalTextHelper()
232 if (has_alpha) { in DrawNormalTextHelper()
/external/webp/src/webp/
Ddemux.h149 int has_alpha; // True if the frame contains transparency. member
Ddecode.h411 int has_alpha; // True if the bitstream contains an alpha channel. member
/external/webp/include/webp/
Ddemux.h149 int has_alpha; // True if the frame contains transparency. member
Ddecode.h411 int has_alpha; // True if the bitstream contains an alpha channel. member
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c1746 bool has_alpha = false; in generate_unswizzled_blend() local
1827 has_alpha = true; in generate_unswizzled_blend()
1838 has_alpha = true; in generate_unswizzled_blend()
1848 assert (!has_alpha); in generate_unswizzled_blend()
1863 has_alpha = true; in generate_unswizzled_blend()
1897 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
1936 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
1961 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
2160 if (!has_alpha) { in generate_unswizzled_blend()
2315 has_alpha ? NULL : src_alpha[i], in generate_unswizzled_blend()
[all …]
/external/webp/src/demux/
Ddemux.c203 frame->has_alpha_ |= features->has_alpha; in SetFrameInfo()
408 const int has_alpha = !!(dmux->feature_flags_ & ALPHA_FLAG); in ParseSingleImage() local
410 if (!has_alpha && frame->img_components_[1].size_ > 0) { in ParseSingleImage()
839 iter->has_alpha = frame->has_alpha_; in SynthesizeFrame()
/external/webrtc/webrtc/base/
Dx11windowpicker.cc576 bool has_alpha) { in ArgbToRgba() argument
594 *p = has_alpha ? rgba & 0xFF : 0xFF; in ArgbToRgba()
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp3214 unsigned has_alpha, const unsigned char* in, in getPixelColorsRGBA8() argument
3218 unsigned num_channels = has_alpha ? 4 : 3; in getPixelColorsRGBA8()
3227 if(has_alpha) buffer[3] = mode->key_defined && in[i] == mode->key_r ? 0 : 255; in getPixelColorsRGBA8()
3235 …if(has_alpha) buffer[3] = mode->key_defined && 256U * in[i * 2 + 0] + in[i * 2 + 1] == mode->key_r… in getPixelColorsRGBA8()
3246 if(has_alpha) buffer[3] = mode->key_defined && value == mode->key_r ? 0 : 255; in getPixelColorsRGBA8()
3259 if(has_alpha) buffer[3] = mode->key_defined && buffer[0] == mode->key_r in getPixelColorsRGBA8()
3270 if(has_alpha) buffer[3] = mode->key_defined in getPixelColorsRGBA8()
3291 if(has_alpha) buffer[3] = 255; in getPixelColorsRGBA8()
3298 if(has_alpha) buffer[3] = mode->palette[index * 4 + 3]; in getPixelColorsRGBA8()
3309 if(has_alpha) buffer[3] = in[i * 2 + 1]; in getPixelColorsRGBA8()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_emit.c698 bool has_alpha = util_format_has_alpha(format); in fd4_emit_state() local
707 if (has_alpha) { in fd4_emit_state()
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_emit.c601 bool has_alpha = util_format_has_alpha(format); in fd5_emit_state() local
610 if (has_alpha) { in fd5_emit_state()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_emit.c732 bool has_alpha = util_format_has_alpha(format); in fd3_emit_state() local
745 if (has_alpha) { in fd3_emit_state()

12