/third_party/wayland-ivi-extension/ivi-layermanagement-api/ilmControl/src/ |
D | bitmap.c | 113 bool has_alpha; in save_as_bitmap() local 122 has_alpha = true; in save_as_bitmap() 126 has_alpha = false; in save_as_bitmap() 130 has_alpha = true; in save_as_bitmap() 134 has_alpha = false; in save_as_bitmap() 141 bytes_per_pixel = has_alpha ? 4 : 3; in save_as_bitmap() 163 if (has_alpha) { in save_as_bitmap()
|
D | writepng.c | 165 bool has_alpha = false; in save_as_png() local 181 has_alpha = true; in save_as_png() 184 has_alpha = false; in save_as_png() 188 bytes_per_pixel = has_alpha ? 4 : 3; in save_as_png() 206 image_buffer[image_offset + i] = pixel_p[i + (has_alpha ? 0 : 1)]; in save_as_png()
|
/third_party/ffmpeg/libavcodec/ |
D | imgconvert.c | 49 int has_alpha) in avcodec_get_pix_fmt_loss() argument 51 return av_get_pix_fmt_loss(dst_pix_fmt, src_pix_fmt, has_alpha); in avcodec_get_pix_fmt_loss() 55 … enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) in avcodec_find_best_pix_fmt_of_2() argument 57 return av_find_best_pix_fmt_of_2(dst_pix_fmt1, dst_pix_fmt2, src_pix_fmt, has_alpha, loss_ptr); in avcodec_find_best_pix_fmt_of_2() 61 … enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) in avcodec_find_best_pix_fmt2() argument 63 …return avcodec_find_best_pix_fmt_of_2(dst_pix_fmt1, dst_pix_fmt2, src_pix_fmt, has_alpha, loss_ptr… in avcodec_find_best_pix_fmt2() 68 int has_alpha, int *loss_ptr){ in avcodec_find_best_pix_fmt_of_list() argument 76 best = avcodec_find_best_pix_fmt_of_2(best, pix_fmt_list[i], src_pix_fmt, has_alpha, &loss); in avcodec_find_best_pix_fmt_of_list()
|
D | xsubdec.c | 59 int has_alpha = avctx->codec_tag == MKTAG('D','X','S','A'); in decode_frame() local 62 if (buf_size < 27 + 7 * 2 + 4 * (3 + has_alpha)) { in decode_frame() 127 if (!has_alpha) { in decode_frame()
|
D | vp56.h | 181 int has_alpha; member 217 int ff_vp56_init(AVCodecContext *avctx, int flip, int has_alpha); 219 int flip, int has_alpha);
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | webpdec.c | 167 const int has_alpha = keep_alpha && bitstream->has_alpha; in ReadWebP() local 174 stride = (uint64_t)bitstream->width * (has_alpha ? 5 : 3) / 2; in ReadWebP() 175 pic->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; in ReadWebP() 198 output_buffer->colorspace = has_alpha ? MODE_YUVA : MODE_YUV; in ReadWebP() 202 output_buffer->u.YUVA.a = has_alpha ? pic->a : NULL; in ReadWebP() 206 output_buffer->u.YUVA.a_stride = has_alpha ? pic->a_stride : 0; in ReadWebP()
|
D | image_enc.c | 79 uint32_t width, uint32_t height, int has_alpha) { in WriteUsingWIC() argument 85 WICPixelFormatGUID pixel_format = has_alpha ? GUID_WICPixelFormat32bppBGRA in WriteUsingWIC() 150 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWritePNG() local 154 rgb, stride, width, height, has_alpha)); in WebPWritePNG() 189 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWritePNG() local 193 has_alpha ? PNG_COLOR_TYPE_RGBA : PNG_COLOR_TYPE_RGB, in WebPWritePNG() 297 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWriteBMP() local 302 const uint32_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteBMP() 364 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWriteTIFF() local 369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteTIFF() [all …]
|
D | pngdec.c | 238 int has_alpha; in ReadPNG() local 296 has_alpha = 1; in ReadPNG() 298 has_alpha = !!(color_type & PNG_COLOR_MASK_ALPHA); in ReadPNG() 313 has_alpha = 0; in ReadPNG() 319 stride = (int64_t)(has_alpha ? 4 : 3) * width * sizeof(*rgb); in ReadPNG() 344 ok = has_alpha ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNG()
|
D | wicdec.c | 214 int has_alpha; in HasAlpha() local 231 has_alpha = frame_palette_has_alpha || global_palette_has_alpha; in HasAlpha() 236 has_alpha = IsEqualGUID(MAKE_REFGUID(pixel_format), in HasAlpha() 245 return has_alpha; in HasAlpha() 287 int has_alpha = 0; in ReadPictureWithWIC() local 328 has_alpha = HasAlpha(factory, decoder, frame, src_pixel_format); in ReadPictureWithWIC() 337 for (importer = has_alpha ? kAlphaFormatImporters : kNonAlphaFormatImporters; in ReadPictureWithWIC()
|
/third_party/flutter/skia/third_party/externals/libwebp/imageio/ |
D | webpdec.c | 167 const int has_alpha = keep_alpha && bitstream->has_alpha; in ReadWebP() local 174 stride = (uint64_t)bitstream->width * (has_alpha ? 5 : 3) / 2; in ReadWebP() 175 pic->colorspace = has_alpha ? WEBP_YUV420A : WEBP_YUV420; in ReadWebP() 198 output_buffer->colorspace = has_alpha ? MODE_YUVA : MODE_YUV; in ReadWebP() 202 output_buffer->u.YUVA.a = has_alpha ? pic->a : NULL; in ReadWebP() 206 output_buffer->u.YUVA.a_stride = has_alpha ? pic->a_stride : 0; in ReadWebP()
|
D | image_enc.c | 79 uint32_t width, uint32_t height, int has_alpha) { in WriteUsingWIC() argument 85 WICPixelFormatGUID pixel_format = has_alpha ? GUID_WICPixelFormat32bppBGRA in WriteUsingWIC() 150 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWritePNG() local 154 rgb, stride, width, height, has_alpha)); in WebPWritePNG() 189 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWritePNG() local 193 has_alpha ? PNG_COLOR_TYPE_RGBA : PNG_COLOR_TYPE_RGB, in WebPWritePNG() 297 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWriteBMP() local 302 const uint32_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteBMP() 364 const int has_alpha = WebPIsAlphaMode(buffer->colorspace); in WebPWriteTIFF() local 369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteTIFF() [all …]
|
D | pngdec.c | 238 int has_alpha; in ReadPNG() local 287 has_alpha = 1; in ReadPNG() 289 has_alpha = !!(color_type & PNG_COLOR_MASK_ALPHA); in ReadPNG() 304 has_alpha = 0; in ReadPNG() 310 stride = (int64_t)(has_alpha ? 4 : 3) * width * sizeof(*rgb); in ReadPNG() 335 ok = has_alpha ? WebPPictureImportRGBA(pic, rgb, (int)stride) in ReadPNG()
|
D | wicdec.c | 211 int has_alpha; in HasAlpha() local 228 has_alpha = frame_palette_has_alpha || global_palette_has_alpha; in HasAlpha() 233 has_alpha = IsEqualGUID(MAKE_REFGUID(pixel_format), in HasAlpha() 242 return has_alpha; in HasAlpha() 279 int has_alpha = 0; in ReadPictureWithWIC() local 314 has_alpha = HasAlpha(factory, decoder, frame, src_pixel_format); in ReadPictureWithWIC() 323 for (importer = has_alpha ? kAlphaFormatImporters : kNonAlphaFormatImporters; in ReadPictureWithWIC()
|
/third_party/skia/third_party/externals/libwebp/examples/ |
D | dwebp.c | 142 const int has_alpha = WebPIsAlphaMode(output_buffer->colorspace); in AllocateExternalBuffer() local 146 uint32_t total_size = stride * h * (has_alpha ? 2 : 1) in AllocateExternalBuffer() 156 if (has_alpha) { in AllocateExternalBuffer() 325 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 327 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 337 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 340 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 344 output_buffer->colorspace = bitstream->has_alpha ? MODE_YUVA : MODE_YUV; in main() 399 bitstream->has_alpha ? " (with alpha)" : "", in main() 408 bitstream->has_alpha ? " (with alpha)" : "", in main()
|
/third_party/flutter/skia/third_party/externals/libwebp/examples/ |
D | dwebp.c | 141 const int has_alpha = WebPIsAlphaMode(output_buffer->colorspace); in AllocateExternalBuffer() local 145 uint32_t total_size = stride * h * (has_alpha ? 2 : 1) in AllocateExternalBuffer() 155 if (has_alpha) { in AllocateExternalBuffer() 324 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 326 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 336 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 339 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 343 output_buffer->colorspace = bitstream->has_alpha ? MODE_YUVA : MODE_YUV; in main() 398 bitstream->has_alpha ? " (with alpha)" : "", in main() 407 bitstream->has_alpha ? " (with alpha)" : "", in main()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/ |
D | io_dec.c | 192 const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w, in EmitAlphaRGB() local 197 if (has_alpha && WebPIsPremultipliedMode(colorspace)) { in EmitAlphaRGB() 298 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitYUVRescaler() local 311 const int num_rescalers = has_alpha ? 4 : 3; in InitYUVRescaler() 314 if (has_alpha) { in InitYUVRescaler() 329 p->scaler_a = has_alpha ? &scalers[3] : NULL; in InitYUVRescaler() 342 if (has_alpha) { in InitYUVRescaler() 483 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitRGBRescaler() local 493 const int num_rescalers = has_alpha ? 4 : 3; in InitRGBRescaler() 497 if (has_alpha) { in InitRGBRescaler() [all …]
|
D | webp_dec.c | 281 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()
|
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/ |
D | gstgdkpixbufsink.c | 185 sink->has_alpha = FALSE; in gst_gdk_pixbuf_sink_init() 214 sink->has_alpha = FALSE; in gst_gdk_pixbuf_sink_stop() 262 sink->has_alpha = GST_VIDEO_INFO_HAS_ALPHA (&info); in gst_gdk_pixbuf_sink_set_caps() 296 bytes_per_pixel = (sink->has_alpha) ? 4 : 3; in gst_gdk_pixbuf_sink_get_pixbuf_from_buffer() 307 GDK_COLORSPACE_RGB, sink->has_alpha, 8, GST_VIDEO_SINK_WIDTH (sink), in gst_gdk_pixbuf_sink_get_pixbuf_from_buffer()
|
D | gstgdkpixbufsink.h | 55 gboolean has_alpha; member
|
/third_party/skia/third_party/externals/libwebp/src/dec/ |
D | io_dec.c | 187 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 308 const int num_rescalers = has_alpha ? 4 : 3; in InitYUVRescaler() 311 if (has_alpha) { in InitYUVRescaler() 331 p->scaler_a = has_alpha ? &scalers[3] : NULL; in InitYUVRescaler() 346 if (has_alpha) { in InitYUVRescaler() 489 const int has_alpha = WebPIsAlphaMode(p->output->colorspace); in InitRGBRescaler() local 501 const int num_rescalers = has_alpha ? 4 : 3; in InitRGBRescaler() 524 p->scaler_a = has_alpha ? &scalers[3] : NULL; in InitRGBRescaler() [all …]
|
D | webp_dec.c | 281 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()
|
/third_party/ffmpeg/libavfilter/ |
D | vf_il.c | 45 int has_alpha; member 108 s->has_alpha = !!(desc->flags & AV_PIX_FMT_FLAG_ALPHA); in config_input() 167 for (comp = 1; comp < (s->nb_planes - s->has_alpha); comp++) { in filter_frame() 174 if (s->has_alpha) { in filter_frame()
|
/third_party/flutter/skia/src/codec/ |
D | SkWebpCodec.cpp | 134 const bool hasAlpha = SkToBool(frame.has_alpha) in MakeFromStream() 261 Frame* frame = fFrameHolder.appendNewFrame(iter.has_alpha); in onGetFrameCount() 451 && frame.has_alpha; in onGetPixels() 455 if (!frame.has_alpha) { in onGetPixels() 482 frame.has_alpha && dstInfo.alphaType() == kPremul_SkAlphaType && !this->colorXform()); in onGetPixels() 535 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels() 547 dstInfo.alphaType(), frame.has_alpha, scaledWidth); in onGetPixels()
|
/third_party/ffmpeg/libavutil/ |
D | pixdesc.h | 417 int has_alpha); 438 … enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
/third_party/skia/src/codec/ |
D | SkWebpCodec.cpp | 133 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()
|