Home
last modified time | relevance | path

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

/external/skia/src/opts/
DSkBitmapProcState_opts_SSSE3.cpp176 template<bool has_alpha, int scale>
182 if (has_alpha) { in ScaleFourPixels()
206 template<bool has_alpha>
215 return ScaleFourPixels<has_alpha, 4>(&sum, alpha); in ProcessPixelPairZeroSubY()
223 template<bool has_alpha>
237 return ScaleFourPixels<has_alpha, 4>(&sum, alpha); in ProcessOnePixelZeroSubY()
287 template<bool has_alpha>
312 return ScaleFourPixels<has_alpha, 8>(&sum0, alpha); in ProcessTwoPixelPairs()
316 template<bool has_alpha>
345 return ScaleFourPixels<has_alpha, 8>(&sum0, alpha); in ProcessTwoPixelPairsDXDY()
[all …]
DSkBitmapFilter_opts_SSE2.h19 bool has_alpha);
27 bool has_alpha);
DSkBitmapFilter_opts_SSE2.cpp302 template<bool has_alpha>
378 if (has_alpha) { in convolveVertically_SSE2()
445 if (has_alpha) { in convolveVertically_SSE2()
475 bool has_alpha) { in convolveVertically_SSE2() argument
476 if (has_alpha) { in convolveVertically_SSE2()
/external/webp/src/enc/
Dpicture_psnr.c114 int has_alpha, uv_w, uv_h; in WebPPictureDistortion() local
120 has_alpha = !!(src->colorspace & WEBP_CSP_ALPHA_BIT); in WebPPictureDistortion()
121 if (has_alpha != !!(ref->colorspace & WEBP_CSP_ALPHA_BIT) || in WebPPictureDistortion()
122 (has_alpha && (src->a == NULL || ref->a == NULL))) { in WebPPictureDistortion()
135 if (has_alpha) { in WebPPictureDistortion()
149 if (has_alpha) { in WebPPictureDistortion()
Dpicture_csp.c845 const int has_alpha = CheckNonOpaque(a_ptr, width, height, step, rgb_stride); in ImportYUVAFromRGBA() local
848 picture->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; in ImportYUVAFromRGBA()
860 if (has_alpha) { in ImportYUVAFromRGBA()
873 if (has_alpha) { in ImportYUVAFromRGBA()
902 int rows_have_alpha = has_alpha; in ImportYUVAFromRGBA()
920 if (has_alpha) { in ImportYUVAFromRGBA()
945 int row_has_alpha = has_alpha; in ImportYUVAFromRGBA()
Dpicture.c92 const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT; in WebPPictureAllocYUVA() local
111 a_width = has_alpha ? width : 0; in WebPPictureAllocYUVA()
Dpicture_tools.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.c1077 static int WriteRealAlphaAndVersion(VP8LBitWriter* const bw, int has_alpha) { in WriteRealAlphaAndVersion() argument
1078 VP8LPutBits(bw, has_alpha, 1); in WriteRealAlphaAndVersion()
1505 int has_alpha; in VP8LEncodeImage() local
1553 has_alpha = WebPPictureHasTransparency(picture); in VP8LEncodeImage()
1555 if (!WriteRealAlphaAndVersion(&bw, has_alpha)) { in VP8LEncodeImage()
/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/webp/src/dec/
Dio.c187 const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w, in EmitAlphaRGB() local
192 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB()
288 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler() local
302 if (has_alpha) { in InitYUVRescaler()
321 if (has_alpha) { in InitYUVRescaler()
462 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitRGBRescaler() local
474 if (has_alpha) { in InitRGBRescaler()
497 if (has_alpha) { in InitRGBRescaler()
Dwebp.c281 int* const has_alpha, in ParseHeadersInternal() argument
327 if (has_alpha != NULL) *has_alpha = !!(flags & ALPHA_FLAG); in ParseHeadersInternal()
385 if (!VP8LGetInfo(data, data_size, &image_width, &image_height, has_alpha)) { in ParseHeadersInternal()
404 if (has_alpha != NULL) { in ParseHeadersInternal()
407 *has_alpha |= (hdrs.alpha_data != NULL); in ParseHeadersInternal()
690 &features->has_alpha, &features->has_animation, in GetFeatures()
Ddecode_vp8.h179 int* const width, int* const height, int* const has_alpha);
Dvp8l.c118 int* const has_alpha) { in ReadImageInfo() argument
122 *has_alpha = VP8LReadBits(br, 1); in ReadImageInfo()
128 int* const width, int* const height, int* const has_alpha) { in VP8LGetInfo() argument
142 if (has_alpha != NULL) *has_alpha = a; in VP8LGetInfo()
1533 int width, height, has_alpha; in VP8LDecodeHeader() local
1544 if (!ReadImageInfo(&dec->br_, &width, &height, &has_alpha)) { in VP8LDecodeHeader()
/external/webp/include/webp/
Ddemux.h149 int has_alpha; // True if the frame contains transparency. member
Ddecode.h408 int has_alpha; // True if the bitstream contains an alpha channel. member
/external/webp/src/webp/
Ddemux.h149 int has_alpha; // True if the frame contains transparency. member
Ddecode.h408 int has_alpha; // True if the bitstream contains an alpha channel. member
/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()
840 iter->has_alpha = frame->has_alpha_; in SynthesizeFrame()
Danim_decode.c178 } else if ((!curr->has_alpha || curr->blend_method == WEBP_MUX_NO_BLEND) && in IsKeyFrame()
/external/skia/src/codec/
DSkWebpCodec.cpp70 SkToBool(features.has_alpha) ? kUnpremul_SkAlphaType in webp_parse_header()
/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/skia/src/images/
DSkImageDecoder_libwebp.cpp77 *alpha = features.has_alpha; in webp_parse_header()
/external/ImageMagick/coders/
Dwebp.c281 image->alpha_trait=features->has_alpha != 0 ? BlendPixelTrait : in ReadWEBPImage()