/external/libpng/contrib/gregbook/ |
H A D | writepng.c | 87 int color_type, interlace_type; local 141 color_type = PNG_COLOR_TYPE_GRAY; 143 color_type = PNG_COLOR_TYPE_RGB; 145 color_type = PNG_COLOR_TYPE_RGB_ALPHA; 155 mainprog_ptr->sample_depth, color_type, interlace_type,
|
H A D | readppm.c | 68 int bit_depth, color_type, channels; variable 96 color_type = 2; 99 color_type = 6; 102 color_type = 0;
|
H A D | readpng.c | 72 int bit_depth, color_type; variable 134 * etc., but want bit_depth and color_type for later [don't care about 137 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 173 * and blue values, regardless of color_type: */ 185 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 226 if (color_type == PNG_COLOR_TYPE_PALETTE) 228 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 234 if (color_type == PNG_COLOR_TYPE_GRAY || 235 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
|
H A D | readpng2.c | 381 int color_type, bit_depth; local 418 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 434 * green and blue values, regardless of color_type: */ 443 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 466 if (color_type == PNG_COLOR_TYPE_PALETTE) 468 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 474 if (color_type == PNG_COLOR_TYPE_GRAY || 475 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
|
/external/chromium_org/third_party/freetype/src/sfnt/ |
H A D | pngshim.c | 194 int bitdepth, color_type, interlace; local 238 &bitdepth, &color_type, &interlace, 247 if ( color_type == PNG_COLOR_TYPE_PALETTE ) 251 if ( color_type == PNG_COLOR_TYPE_GRAY ) 271 if ( color_type == PNG_COLOR_TYPE_GRAY || 272 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) 284 &bitdepth, &color_type, &interlace, 288 !( color_type == PNG_COLOR_TYPE_RGB || 289 color_type == PNG_COLOR_TYPE_RGB_ALPHA ) ) 295 switch ( color_type ) [all...] |
/external/freetype/src/sfnt/ |
H A D | pngshim.c | 194 int bitdepth, color_type, interlace; local 238 &bitdepth, &color_type, &interlace, 247 if ( color_type == PNG_COLOR_TYPE_PALETTE ) 251 if ( color_type == PNG_COLOR_TYPE_GRAY ) 271 if ( color_type == PNG_COLOR_TYPE_GRAY || 272 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ) 284 &bitdepth, &color_type, &interlace, 288 !( color_type == PNG_COLOR_TYPE_RGB || 289 color_type == PNG_COLOR_TYPE_RGB_ALPHA ) ) 295 switch ( color_type ) [all...] |
/external/libpng/contrib/pngminus/ |
H A D | png2pnm.c | 202 int color_type; local 247 &width, &height, &bit_depth, &color_type, 253 if (color_type == PNG_COLOR_TYPE_PALETTE) 256 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 267 if (color_type == PNG_COLOR_TYPE_GRAY || 268 color_type == PNG_COLOR_TYPE_GRAY_ALPHA) 281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 294 if (color_type == PNG_COLOR_TYPE_GRAY) 296 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) 298 else if (color_type [all...] |
H A D | pnm2png.c | 199 int color_type; local 222 color_type = PNG_COLOR_TYPE_GRAY; 228 color_type = PNG_COLOR_TYPE_GRAY; 249 color_type = PNG_COLOR_TYPE_RGB; 276 if (color_type == PNG_COLOR_TYPE_GRAY) 277 color_type = PNG_COLOR_TYPE_GRAY_ALPHA; 278 if (color_type == PNG_COLOR_TYPE_RGB) 279 color_type = PNG_COLOR_TYPE_RGB_ALPHA; 319 if (color_type == PNG_COLOR_TYPE_GRAY) 321 else if (color_type [all...] |
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_png.cpp | 152 int bit_depth, color_type; local 158 &bit_depth, &color_type, 0, 0, 0 ); 160 m_iscolor = color_type == PNG_COLOR_TYPE_RGB || 161 color_type == PNG_COLOR_TYPE_RGB_ALPHA || 162 color_type == PNG_COLOR_TYPE_PALETTE; 166 m_color_type = color_type;
|
/external/chromium_org/third_party/libpng/ |
H A D | png.c | 962 int color_type, int interlace_type, int compression_type, 1028 if (color_type < 0 || color_type == 1 || 1029 color_type == 5 || color_type > 6) 1035 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) || 1036 ((color_type == PNG_COLOR_TYPE_RGB || 1037 color_type == PNG_COLOR_TYPE_GRAY_ALPHA || 1038 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8)) 1064 * 5. The color_type i 960 png_check_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument [all...] |
H A D | pngget.c | 85 return info_ptr->color_type; 579 int *color_type, int *interlace_type, int *compression_type, 586 height == NULL || bit_depth == NULL || color_type == NULL) 592 *color_type = info_ptr->color_type; 609 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type, 813 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 824 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */ 577 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
|
H A D | pngset.c | 229 int color_type, int interlace_type, int compression_type, 240 info_ptr->color_type = (png_byte)color_type; 246 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type, 249 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 251 else if (info_ptr->color_type & PNG_COLOR_MASK_COLOR) 255 if (info_ptr->color_type & PNG_COLOR_MASK_ALPHA) 456 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 864 if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY && 866 (info_ptr->color_type 227 png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument [all...] |
H A D | pngrtran.c | 560 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) || 561 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)) 717 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 792 int color_type = png_ptr->color_type; local 801 * Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or 809 !(color_type & PNG_COLOR_MASK_COLOR)) 826 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */ 875 else if (color_type == PNG_COLOR_TYPE_PALETTE) 911 if ((color_type [all...] |
H A D | pngrutil.c | 445 int bit_depth, color_type, compression_type, filter_type; local 465 color_type = buf[9]; 475 png_ptr->color_type = (png_byte)color_type; 482 switch (png_ptr->color_type) 510 color_type, interlace_type, compression_type, filter_type); 540 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR)) 548 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 557 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 601 if (png_ptr->color_type [all...] |
H A D | pngwutil.c | 393 int bit_depth, int color_type, int compression_type, int filter_type, 406 switch (color_type) 462 * 5. The color_type is RGB or RGBA 468 (color_type == PNG_COLOR_TYPE_RGB || 469 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && 491 png_ptr->color_type = (png_byte)color_type; 511 buf[9] = (png_byte)color_type; 525 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE || 590 if (png_ptr->color_type 392 png_write_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type) argument 931 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type) argument 1076 png_write_tRNS(png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type) argument 1133 png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type) argument [all...] |
/external/chromium_org/tools/imagediff/ |
H A D | image_diff_png.cc | 156 int bit_depth, color_type, interlace_type, compression_type; local 159 png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, 175 if (color_type == PNG_COLOR_TYPE_PALETTE || 176 (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)) 188 if (color_type == PNG_COLOR_TYPE_GRAY || 189 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
|
/external/libpng/ |
H A D | png.c | 932 int color_type, int interlace_type, int compression_type, 998 if (color_type < 0 || color_type == 1 || 999 color_type == 5 || color_type > 6) 1005 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) || 1006 ((color_type == PNG_COLOR_TYPE_RGB || 1007 color_type == PNG_COLOR_TYPE_GRAY_ALPHA || 1008 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8)) 1034 * 5. The color_type i 930 png_check_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument [all...] |
H A D | pngget.c | 85 return info_ptr->color_type; 579 int *color_type, int *interlace_type, int *compression_type, 586 height == NULL || bit_depth == NULL || color_type == NULL) 592 *color_type = info_ptr->color_type; 609 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type, 813 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 824 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */ 577 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
|
H A D | pngset.c | 229 int color_type, int interlace_type, int compression_type, 240 info_ptr->color_type = (png_byte)color_type; 246 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type, 249 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 251 else if (info_ptr->color_type & PNG_COLOR_MASK_COLOR) 255 if (info_ptr->color_type & PNG_COLOR_MASK_ALPHA) 456 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 874 if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY && 876 (info_ptr->color_type 227 png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument [all...] |
H A D | pngrtran.c | 560 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) || 561 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)) 717 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 792 int color_type = png_ptr->color_type; local 801 * Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or 809 !(color_type & PNG_COLOR_MASK_COLOR)) 826 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */ 875 else if (color_type == PNG_COLOR_TYPE_PALETTE) 911 if ((color_type [all...] |
H A D | pngrutil.c | 461 int bit_depth, color_type, compression_type, filter_type; local 481 color_type = buf[9]; 491 png_ptr->color_type = (png_byte)color_type; 498 switch (png_ptr->color_type) 526 color_type, interlace_type, compression_type, filter_type); 556 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR)) 564 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 573 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 617 if (png_ptr->color_type [all...] |
H A D | pngtest.c | 212 * png_byte color_type color type of pixels 218 /* Counts the number of zero samples (or zero pixels if color_type is 3 */ 220 if (row_info->color_type == 0 || row_info->color_type == 3) 272 if (row_info->color_type > 3)color_channels--; 288 if (row_info->color_type > 3) 706 int bit_depth, color_type; local 910 &color_type, &interlace_type, &compression_type, &filter_type)) 914 color_type, interlace_type, compression_type, filter_type); 916 color_type, PNG_INTERLACE_NON [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
H A D | pngget.c | 82 return info_ptr->color_type; 541 int *color_type, int *interlace_type, int *compression_type, 546 bit_depth != NULL && color_type != NULL) 554 *color_type = info_ptr->color_type; 555 if (info_ptr->color_type > 6) 770 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 780 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */ 539 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
|
H A D | pngset.c | 262 int color_type, int interlace_type, int compression_type, 294 if (color_type < 0 || color_type == 1 || 295 color_type == 5 || color_type > 6) 298 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) || 299 ((color_type == PNG_COLOR_TYPE_RGB || 300 color_type == PNG_COLOR_TYPE_GRAY_ALPHA || 301 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8)) 318 * 5. The color_type i 260 png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument [all...] |
/external/chromium_org/ui/gfx/codec/ |
H A D | png_codec.cc | 167 int bit_depth, color_type, interlace_type, compression_type; local 170 png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type, 191 if (color_type == PNG_COLOR_TYPE_PALETTE || 192 (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)) 196 bool input_has_alpha = ((color_type & PNG_COLOR_MASK_ALPHA) != 0); 248 if (color_type == PNG_COLOR_TYPE_GRAY || 249 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
|