/external/libpng/ |
H A D | 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) argument 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 219 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) argument [all...] |
H A D | pngrtran.c | 829 switch (png_ptr->bit_depth) 1046 double m = (double)(((png_uint_32)1 << png_ptr->bit_depth) - 1); 1214 info_ptr->bit_depth = 8; 1224 if (info_ptr->bit_depth < 8) 1225 info_ptr->bit_depth = 8; 1253 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16)) 1254 info_ptr->bit_depth = 8; 1272 png_ptr->palette_lookup && info_ptr->bit_depth == 8) 1280 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) 1281 info_ptr->bit_depth 2569 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument [all...] |
H A D | 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 [all...] |
H A D | 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_???,
|
H A D | 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_typ local [all...] |
H A D | 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)) 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
|
H A D | 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 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 [all...] |
H A D | 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, 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 | 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); 863 int sample_max = (1 << info_ptr->bit_depth); 871 "tRNS chunk has out-of-range samples for bit_depth"); 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
|
H A D | pngrutil.c | 455 int bit_depth, color_type, compression_type, filter_type; local 474 bit_depth = buf[8]; 483 png_ptr->bit_depth = (png_byte)bit_depth; 513 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * 516 png_debug1(3, "bit_depth = %d", png_ptr->bit_depth); 519 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, 3276 if ((png_ptr->transformations & PNG_PACK) && png_ptr->bit_depth < 8)
|
/external/qemu/distrib/libpng-1.2.19/ |
H A D | 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) argument 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 213 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) argument [all...] |
H A D | pngrtran.c | 771 switch (png_ptr->bit_depth) 972 double m = (double)(((png_uint_32)1 << png_ptr->bit_depth) - 1); 1130 info_ptr->bit_depth = 8; 1142 if (info_ptr->bit_depth < 8) 1143 info_ptr->bit_depth = 8; 1171 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16)) 1172 info_ptr->bit_depth = 8; 1190 png_ptr->palette_lookup && info_ptr->bit_depth == 8) 1198 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8)) 1199 info_ptr->bit_depth 2462 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument [all...] |
H A D | 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 [all...] |
H A D | 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; 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...] |
H A D | 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 376 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 [all...] |
H A D | 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) 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 | png.h | 706 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */ member in struct:png_info_struct 762 * in the pixel data. Values are in the range [1, bit_depth], and are 848 * The integer range [0, 2^bit_depth - 1] maps to the floating-point 1043 png_byte bit_depth; /* bit depth of row */ member in struct:png_row_info_struct 1190 png_byte bit_depth; /* bit depth of file */ member in struct:png_struct_def 1578 extern PNG_EXPORT(void,png_build_grayscale_palette) PNGARG((int bit_depth, 2126 /* Returns image bit_depth. */ 2247 int *bit_depth, int *color_type, int *interlace_method, 2251 png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, 3017 int bit_depth, in [all...] |
/external/libpng/contrib/pngminus/ |
H A D | 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 [all...] |
H A D | 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 [all...] |
/external/libpng/contrib/gregbook/ |
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, 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 [all...] |
H A D | readppm.c | 68 int bit_depth, color_type, channels; variable 119 bit_depth = 8;
|
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, 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)
|
/external/skia/src/images/ |
H A D | SkImageDecoder_libpng.cpp | 235 int bit_depth, color_type, interlace_type; local 236 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 240 if (bit_depth == 16) { 245 if (bit_depth < 8) { 249 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { 277 int bit_depth, color_type, interlace_type; local 278 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 450 int bit_depth, color_type, interlace_type; local 452 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, 468 int bit_depth, color_typ local 639 int bit_depth, color_type, interlace_type; local [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 ); 167 m_bit_depth = bit_depth;
|
/external/freetype/include/freetype/internal/ |
H A D | tttypes.h | 644 /* bit_depth :: The bit depth. Valid values are 1, 2, 4, */ 670 FT_Byte bit_depth; member in struct:TT_SBit_StrikeRec_
|