/external/libpng/ |
D | pngset.c | 173 if (info_ptr->num_palette == 0 || info_ptr->num_palette in png_set_hIST() 199 for (i = 0; i < info_ptr->num_palette; i++) in png_set_hIST() 513 png_const_colorp palette, int num_palette) in png_set_PLTE() argument 526 if (num_palette < 0 || num_palette > (int) max_palette_length) in png_set_PLTE() 539 if ((num_palette > 0 && palette == NULL) || in png_set_PLTE() 540 (num_palette == 0 in png_set_PLTE() 565 if (num_palette > 0) in png_set_PLTE() 566 memcpy(png_ptr->palette, palette, num_palette * (sizeof (png_color))); in png_set_PLTE() 568 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
|
D | pngrtran.c | 417 int num_palette, int maximum_colors, png_const_uint_16p histogram, in png_set_quantize() argument 432 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 433 for (i = 0; i < num_palette; i++) in png_set_quantize() 437 if (num_palette > maximum_colors) in png_set_quantize() 449 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 452 for (i = 0; i < num_palette; i++) in png_set_quantize() 462 for (i = num_palette - 1; i >= maximum_colors; i--) in png_set_quantize() 489 int j = num_palette; in png_set_quantize() 508 int j = num_palette; in png_set_quantize() 534 for (i = 0; i < num_palette; i++) in png_set_quantize() [all …]
|
D | example.c | 474 int num_palette; 487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) != 0) 493 png_set_quantize(png_ptr, palette, num_palette,
|
D | pnginfo.h | 63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ member
|
D | pngget.c | 983 png_colorp *palette, int *num_palette) in png_get_PLTE() argument 991 *num_palette = info_ptr->num_palette; in png_get_PLTE() 992 png_debug1(3, "num_palette = %d", *num_palette); in png_get_PLTE()
|
D | pngtrans.c | 687 if (png_ptr->num_palette < (1 << row_info->bit_depth) && in png_do_check_palette_indexes() 688 png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */ in png_do_check_palette_indexes()
|
D | png.c | 613 info_ptr->num_palette = 0; in png_free_data() 842 int num_palette; 855 num_palette = 2; 860 num_palette = 4; 865 num_palette = 16; 870 num_palette = 256; 875 num_palette = 0; 880 for (i = 0, v = 0; i < num_palette; i++, v += color_inc)
|
/external/pdfium/third_party/libpng16/ |
D | pngset.c | 173 if (info_ptr->num_palette == 0 || info_ptr->num_palette in png_set_hIST() 199 for (i = 0; i < info_ptr->num_palette; i++) in png_set_hIST() 525 png_const_colorp palette, int num_palette) in png_set_PLTE() argument 538 if (num_palette < 0 || num_palette > (int) max_palette_length) in png_set_PLTE() 551 if ((num_palette > 0 && palette == NULL) || in png_set_PLTE() 552 (num_palette == 0 in png_set_PLTE() 577 if (num_palette > 0) in png_set_PLTE() 578 memcpy(png_ptr->palette, palette, num_palette * (sizeof (png_color))); in png_set_PLTE() 580 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
|
D | pngrtran.c | 417 int num_palette, int maximum_colors, png_const_uint_16p histogram, in png_set_quantize() argument 432 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 433 for (i = 0; i < num_palette; i++) in png_set_quantize() 437 if (num_palette > maximum_colors) in png_set_quantize() 449 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 452 for (i = 0; i < num_palette; i++) in png_set_quantize() 462 for (i = num_palette - 1; i >= maximum_colors; i--) in png_set_quantize() 489 int j = num_palette; in png_set_quantize() 508 int j = num_palette; in png_set_quantize() 534 for (i = 0; i < num_palette; i++) in png_set_quantize() [all …]
|
D | pnginfo.h | 63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ member
|
D | pngget.c | 983 png_colorp *palette, int *num_palette) in png_get_PLTE() argument 991 *num_palette = info_ptr->num_palette; in png_get_PLTE() 992 png_debug1(3, "num_palette = %d", *num_palette); in png_get_PLTE()
|
D | pngtrans.c | 686 if (png_ptr->num_palette < (1 << row_info->bit_depth) && in png_do_check_palette_indexes() 687 png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */ in png_do_check_palette_indexes()
|
/external/skia/third_party/libpng/ |
D | pngset.c | 173 if (info_ptr->num_palette == 0 || info_ptr->num_palette in png_set_hIST() 199 for (i = 0; i < info_ptr->num_palette; i++) in png_set_hIST() 513 png_const_colorp palette, int num_palette) in png_set_PLTE() argument 526 if (num_palette < 0 || num_palette > (int) max_palette_length) in png_set_PLTE() 539 if ((num_palette > 0 && palette == NULL) || in png_set_PLTE() 540 (num_palette == 0 in png_set_PLTE() 565 if (num_palette > 0) in png_set_PLTE() 566 memcpy(png_ptr->palette, palette, num_palette * (sizeof (png_color))); in png_set_PLTE() 568 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
|
D | pngrtran.c | 417 int num_palette, int maximum_colors, png_const_uint_16p histogram, in png_set_quantize() argument 432 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 433 for (i = 0; i < num_palette; i++) in png_set_quantize() 437 if (num_palette > maximum_colors) in png_set_quantize() 449 (png_uint_32)(num_palette * (sizeof (png_byte)))); in png_set_quantize() 452 for (i = 0; i < num_palette; i++) in png_set_quantize() 462 for (i = num_palette - 1; i >= maximum_colors; i--) in png_set_quantize() 489 int j = num_palette; in png_set_quantize() 508 int j = num_palette; in png_set_quantize() 534 for (i = 0; i < num_palette; i++) in png_set_quantize() [all …]
|
D | example.c | 474 int num_palette; 487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) != 0) 493 png_set_quantize(png_ptr, palette, num_palette,
|
D | pnginfo.h | 63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ member
|
D | pngget.c | 983 png_colorp *palette, int *num_palette) in png_get_PLTE() argument 991 *num_palette = info_ptr->num_palette; in png_get_PLTE() 992 png_debug1(3, "num_palette = %d", *num_palette); in png_get_PLTE()
|
D | pngtrans.c | 686 if (png_ptr->num_palette < (1 << row_info->bit_depth) && in png_do_check_palette_indexes() 687 png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */ in png_do_check_palette_indexes()
|
D | pngwutil.c | 876 png_ptr->num_palette = (png_uint_16)num_pal; in png_write_PLTE() 877 png_debug1(3, "num_palette = %d", png_ptr->num_palette); in png_write_PLTE() 1352 if (num_trans <= 0 || num_trans > (int)png_ptr->num_palette) in png_write_tRNS() 1419 (png_ptr->num_palette != 0 || in png_write_bKGD() 1422 back->index >= png_ptr->num_palette) in png_write_bKGD() 1478 if (num_hist > (int)png_ptr->num_palette) in png_write_hIST() 1481 png_ptr->num_palette); in png_write_hIST()
|
D | png.c | 613 info_ptr->num_palette = 0; in png_free_data() 842 int num_palette; 855 num_palette = 2; 860 num_palette = 4; 865 num_palette = 16; 870 num_palette = 256; 875 num_palette = 0; 880 for (i = 0, v = 0; i < num_palette; i++, v += color_inc)
|
/external/syslinux/com32/lib/libpng/ |
D | pngrtran.c | 165 int num_palette, int maximum_colors, png_uint_16p histogram, in png_set_dither() argument 179 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither() 180 for (i = 0; i < num_palette; i++) in png_set_dither() 184 if (num_palette > maximum_colors) in png_set_dither() 196 (png_uint_32)(num_palette * png_sizeof(png_byte))); in png_set_dither() 199 for (i = 0; i < num_palette; i++) in png_set_dither() 209 for (i = num_palette - 1; i >= maximum_colors; i--) in png_set_dither() 235 int j = num_palette; in png_set_dither() 253 int j = num_palette; in png_set_dither() 279 for (i = 0; i < num_palette; i++) in png_set_dither() [all …]
|
D | pngset.c | 191 if (info_ptr->num_palette == 0 || info_ptr->num_palette in png_set_hIST() 213 for (i = 0; i < info_ptr->num_palette; i++) in png_set_hIST() 446 png_colorp palette, int num_palette) in png_set_PLTE() argument 454 if (num_palette < 0 || num_palette > PNG_MAX_PALETTE_LENGTH) in png_set_PLTE() 479 png_memcpy(png_ptr->palette, palette, num_palette * png_sizeof(png_color)); in png_set_PLTE() 481 info_ptr->num_palette = png_ptr->num_palette = (png_uint_16)num_palette; in png_set_PLTE()
|
D | example.c | 279 int num_palette; 292 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) 298 png_set_dither(png_ptr, palette, num_palette,
|
D | pngget.c | 731 int *num_palette) in png_get_PLTE() argument 739 *num_palette = info_ptr->num_palette; in png_get_PLTE() 740 png_debug1(3, "num_palette = %d", *num_palette); in png_get_PLTE()
|
/external/libpng/contrib/examples/ |
D | pngpixel.c | 92 int num_palette = 0; in print_pixel() local 94 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) & in print_pixel() 95 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL) in print_pixel()
|