Home
last modified time | relevance | path

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

12

/external/pdfium/core/fxge/
Dcfx_renderdevice.cpp175 void NormalizeDest(bool has_alpha, in NormalizeDest() argument
182 if (has_alpha) { in NormalizeDest()
194 void NormalizeSrc(bool has_alpha, in NormalizeSrc() argument
201 if (!has_alpha) { in NormalizeSrc()
215 void SetAlpha(bool has_alpha, uint8_t* alpha) { in SetAlpha() argument
216 if (has_alpha) in SetAlpha()
234 const bool has_alpha = bitmap->GetFormat() == FXDIB_Argb; in DrawNormalTextHelper() local
239 const int Bpp = has_alpha ? 4 : bitmap->GetBPP() / 8; in DrawNormalTextHelper()
250 if (has_alpha) { in DrawNormalTextHelper()
257 SetAlpha(has_alpha, dest_scan); in DrawNormalTextHelper()
[all …]
/external/webp/src/dec/
Dio_dec.c187 const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w, in EmitAlphaRGB() local
192 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB()
293 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler() local
306 const int num_rescalers = has_alpha ? 4 : 3; in InitYUVRescaler()
309 if (has_alpha) { in InitYUVRescaler()
324 p->scaler_a = has_alpha ? &scalers[3] : NULL; in InitYUVRescaler()
337 if (has_alpha) { in InitYUVRescaler()
478 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitRGBRescaler() local
488 const int num_rescalers = has_alpha ? 4 : 3; in InitRGBRescaler()
492 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()
691 &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()
1637 int width, height, has_alpha; in VP8LDecodeHeader() local
1648 if (!ReadImageInfo(&dec->br_, &width, &height, &has_alpha)) { in VP8LDecodeHeader()
/external/webrtc/modules/desktop_capture/win/
Dcursor.cc158 bool has_alpha = false; in CreateMouseCursorFromHCursor() local
172 has_alpha = HasAlphaChannel(reinterpret_cast<uint32_t*>(image->data()), in CreateMouseCursorFromHCursor()
189 if (!has_alpha) { in CreateMouseCursorFromHCursor()
/external/skqp/src/codec/
DSkWebpCodec.cpp134 const bool hasAlpha = SkToBool(frame.has_alpha) in MakeFromStream()
276 Frame* frame = fFrameHolder.appendNewFrame(iter.has_alpha); in onGetFrameCount()
466 && frame.has_alpha; in onGetPixels()
470 if (!frame.has_alpha) { in onGetPixels()
497 frame.has_alpha && dstInfo.alphaType() == kPremul_SkAlphaType && !this->colorXform()); in onGetPixels()
550 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels()
562 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels()
/external/skia/src/codec/
DSkWebpCodec.cpp133 const bool hasAlpha = SkToBool(frame.has_alpha) in MakeFromStream()
261 Frame* frame = fFrameHolder.appendNewFrame(iter.has_alpha); in onGetFrameCount()
446 && frame.has_alpha; in onGetPixels()
449 if (!frame.has_alpha) { in onGetPixels()
529 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels()
541 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels()
/external/webrtc/modules/video_coding/codecs/multiplex/
Dmultiplex_encoder_adapter.cc164 const bool has_alpha = input_image.video_frame_buffer()->type() == in Encode() local
188 picture_index_, has_alpha ? kAlphaCodecStreams : 1, in Encode()
200 if (rv || !has_alpha) in Encode()
/external/webp/src/enc/
Dpicture_csp_enc.c854 const int has_alpha = CheckNonOpaque(a_ptr, width, height, step, rgb_stride); in ImportYUVAFromRGBA() local
857 picture->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; in ImportYUVAFromRGBA()
869 if (has_alpha) { in ImportYUVAFromRGBA()
881 if (has_alpha) { in ImportYUVAFromRGBA()
910 int rows_have_alpha = has_alpha; in ImportYUVAFromRGBA()
929 if (has_alpha) { in ImportYUVAFromRGBA()
951 if (has_alpha) a_ptr += 2 * rgb_stride; in ImportYUVAFromRGBA()
954 int row_has_alpha = has_alpha; in ImportYUVAFromRGBA()
Dpicture_enc.c92 const int has_alpha = (int)picture->colorspace & WEBP_CSP_ALPHA_BIT; in WebPPictureAllocYUVA() local
111 a_width = has_alpha ? width : 0; in WebPPictureAllocYUVA()
Dpicture_tools_enc.c205 const int has_alpha = pic->colorspace & WEBP_CSP_ALPHA_BIT; in WebPBlendAlpha() local
210 if (!has_alpha || a_ptr == NULL) return; // nothing to do in WebPBlendAlpha()
Dvp8l_enc.c1162 static int WriteRealAlphaAndVersion(VP8LBitWriter* const bw, int has_alpha) { in WriteRealAlphaAndVersion() argument
1163 VP8LPutBits(bw, has_alpha, 1); in WriteRealAlphaAndVersion()
1837 int has_alpha; in VP8LEncodeImage() local
1885 has_alpha = WebPPictureHasTransparency(picture); in VP8LEncodeImage()
1887 if (!WriteRealAlphaAndVersion(&bw, has_alpha)) { in VP8LEncodeImage()
/external/tensorflow/tensorflow/core/lib/png/
Dpng_io.cc255 const bool has_alpha = (context->color_type & PNG_COLOR_MASK_ALPHA) != 0; in CommonInitDecode() local
257 if (has_alpha) { // There is alpha in CommonInitDecode()
265 if (has_alpha || has_tRNS) { // There is alpha in CommonInitDecode()
/external/webp/include/webp/
Ddemux.h154 int has_alpha; // True if the frame contains transparency. member
Ddecode.h415 int has_alpha; // True if the bitstream contains an alpha channel. member
/external/webp/src/webp/
Ddemux.h154 int has_alpha; // True if the frame contains transparency. member
Ddecode.h415 int has_alpha; // True if the bitstream contains an alpha channel. member
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_clear.c120 bool has_alpha = false; in vi_get_fast_clear_parameters() local
173 has_alpha = true; in vi_get_fast_clear_parameters()
181 if (!has_alpha) in vi_get_fast_clear_parameters()
/external/webp/src/demux/
Ddemux.c203 frame->has_alpha_ |= features->has_alpha; in SetFrameInfo()
415 const int has_alpha = !!(dmux->feature_flags_ & ALPHA_FLAG); in ParseSingleImage() local
417 if (!has_alpha && frame->img_components_[1].size_ > 0) { in ParseSingleImage()
846 iter->has_alpha = frame->has_alpha_; in SynthesizeFrame()
/external/openscreen/osp/impl/discovery/mdns/
Dmdns_responder_adapter_impl.cc62 bool has_alpha = false; in IsValidServiceName() local
69 has_alpha = has_alpha || std::isalpha(*it); in IsValidServiceName()
71 return has_alpha && !previous_hyphen; in IsValidServiceName()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c2286 bool has_alpha = false; in generate_unswizzled_blend() local
2367 has_alpha = true; in generate_unswizzled_blend()
2378 has_alpha = true; in generate_unswizzled_blend()
2388 assert (!has_alpha); in generate_unswizzled_blend()
2403 has_alpha = true; in generate_unswizzled_blend()
2437 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
2476 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
2501 if (dst_channels == 3 && !has_alpha) { in generate_unswizzled_blend()
2700 if (!has_alpha) { in generate_unswizzled_blend()
2855 has_alpha ? NULL : src_alpha[i], in generate_unswizzled_blend()
[all …]
/external/mesa3d/src/freedreno/vulkan/
Dtu_pipeline.c1812 bool has_alpha) in tu6_rb_mrt_blend_control() argument
1816 has_alpha ? att->srcColorBlendFactor in tu6_rb_mrt_blend_control()
1819 has_alpha ? att->dstColorBlendFactor in tu6_rb_mrt_blend_control()
1839 bool has_alpha) in tu6_rb_mrt_control() argument
1855 if (has_alpha) in tu6_rb_mrt_control()
1888 const bool has_alpha = vk_format_has_alpha(format); in tu6_emit_rb_mrt_controls() local
1891 tu6_rb_mrt_control(att, rb_mrt_control_rop, is_int, has_alpha); in tu6_emit_rb_mrt_controls()
1892 rb_mrt_blend_control = tu6_rb_mrt_blend_control(att, has_alpha); in tu6_emit_rb_mrt_controls()
/external/OpenCL-CTS/test_common/harness/
DimageHelpers.h181 int has_alpha(const cl_image_format *format);
243 if (!has_alpha(imageInfo->format)) outData[3] = 1; in read_image_pixel()
/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 …]

12