/external/libpng/contrib/gregbook/ |
readppm.c | 68 int bit_depth, color_type, channels; variable 96 color_type = 2; 99 color_type = 6; 102 color_type = 0;
|
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,
|
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)
|
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)
|
/bootable/recovery/minui/ |
resources.c | 97 int color_type = info_ptr->color_type; local 101 ((channels == 3 && color_type == PNG_COLOR_TYPE_RGB) || 102 (channels == 4 && color_type == PNG_COLOR_TYPE_RGBA) || 103 (channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE)))) { 122 if (color_type == PNG_COLOR_TYPE_PALETTE) {
|
/external/libpng/contrib/pngminus/ |
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 == PNG_COLOR_TYPE_RGB [all...] |
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 == PNG_COLOR_TYPE_GRAY_ALPHA [all...] |
/development/tools/etc1tool/ |
etc1tool.cpp | 195 int bit_depth, color_type; local 197 &color_type, NULL, NULL, NULL);
|
/frameworks/base/tools/aapt/ |
Images.cpp | 68 int color_type; local 75 &outImageInfo->height, &bit_depth, &color_type, 79 //printf("color_type=%d, bit_depth=%d, interlace_type=%d, compression_type=%d\n", 80 // color_type, bit_depth, interlace_type, compression_type); 82 if (color_type == PNG_COLOR_TYPE_PALETTE) 85 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 96 if ((color_type&PNG_COLOR_MASK_ALPHA) == 0) 99 if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) 124 bit_depth, color_type, 844 int color_type; local [all...] |
/external/libpng/ |
pngrtran.c | 560 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) || 561 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)) 706 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 781 int color_type = png_ptr->color_type; local 790 * Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or 798 !(color_type & PNG_COLOR_MASK_COLOR)) 815 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */ 864 else if (color_type == PNG_COLOR_TYPE_PALETTE) 900 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0 [all...] |
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_NONE, compression_type, filter_type) [all...] |
pngrutil.c | 455 int bit_depth, color_type, compression_type, filter_type; local 475 color_type = buf[9]; 485 png_ptr->color_type = (png_byte)color_type; 492 switch (png_ptr->color_type) 520 color_type, interlace_type, compression_type, filter_type); 550 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR)) 558 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 567 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 611 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE [all...] |
png.h | 1198 png_byte color_type; \/* color type of row *\/ member in struct:png_row_info_struct [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
pngrtran.c | 532 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) || 533 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)) 667 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 735 int color_type = png_ptr->color_type; local 743 /* Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or 751 !(color_type & PNG_COLOR_MASK_COLOR)) 768 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */ 813 else if (color_type == PNG_COLOR_TYPE_PALETTE) 848 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0 [all...] |
pngrutil.c | 352 int bit_depth, color_type, compression_type, filter_type; local 372 color_type = buf[9]; 382 png_ptr->color_type = (png_byte)color_type; 389 switch (png_ptr->color_type) 414 color_type, interlace_type, compression_type, filter_type); 442 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR)) 450 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 459 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) 501 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE [all...] |
png.h | 707 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */ member in struct:png_info_struct 1042 png_byte color_type; \/* color type of row *\/ member in struct:png_row_info_struct 1189 png_byte color_type; \/* color type of file *\/ member in struct:png_struct_def [all...] |
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 172 // call only if color_type is PALETTE. Returns true if the ctable has alpha 235 int bit_depth, color_type, interlace_type; local 237 &color_type, &interlace_type, int_p_NULL, int_p_NULL); 249 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 254 if (color_type == PNG_COLOR_TYPE_GRAY || 255 color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { 277 int bit_depth, color_type, interlace_type; local 279 &color_type, &interlace_type, int_p_NULL, int_p_NULL); 308 if (color_type == PNG_COLOR_TYPE_PALETTE) { 324 if (color_type == PNG_COLOR_TYPE_RGB || color_type == PNG_COLOR_TYPE_GRAY) 453 int bit_depth, color_type, interlace_type; local 471 int bit_depth, color_type, interlace_type; local 642 int bit_depth, color_type, interlace_type; local [all...] |