/external/libpng/ |
pngwtran.c | 40 /* png_byte bit_depth; bit depth of samples */ 57 (png_uint_32)png_ptr->bit_depth); 87 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) 96 if (row_info->bit_depth == 8 && 102 switch ((int)bit_depth) 202 row_info->bit_depth = (png_byte)bit_depth; 203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); 212 * true number of bits in bit_depth. The row should be packe [all...] |
pngrtran.c | 829 switch (png_ptr->bit_depth) [all...] |
pngtrans.c | 41 if (png_ptr->bit_depth == 16) 55 if (png_ptr->bit_depth < 8) 72 if (png_ptr->bit_depth < 8) 144 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8) 210 * if (row_info->bit_depth == 1 && 229 row_info->bit_depth == 8) 242 row_info->bit_depth == 16) 269 row_info->bit_depth == 16) 401 row_info->bit_depth < 8) 407 if (row_info->bit_depth == 1 [all...] |
example.c | 89 int bit_depth, color_type, interlace_type; 101 int bit_depth, color_type, interlace_type; 177 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 208 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 634 * bit_depth is one of 1, 2, 4, 8, or 16, but valid values also depend on 641 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_???,
|
pngtest.c | 213 * png_byte bit_depth bit depth of samples 226 if (row_info->bit_depth == 1) 236 if (row_info->bit_depth == 2) 246 if (row_info->bit_depth == 4) 256 if (row_info->bit_depth == 8) 259 if (row_info->bit_depth == 16) 278 if (row_info->bit_depth == 8) 281 if (row_info->bit_depth == 16) 291 if (row_info->bit_depth == 16) 706 int bit_depth, color_type local [all...] |
png.c | 961 png_uint_32 width, png_uint_32 height, int bit_depth, 1021 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 && 1022 bit_depth != 8 && bit_depth != 16) 1035 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) || 1038 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
|
pngwutil.c | 393 int bit_depth, int color_type, int compression_type, int filter_type, 409 switch (bit_depth) 421 if (bit_depth != 8 && bit_depth != 16) 426 switch (bit_depth) 436 if (bit_depth != 8 && bit_depth != 16) 441 if (bit_depth != 8 && bit_depth != 16) 490 png_ptr->bit_depth = (png_byte)bit_depth [all...] |
pngget.c | 76 return info_ptr->bit_depth; 578 png_uint_32 *width, png_uint_32 *height, int *bit_depth, 586 height == NULL || bit_depth == NULL || color_type == NULL) 591 *bit_depth = info_ptr->bit_depth; 609 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
|
pngset.c | 228 png_uint_32 width, png_uint_32 height, int bit_depth, 239 info_ptr->bit_depth = (png_byte)bit_depth; 246 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type, 257 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth); 873 int sample_max = (1 << info_ptr->bit_depth); 881 "tRNS chunk has out-of-range samples for bit_depth"); [all...] |
/external/qemu/distrib/libpng-1.2.19/ |
pngwtran.c | 35 /* png_byte bit_depth; bit depth of samples */ 52 (png_uint_32)png_ptr->bit_depth); 82 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The 87 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) 90 if (row_info->bit_depth == 8 && 96 switch ((int)bit_depth) 196 row_info->bit_depth = (png_byte)bit_depth; 197 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); 206 * true number of bits in bit_depth. The row should be packe [all...] |
pngrtran.c | 771 switch (png_ptr->bit_depth) [all...] |
pngtrans.c | 33 if (png_ptr->bit_depth == 16) 45 if (png_ptr->bit_depth < 8) 60 if (png_ptr->bit_depth < 8) 123 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8) 180 * if (row_info->bit_depth == 1 && 199 row_info->bit_depth == 8) 212 row_info->bit_depth == 16) 238 row_info->bit_depth == 16) 369 row_info->bit_depth < 8) 375 if (row_info->bit_depth == 1 [all...] |
pngset.c | 261 png_uint_32 width, png_uint_32 height, int bit_depth, 290 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 && 291 bit_depth != 8 && bit_depth != 16) 298 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) || 301 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8)) 340 info_ptr->bit_depth = (png_byte)bit_depth; [all...] |
pngwutil.c | 377 int bit_depth, int color_type, int compression_type, int filter_type, 390 switch (bit_depth) 401 if (bit_depth != 8 && bit_depth != 16) 406 switch (bit_depth) 416 if (bit_depth != 8 && bit_depth != 16) 421 if (bit_depth != 8 && bit_depth != 16) 470 png_ptr->bit_depth = (png_byte)bit_depth [all...] |
pngget.c | 72 return info_ptr->bit_depth; 540 png_uint_32 *width, png_uint_32 *height, int *bit_depth, 546 bit_depth != NULL && color_type != NULL) 551 *bit_depth = info_ptr->bit_depth; 552 if (info_ptr->bit_depth < 1 || info_ptr->bit_depth > 16)
|
/external/libpng/contrib/pngminus/ |
pnm2png.c | 203 int bit_depth = 0; local 223 bit_depth = 1; 236 bit_depth = 1; 238 bit_depth = 2; 240 bit_depth = 4; 242 bit_depth = 8; 244 bit_depth = 16; 257 bit_depth = 1; 259 bit_depth = 2; 261 bit_depth = 4 [all...] |
png2pnm.c | 200 int bit_depth; local 247 &width, &height, &bit_depth, &color_type, 256 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 264 if (bit_depth == 16) 281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 285 if (bit_depth == 16) 350 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 357 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 368 fprintf (alpha_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); 383 if (bit_depth == 16) [all...] |
/external/libpng/contrib/gregbook/ |
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, 181 if (bit_depth == 16) { 185 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 186 if (bit_depth == 1) 188 else if (bit_depth == 2) 190 else /* bit_depth == 4 */ 228 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 232 if (bit_depth == 16 [all...] |
readppm.c | 68 int bit_depth, color_type, channels; variable 119 bit_depth = 8;
|
readpng2.c | 381 int color_type, bit_depth; local 418 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 439 if (bit_depth == 16) { 443 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 444 if (bit_depth == 1) 447 else if (bit_depth == 2) 450 else /* bit_depth == 4 */ 468 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 472 if (bit_depth == 16)
|
/bootable/recovery/minui/ |
resources.c | 100 int bit_depth = info_ptr->bit_depth; local 102 if (!(bit_depth == 8 &&
|
/external/opencv/otherlibs/highgui/ |
grfmt_png.cpp | 152 int bit_depth, color_type; local 158 &bit_depth, &color_type, 0, 0, 0 ); 167 m_bit_depth = bit_depth;
|
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 227 int bit_depth, color_type, interlace_type; local 228 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 232 if (bit_depth == 16) { 237 if (bit_depth < 8) { 241 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 269 int bit_depth, color_type, interlace_type; local 270 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 442 int bit_depth, color_type, interlace_type; local 444 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 460 int bit_depth, color_type, interlace_type local 628 int bit_depth, color_type, interlace_type; local [all...] |
/frameworks/base/tools/aapt/ |
Images.cpp | 76 int bit_depth, interlace_type, compression_type; local 82 &outImageInfo->height, &bit_depth, &color_type, 86 //printf("color_type=%d, bit_depth=%d, interlace_type=%d, compression_type=%d\n", 87 // color_type, bit_depth, interlace_type, compression_type); 92 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) 100 if (bit_depth == 16) 131 bit_depth, color_type, 135 &outImageInfo->height, &bit_depth, &color_type, 980 int bit_depth, interlace_type, compression_type; local [all...] |
/development/tools/etc1tool/ |
etc1tool.cpp | 195 int bit_depth, color_type; local 196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,
|