/third_party/skia/third_party/externals/libwebp/examples/ |
H A 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 in main() [all...] |
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | image_enc.c | 79 uint32_t width, uint32_t height, int has_alpha) { in WriteUsingWIC() 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 in WebPWriteTIFF() 76 WriteUsingWIC(const char* out_file_name, int use_stdout, REFGUID container_guid, uint8_t* rgb, int stride, uint32_t width, uint32_t height, int has_alpha) WriteUsingWIC() argument [all...] |
H A 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()
|
H A 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()
|
H A 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/astc-encoder/Source/ |
H A D | astcenccli_image.cpp | 97 bool has_alpha = false; in determine_image_components() local 115 has_alpha = has_alpha || (a != 0xFF); in determine_image_components() 136 has_alpha = has_alpha || ((a ^ 0xC3FF) != 0xFFFF); in determine_image_components() 160 has_alpha = has_alpha || (a != 1.0f); in determine_image_components() 166 int image_components = 1 + (is_luma == 0 ? 2 : 0) + (has_alpha ? 1 : 0); in determine_image_components()
|
H A D | stb_image_write.h | 534 int has_alpha = (comp == 2 || comp == 4); in stbi_write_tga_core() local 535 int colorbytes = has_alpha ? comp-1 : comp; in stbi_write_tga_core() 542 return stbiw__outfile(s, -1, -1, x, y, comp, 0, (void *) data, has_alpha, 0, in stbi_write_tga_core() 543 "111 221 2222 11", 0, 0, format, 0, 0, 0, 0, 0, x, y, (colorbytes + has_alpha) * 8, has_alpha * 8); in stbi_write_tga_core() 548 stbiw__writef(s, "111 221 2222 11", 0,0,format+8, 0,0,0, 0,0,x,y, (colorbytes + has_alpha) * 8, has_alpha * 8); in stbi_write_tga_core() 597 stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin + k * comp); in stbi_write_tga_core() 602 stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin); in stbi_write_tga_core()
|
/third_party/ffmpeg/libavcodec/ |
H A D | imgconvert.c | 33 int has_alpha, int *loss_ptr){ in avcodec_find_best_pix_fmt_of_list() 41 best = av_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() 31 avcodec_find_best_pix_fmt_of_list(const enum AVPixelFormat *pix_fmt_list, enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr) avcodec_find_best_pix_fmt_of_list() argument
|
H A D | xsubdec.c | 61 int has_alpha = avctx->codec_tag == MKTAG('D','X','S','A'); in decode_frame() local 64 if (buf_size < 27 + 7 * 2 + 4 * (3 + has_alpha)) { in decode_frame() 122 if (!has_alpha) { in decode_frame()
|
H A D | vp56.h | 183 int has_alpha; member 224 int flip, int has_alpha);
|
H A D | vp6.c | 642 VP56Context *s, int flip, int has_alpha) in vp6_decode_init_context() 644 int ret = ff_vp56_init_context(avctx, s, flip, has_alpha); in vp6_decode_init_context() 672 if (s->has_alpha) { in vp6_decode_init() 676 s->flip == -1, s->has_alpha); in vp6_decode_init() 641 vp6_decode_init_context(AVCodecContext *avctx, VP56Context *s, int flip, int has_alpha) vp6_decode_init_context() argument
|
H A D | vp56.c | 579 if (s->has_alpha) { in ff_vp56_decode_frame() 777 int flip, int has_alpha) in ff_vp56_init_context() 782 avctx->pix_fmt = has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; in ff_vp56_init_context() 810 s->has_alpha = has_alpha; in ff_vp56_init_context() 776 ff_vp56_init_context(AVCodecContext *avctx, VP56Context *s, int flip, int has_alpha) ff_vp56_init_context() argument
|
/third_party/ffmpeg/libavfilter/x86/ |
H A D | vf_lut3d_init.c | 27 void ff_interp_##name##_##format##_##opt(LUT3DContext *lut3d, Lut3DPreLut *prelut, AVFrame *src, AVFrame *dst, int slice_start, int slice_end, int has_alpha); \ 35 int has_alpha = in->linesize[3] && out != in; \ 38 ff_interp_##name##_##format##_##opt(lut3d, prelut, in, out, slice_start, slice_end, has_alpha); \
|
/third_party/skia/third_party/externals/libwebp/src/dec/ |
H A D | io_dec.c | 187 const int has_alpha = WebPDispatchAlpha(alpha, io->width, mb_w, in EmitAlphaRGB() local 191 // has_alpha is true if there's non-trivial alpha to premultiply with. in EmitAlphaRGB() 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 in InitRGBRescaler() [all...] |
H A D | webp_dec.c | 266 // Fetch '*width', '*height', '*has_alpha' and fill out 'headers' based on 281 int* const has_alpha, in ParseHeadersInternal() 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() 419 // fill out headers, ignore width/height/has_alpha. in WebPParseHeaders() 691 &features->has_alpha, &features->has_animation, in GetFeatures() 277 ParseHeadersInternal(const uint8_t* data, size_t data_size, int* const width, int* const height, int* const has_alpha, int* const has_animation, int* const format, WebPHeaderStructure* const headers) ParseHeadersInternal() argument
|
H A D | vp8_dec.h | 176 // width/height/has_alpha can be passed NULL. 179 int* const width, int* const height, int* const has_alpha);
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_il.c | 45 int has_alpha; member 99 s->has_alpha = !!(desc->flags & AV_PIX_FMT_FLAG_ALPHA); in config_input() 158 for (comp = 1; comp < (s->nb_planes - s->has_alpha); comp++) { in filter_frame() 165 if (s->has_alpha) { in filter_frame()
|
/third_party/skia/src/codec/ |
H A 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()
|
/third_party/ffmpeg/libavutil/ |
H A D | pixdesc.h | 381 * @param[in] has_alpha Whether the source pixel format alpha channel is used. 387 int has_alpha); 403 * @param[in] has_alpha Whether the source pixel format alpha channel is used. 408 enum AVPixelFormat src_pix_fmt, int has_alpha, int *loss_ptr);
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
H A D | picture_csp_enc.c | 854 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()
|
H A D | picture_enc.c | 92 const int has_alpha = (int)picture->colorspace & WEBP_CSP_ALPHA_BIT; in WebPPictureAllocYUVA() local 111 a_width = has_alpha ? width : 0; in WebPPictureAllocYUVA()
|
H A D | picture_tools_enc.c | 205 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()
|
/third_party/mesa3d/include/ |
H A D | kopper_interface.h | 98 int has_alpha; member
|
/third_party/glfw/deps/ |
H A D | stb_image_write.h | 534 int has_alpha = (comp == 2 || comp == 4); in stbi_write_tga_core() local 535 int colorbytes = has_alpha ? comp-1 : comp; in stbi_write_tga_core() 542 return stbiw__outfile(s, -1, -1, x, y, comp, 0, (void *) data, has_alpha, 0, in stbi_write_tga_core() 543 "111 221 2222 11", 0, 0, format, 0, 0, 0, 0, 0, x, y, (colorbytes + has_alpha) * 8, has_alpha * 8); in stbi_write_tga_core() 548 stbiw__writef(s, "111 221 2222 11", 0,0,format+8, 0,0,0, 0,0,x,y, (colorbytes + has_alpha) * 8, has_alpha * 8); in stbi_write_tga_core() 597 stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin + k * comp); in stbi_write_tga_core() 602 stbiw__write_pixel(s, -1, comp, has_alpha, 0, begin); in stbi_write_tga_core()
|
/third_party/skia/third_party/externals/libwebp/src/webp/ |
H A D | demux.h | 154 int has_alpha; // True if the frame contains transparency. member
|