Home
last modified time | relevance | path

Searched refs:PNG_FORMAT_FLAG_COLOR (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/third_party/libpng16/
Dpngread.c1344 format |= PNG_FORMAT_FLAG_COLOR; in png_image_format()
1415 if ((format & PNG_FORMAT_FLAG_COLOR) != 0 && ((png_ptr->colorspace.flags in png_image_read_header()
1751 const int convert_to_Y = (image->format & PNG_FORMAT_FLAG_COLOR) == 0 && in png_create_colormap_entry()
2117 if ((output_format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_colormap()
2375 if ((output_format & PNG_FORMAT_FLAG_COLOR) == 0 || in png_image_read_colormap()
2494 if ((output_format & PNG_FORMAT_FLAG_COLOR) == 0) in png_image_read_colormap()
3273 (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; in png_image_read_composite()
3682 if ((change & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_direct()
3685 if ((format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_direct()
3710 change &= ~PNG_FORMAT_FLAG_COLOR; in png_image_read_direct()
[all …]
Dpng.h2798 #define PNG_FORMAT_FLAG_COLOR 0x02U /* color format: otherwise grayscale */ macro
2817 #define PNG_FORMAT_RGB PNG_FORMAT_FLAG_COLOR
2818 #define PNG_FORMAT_BGR (PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_BGR)
2829 #define PNG_FORMAT_LINEAR_RGB (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR)
2831 (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA)
2864 (((fmt)&(PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA))+1)
Dpngwrite.c1528 const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; in png_write_image_16bit()
1686 const int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; in png_write_image_8bit()
1998 ((format & PNG_FORMAT_FLAG_COLOR) ? PNG_COLOR_MASK_COLOR : 0) + in png_image_write_main()
2051 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_write_main()
2073 if ((format & ~(png_uint_32)(PNG_FORMAT_FLAG_COLOR | PNG_FORMAT_FLAG_LINEAR | in png_image_write_main()
/external/libpng/
Dpngread.c1354 format |= PNG_FORMAT_FLAG_COLOR; in png_image_format()
1427 if ((format & PNG_FORMAT_FLAG_COLOR) != 0 && ((png_ptr->colorspace.flags in png_image_read_header()
1763 const int convert_to_Y = (image->format & PNG_FORMAT_FLAG_COLOR) == 0 && in png_create_colormap_entry()
2131 if ((output_format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_colormap()
2389 if ((output_format & PNG_FORMAT_FLAG_COLOR) == 0 || in png_image_read_colormap()
2508 if ((output_format & PNG_FORMAT_FLAG_COLOR) == 0) in png_image_read_colormap()
3286 (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? 3 : 1; in png_image_read_composite()
3695 if ((change & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_direct()
3698 if ((format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_read_direct()
3723 change &= ~PNG_FORMAT_FLAG_COLOR; in png_image_read_direct()
[all …]
Dpng.h2810 #define PNG_FORMAT_FLAG_COLOR 0x02U /* color format: otherwise grayscale */ macro
2831 #define PNG_FORMAT_RGB PNG_FORMAT_FLAG_COLOR
2832 #define PNG_FORMAT_BGR (PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_BGR)
2843 #define PNG_FORMAT_LINEAR_RGB (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR)
2845 (PNG_FORMAT_FLAG_LINEAR|PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA)
2878 (((fmt)&(PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA))+1)
Dpngwrite.c1539 const unsigned int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? in png_write_image_16bit()
1698 const unsigned int channels = (image->format & PNG_FORMAT_FLAG_COLOR) != 0 ? in png_write_image_8bit()
2011 ((format & PNG_FORMAT_FLAG_COLOR) ? PNG_COLOR_MASK_COLOR : 0) + in png_image_write_main()
2064 if (colormap == 0 && (format & PNG_FORMAT_FLAG_COLOR) != 0) in png_image_write_main()
2086 if ((format & ~(png_uint_32)(PNG_FORMAT_FLAG_COLOR | PNG_FORMAT_FLAG_LINEAR | in png_image_write_main()
Dlibpng-manual.txt3918 PNG_FORMAT_FLAG_COLOR color format: otherwise grayscale
/external/libpng/contrib/libtests/
Dpngstest.c548 if ((f & PNG_FORMAT_FLAG_COLOR) == 0 && in format_default()
807 (PNG_FORMAT_FLAG_ALPHA|PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_LINEAR)
1028 if (format & PNG_FORMAT_FLAG_COLOR) in get_pixel()
1087 if (format & PNG_FORMAT_FLAG_COLOR) in get_pixel()
1956 #if PNG_FORMAT_FLAG_ALPHA == 1 && PNG_FORMAT_FLAG_COLOR == 2 &&\
2185 if (out_format & PNG_FORMAT_FLAG_COLOR) in transform_from_formats()
2318 switch (format & (PNG_FORMAT_FLAG_ALPHA|PNG_FORMAT_FLAG_COLOR)) in print_pixel()
2329 case PNG_FORMAT_FLAG_COLOR: in print_pixel()
2334 case PNG_FORMAT_FLAG_COLOR|PNG_FORMAT_FLAG_ALPHA: in print_pixel()
2543 if (format & PNG_FORMAT_FLAG_COLOR) in component_loc()
[all …]