Prusa MINI Firmware overview
|
|
void PNGAPI | png_set_bKGD (png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_16p background) |
|
void PNGFAPI | png_set_cHRM_fixed (png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y) |
|
void PNGFAPI | png_set_cHRM_XYZ_fixed (png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y, png_fixed_point int_red_Z, png_fixed_point int_green_X, png_fixed_point int_green_Y, png_fixed_point int_green_Z, png_fixed_point int_blue_X, png_fixed_point int_blue_Y, png_fixed_point int_blue_Z) |
|
void PNGAPI | png_set_cHRM (png_const_structrp png_ptr, png_inforp info_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y) |
|
void PNGAPI | png_set_cHRM_XYZ (png_const_structrp png_ptr, png_inforp info_ptr, double red_X, double red_Y, double red_Z, double green_X, double green_Y, double green_Z, double blue_X, double blue_Y, double blue_Z) |
|
void PNGAPI | png_set_eXIf (png_const_structrp png_ptr, png_inforp info_ptr, png_bytep eXIf_buf) |
|
void PNGAPI | png_set_eXIf_1 (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 num_exif, png_bytep eXIf_buf) |
|
void PNGFAPI | png_set_gAMA_fixed (png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma) |
|
void PNGAPI | png_set_gAMA (png_const_structrp png_ptr, png_inforp info_ptr, double file_gamma) |
|
void PNGAPI | png_set_hIST (png_const_structrp png_ptr, png_inforp info_ptr, png_const_uint_16p hist) |
|
void PNGAPI | png_set_IHDR (png_const_structrp png_ptr, png_inforp 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) |
|
void PNGAPI | png_set_oFFs (png_const_structrp png_ptr, png_inforp info_ptr, png_int_32 offset_x, png_int_32 offset_y, int unit_type) |
|
void PNGAPI | png_set_pCAL (png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp purpose, png_int_32 X0, png_int_32 X1, int type, int nparams, png_const_charp units, png_charpp params) |
|
void PNGAPI | png_set_sCAL_s (png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_const_charp swidth, png_const_charp sheight) |
|
void PNGAPI | png_set_sCAL (png_const_structrp png_ptr, png_inforp info_ptr, int unit, double width, double height) |
|
void PNGAPI | png_set_sCAL_fixed (png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_fixed_point width, png_fixed_point height) |
|
void PNGAPI | png_set_pHYs (png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 res_x, png_uint_32 res_y, int unit_type) |
|
void PNGAPI | png_set_PLTE (png_structrp png_ptr, png_inforp info_ptr, png_const_colorp palette, int num_palette) |
|
void PNGAPI | png_set_sBIT (png_const_structrp png_ptr, png_inforp info_ptr, png_const_color_8p sig_bit) |
|
void PNGAPI | png_set_sRGB (png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent) |
|
void PNGAPI | png_set_sRGB_gAMA_and_cHRM (png_const_structrp png_ptr, png_inforp info_ptr, int srgb_intent) |
|
void PNGAPI | png_set_iCCP (png_const_structrp png_ptr, png_inforp info_ptr, png_const_charp name, int compression_type, png_const_bytep profile, png_uint_32 proflen) |
|
void PNGAPI | png_set_text (png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text) |
|
int | png_set_text_2 (png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text) |
|
void PNGAPI | png_set_tIME (png_const_structrp png_ptr, png_inforp info_ptr, png_const_timep mod_time) |
|
void PNGAPI | png_set_tRNS (png_structrp png_ptr, png_inforp info_ptr, png_const_bytep trans_alpha, int num_trans, png_const_color_16p trans_color) |
|
void PNGAPI | png_set_sPLT (png_const_structrp png_ptr, png_inforp info_ptr, png_const_sPLT_tp entries, int nentries) |
|
static png_byte | check_location (png_const_structrp png_ptr, int location) |
|
void PNGAPI | png_set_unknown_chunks (png_const_structrp png_ptr, png_inforp info_ptr, png_const_unknown_chunkp unknowns, int num_unknowns) |
|
void PNGAPI | png_set_unknown_chunk_location (png_const_structrp png_ptr, png_inforp info_ptr, int chunk, int location) |
|
png_uint_32 PNGAPI | png_permit_mng_features (png_structrp png_ptr, png_uint_32 mng_features) |
|
static unsigned int | add_one_chunk (png_bytep list, unsigned int count, png_const_bytep add, int keep) |
|
void PNGAPI | png_set_keep_unknown_chunks (png_structrp png_ptr, int keep, png_const_bytep chunk_list, int num_chunks_in) |
|
void PNGAPI | png_set_read_user_chunk_fn (png_structrp png_ptr, png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn) |
|
void PNGAPI | png_set_rows (png_const_structrp png_ptr, png_inforp info_ptr, png_bytepp row_pointers) |
|
void PNGAPI | png_set_compression_buffer_size (png_structrp png_ptr, size_t size) |
|
void PNGAPI | png_set_invalid (png_const_structrp png_ptr, png_inforp info_ptr, int mask) |
|
void PNGAPI | png_set_user_limits (png_structrp png_ptr, png_uint_32 user_width_max, png_uint_32 user_height_max) |
|
void PNGAPI | png_set_chunk_cache_max (png_structrp png_ptr, png_uint_32 user_chunk_cache_max) |
|
void PNGAPI | png_set_chunk_malloc_max (png_structrp png_ptr, png_alloc_size_t user_chunk_malloc_max) |
|
void PNGAPI | png_set_benign_errors (png_structrp png_ptr, int allowed) |
|
void PNGAPI | png_set_check_for_invalid_index (png_structrp png_ptr, int allowed) |
|
png_uint_32 | png_check_keyword (png_structrp png_ptr, png_const_charp key, png_bytep new_key) |
|
◆ png_set_bKGD()
28 png_debug1(1,
"in %s storage function",
"bKGD");
◆ png_set_cHRM_fixed()
47 png_debug1(1,
"in %s storage function",
"cHRM fixed");
63 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM;
◆ png_set_cHRM_XYZ_fixed()
void PNGFAPI png_set_cHRM_XYZ_fixed |
( |
png_const_structrp |
png_ptr, |
|
|
png_inforp |
info_ptr, |
|
|
png_fixed_point |
int_red_X, |
|
|
png_fixed_point |
int_red_Y, |
|
|
png_fixed_point |
int_red_Z, |
|
|
png_fixed_point |
int_green_X, |
|
|
png_fixed_point |
int_green_Y, |
|
|
png_fixed_point |
int_green_Z, |
|
|
png_fixed_point |
int_blue_X, |
|
|
png_fixed_point |
int_blue_Y, |
|
|
png_fixed_point |
int_blue_Z |
|
) |
| |
78 png_debug1(1,
"in %s storage function",
"cHRM XYZ fixed");
91 XYZ.blue_Z = int_blue_Z;
95 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM;
◆ png_set_cHRM()
void PNGAPI png_set_cHRM |
( |
png_const_structrp |
png_ptr, |
|
|
png_inforp |
info_ptr, |
|
|
double |
white_x, |
|
|
double |
white_y, |
|
|
double |
red_x, |
|
|
double |
red_y, |
|
|
double |
green_x, |
|
|
double |
green_y, |
|
|
double |
blue_x, |
|
|
double |
blue_y |
|
) |
| |
◆ png_set_cHRM_XYZ()
void PNGAPI png_set_cHRM_XYZ |
( |
png_const_structrp |
png_ptr, |
|
|
png_inforp |
info_ptr, |
|
|
double |
red_X, |
|
|
double |
red_Y, |
|
|
double |
red_Z, |
|
|
double |
green_X, |
|
|
double |
green_Y, |
|
|
double |
green_Z, |
|
|
double |
blue_X, |
|
|
double |
blue_Y, |
|
|
double |
blue_Z |
|
) |
| |
◆ png_set_eXIf()
◆ png_set_eXIf_1()
153 png_debug1(1,
"in %s storage function",
"eXIf");
◆ png_set_gAMA_fixed()
189 png_debug1(1,
"in %s storage function",
"gAMA");
◆ png_set_gAMA()
◆ png_set_hIST()
215 png_debug1(1,
"in %s storage function",
"hIST");
224 "Invalid palette size, hIST allocation skipped");
◆ png_set_IHDR()
259 png_debug1(1,
"in %s storage function",
"IHDR");
266 info_ptr->bit_depth = (png_byte)bit_depth;
267 info_ptr->color_type = (png_byte)color_type;
268 info_ptr->compression_type = (png_byte)compression_type;
269 info_ptr->filter_type = (png_byte)filter_type;
270 info_ptr->interlace_type = (png_byte)interlace_type;
◆ png_set_oFFs()
298 png_debug1(1,
"in %s storage function",
"oFFs");
305 info_ptr->offset_unit_type = (png_byte)unit_type;
◆ png_set_pCAL()
319 png_debug1(1,
"in %s storage function",
"pCAL");
322 || (nparams > 0 && params ==
NULL))
325 length = strlen(purpose) + 1;
326 png_debug1(3,
"allocating purpose for info (%lu bytes)",
332 if (type < 0 || type > 3)
339 if (nparams < 0 || nparams > 255)
347 for (
i=0;
i<nparams; ++
i)
349 if (params[
i] ==
NULL ||
370 png_debug(3,
"storing X0, X1, type, and nparams in info");
374 info_ptr->pcal_nparams = (png_byte)nparams;
376 length = strlen(units) + 1;
377 png_debug1(3,
"allocating units for info (%lu bytes)",
393 (
size_t)(((
unsigned int)nparams + 1) * (
sizeof (
png_charp)))));
402 memset(
info_ptr->pcal_params, 0, ((
unsigned int)nparams + 1) *
405 for (
i = 0;
i < nparams;
i++)
407 length = strlen(params[
i]) + 1;
408 png_debug2(3,
"allocating parameter %d for info (%lu bytes)",
i,
◆ png_set_sCAL_s()
433 size_t lengthw = 0, lengthh = 0;
435 png_debug1(1,
"in %s storage function",
"sCAL");
446 if (swidth ==
NULL || (lengthw = strlen(swidth)) == 0 ||
450 if (sheight ==
NULL || (lengthh = strlen(sheight)) == 0 ||
458 png_debug1(3,
"allocating unit for info (%u bytes)", (
unsigned int)lengthw);
461 png_malloc_warn(
png_ptr, lengthw));
470 memcpy(
info_ptr->scal_s_width, swidth, lengthw);
474 png_debug1(3,
"allocating unit for info (%u bytes)", (
unsigned int)lengthh);
477 png_malloc_warn(
png_ptr, lengthh));
489 memcpy(
info_ptr->scal_s_height, sheight, lengthh);
◆ png_set_sCAL()
500 png_debug1(1,
"in %s storage function",
"sCAL");
506 else if (height <= 0)
◆ png_set_sCAL_fixed()
530 png_debug1(1,
"in %s storage function",
"sCAL");
536 else if (height <= 0)
◆ png_set_pHYs()
559 png_debug1(1,
"in %s storage function",
"pHYs");
564 info_ptr->x_pixels_per_unit = res_x;
565 info_ptr->y_pixels_per_unit = res_y;
566 info_ptr->phys_unit_type = (png_byte)unit_type;
◆ png_set_PLTE()
578 png_debug1(1,
"in %s storage function",
"PLTE");
586 if (num_palette < 0 || num_palette > (
int) max_palette_length)
599 if ((num_palette > 0 && palette ==
NULL) ||
626 memcpy(
png_ptr->palette, palette, (
unsigned int)num_palette *
◆ png_set_sBIT()
641 png_debug1(1,
"in %s storage function",
"sBIT");
◆ png_set_sRGB()
655 png_debug1(1,
"in %s storage function",
"sRGB");
◆ png_set_sRGB_gAMA_and_cHRM()
668 png_debug1(1,
"in %s storage function",
"sRGB_gAMA_and_cHRM");
678 PNG_COLORSPACE_FROM_gAMA|PNG_COLORSPACE_FROM_cHRM;
◆ png_set_iCCP()
696 png_debug1(1,
"in %s storage function",
"iCCP");
712 proflen, profile,
info_ptr->color_type);
722 PNG_COLORSPACE_FROM_gAMA|PNG_COLORSPACE_FROM_cHRM;
728 if (new_iccp_name ==
NULL)
735 memcpy(new_iccp_name, name,
length);
737 png_malloc_warn(
png_ptr, proflen));
739 if (new_iccp_profile ==
NULL)
743 "Insufficient memory to process iCCP profile");
748 memcpy(new_iccp_profile, profile, proflen);
753 info_ptr->iccp_name = new_iccp_name;
754 info_ptr->iccp_profile = new_iccp_profile;
◆ png_set_text()
◆ png_set_text_2()
779 (
unsigned long)
png_ptr->chunk_name);
791 int old_num_text =
info_ptr->num_text;
796 max_text = old_num_text;
797 if (num_text <= INT_MAX - max_text)
799 max_text += num_text;
802 if (max_text < INT_MAX-8)
803 max_text = (max_text + 8) & ~0x7;
812 info_ptr->text, old_num_text, max_text-old_num_text,
816 if (new_text ==
NULL)
831 png_debug1(3,
"allocated %d entries for info_ptr->text", max_text);
834 for (
i = 0;
i < num_text;
i++)
836 size_t text_length, key_len;
837 size_t lang_len, lang_key_len;
840 if (text_ptr[
i].key ==
NULL)
851 key_len = strlen(text_ptr[
i].key);
853 if (text_ptr[
i].compression <= 0)
860 # ifdef PNG_iTXt_SUPPORTED
864 if (text_ptr[
i].lang !=
NULL)
865 lang_len = strlen(text_ptr[
i].lang);
870 if (text_ptr[
i].lang_key !=
NULL)
871 lang_key_len = strlen(text_ptr[
i].lang_key);
884 if (text_ptr[
i].text ==
NULL || text_ptr[
i].text[0] ==
'\0')
887 # ifdef PNG_iTXt_SUPPORTED
888 if (text_ptr[
i].compression > 0)
898 text_length = strlen(text_ptr[
i].text);
903 key_len + text_length + lang_len + lang_key_len + 4));
913 png_debug2(2,
"Allocated %lu bytes at %p in png_set_text",
915 (key_len + lang_len + lang_key_len + text_length + 4),
918 memcpy(textp->
key, text_ptr[
i].key, key_len);
919 *(textp->
key + key_len) =
'\0';
921 if (text_ptr[
i].compression > 0)
923 textp->
lang = textp->
key + key_len + 1;
924 memcpy(textp->
lang, text_ptr[
i].lang, lang_len);
925 *(textp->
lang + lang_len) =
'\0';
927 memcpy(textp->
lang_key, text_ptr[
i].lang_key, lang_key_len);
928 *(textp->
lang_key + lang_key_len) =
'\0';
936 textp->
text = textp->
key + key_len + 1;
939 if (text_length != 0)
940 memcpy(textp->
text, text_ptr[
i].text, text_length);
942 *(textp->
text + text_length) =
'\0';
944 # ifdef PNG_iTXt_SUPPORTED
◆ png_set_tIME()
971 png_debug1(1,
"in %s storage function",
"tIME");
977 if (mod_time->month == 0 || mod_time->month > 12 ||
978 mod_time->day == 0 || mod_time->day > 31 ||
979 mod_time->hour > 23 || mod_time->minute > 59 ||
980 mod_time->second > 60)
◆ png_set_tRNS()
997 png_debug1(1,
"in %s storage function",
"tRNS");
1003 if (trans_alpha !=
NULL)
1021 memcpy(
info_ptr->trans_alpha, trans_alpha, (
size_t)num_trans);
1026 if (trans_color !=
NULL)
1028 #ifdef PNG_WARNINGS_SUPPORTED
1031 int sample_max = (1 <<
info_ptr->bit_depth) - 1;
1034 trans_color->gray > sample_max) ||
1036 (trans_color->red > sample_max ||
1037 trans_color->green > sample_max ||
1038 trans_color->blue > sample_max)))
1040 "tRNS chunk has out-of-range samples for bit_depth");
1044 info_ptr->trans_color = *trans_color;
◆ png_set_sPLT()
1104 if (entries->name ==
NULL || entries->entries ==
NULL)
1112 np->
depth = entries->depth;
1117 length = strlen(entries->name) + 1;
1143 memcpy(np->
entries, entries->entries,
◆ check_location()
1175 "png_set_unknown_chunks now expects a valid location");
1177 location = (png_byte)(
png_ptr->mode &
1190 while (location != (location & -location))
1191 location &= ~(location & -location);
1196 return (png_byte)location;
◆ png_set_unknown_chunks()
1215 # if !defined(PNG_READ_UNKNOWN_CHUNKS_SUPPORTED) && \
1216 defined(PNG_READ_SUPPORTED)
1224 # if !defined(PNG_WRITE_UNKNOWN_CHUNKS_SUPPORTED) && \
1225 defined(PNG_WRITE_SUPPORTED)
1255 np +=
info_ptr->unknown_chunks_num;
1260 for (; num_unknowns > 0; --num_unknowns, ++unknowns)
1262 memcpy(np->
name, unknowns->name, (
sizeof np->
name));
1263 np->
name[(
sizeof np->
name)-1] =
'\0';
1266 if (unknowns->size == 0)
1275 png_malloc_base(
png_ptr, unknowns->size));
1285 memcpy(np->
data, unknowns->data, unknowns->size);
1286 np->
size = unknowns->size;
◆ png_set_unknown_chunk_location()
1308 chunk < info_ptr->unknown_chunks_num)
1321 info_ptr->unknown_chunks[chunk].location =
◆ png_permit_mng_features()
1331 png_debug(1,
"in png_permit_mng_features");
1338 return png_ptr->mng_features_permitted;
◆ add_one_chunk()
1351 for (
i=0;
i<count; ++
i, list += 5)
1353 if (memcmp(list, add, 4) == 0)
1355 list[4] = (png_byte)keep;
1364 memcpy(list, add, 4);
1365 list[4] = (png_byte)keep;
◆ png_set_keep_unknown_chunks()
1376 unsigned int num_chunks, old_num_chunks;
1388 if (num_chunks_in <= 0)
1390 png_ptr->unknown_default = keep;
1393 if (num_chunks_in == 0)
1397 if (num_chunks_in < 0)
1402 static const png_byte chunks_to_ignore[] = {
1403 98, 75, 71, 68,
'\0',
1404 99, 72, 82, 77,
'\0',
1405 101, 88, 73, 102,
'\0',
1406 103, 65, 77, 65,
'\0',
1407 104, 73, 83, 84,
'\0',
1408 105, 67, 67, 80,
'\0',
1409 105, 84, 88, 116,
'\0',
1410 111, 70, 70, 115,
'\0',
1411 112, 67, 65, 76,
'\0',
1412 112, 72, 89, 115,
'\0',
1413 115, 66, 73, 84,
'\0',
1414 115, 67, 65, 76,
'\0',
1415 115, 80, 76, 84,
'\0',
1416 115, 84, 69, 82,
'\0',
1417 115, 82, 71, 66,
'\0',
1418 116, 69, 88, 116,
'\0',
1419 116, 73, 77, 69,
'\0',
1420 122, 84, 88, 116,
'\0'
1423 chunk_list = chunks_to_ignore;
1424 num_chunks = (
unsigned int)(
sizeof chunks_to_ignore)/5U;
1429 if (chunk_list ==
NULL)
1439 num_chunks = (
unsigned int)num_chunks_in;
1442 old_num_chunks =
png_ptr->num_chunk_list;
1448 if (num_chunks + old_num_chunks > UINT_MAX/5)
1462 5 * (num_chunks + old_num_chunks)));
1464 if (old_num_chunks > 0)
1465 memcpy(new_list,
png_ptr->chunk_list, 5*old_num_chunks);
1468 else if (old_num_chunks > 0)
1469 new_list =
png_ptr->chunk_list;
1479 if (new_list !=
NULL)
1485 for (
i=0;
i<num_chunks; ++
i)
1488 chunk_list+5*
i, keep);
1493 for (
i=0, inlist=outlist=new_list;
i<old_num_chunks; ++
i, inlist += 5)
1497 if (outlist != inlist)
1498 memcpy(outlist, inlist, 5);
1505 if (num_chunks == 0)
1507 if (
png_ptr->chunk_list != new_list)
1517 png_ptr->num_chunk_list = num_chunks;
1519 if (
png_ptr->chunk_list != new_list)
1524 png_ptr->chunk_list = new_list;
◆ png_set_read_user_chunk_fn()
1534 png_debug(1,
"in png_set_read_user_chunk_fn");
1539 png_ptr->read_user_chunk_fn = read_user_chunk_fn;
1540 png_ptr->user_chunk_ptr = user_chunk_ptr;
◆ png_set_rows()
1549 png_debug1(1,
"in %s storage function",
"rows");
1555 (
info_ptr->row_pointers != row_pointers))
1558 info_ptr->row_pointers = row_pointers;
1560 if (row_pointers !=
NULL)
◆ png_set_compression_buffer_size()
1574 # ifdef PNG_SEQUENTIAL_READ_SUPPORTED
1582 # ifdef PNG_WRITE_SUPPORTED
1588 "Compression buffer size cannot be changed because it is in use");
1593 #ifndef __COVERITY__
1600 "Compression buffer size limited to system maximum");
1611 "Compression buffer size cannot be reduced below 6");
◆ png_set_invalid()
◆ png_set_user_limits()
1646 png_ptr->user_width_max = user_width_max;
1647 png_ptr->user_height_max = user_height_max;
◆ png_set_chunk_cache_max()
1655 png_ptr->user_chunk_cache_max = user_chunk_cache_max;
◆ png_set_chunk_malloc_max()
1664 png_ptr->user_chunk_malloc_max = user_chunk_malloc_max;
◆ png_set_benign_errors()
1673 png_debug(1,
"in png_set_benign_errors");
◆ png_set_check_for_invalid_index()
1703 png_debug(1,
"in png_set_check_for_invalid_index");
1709 png_ptr->num_palette_max = -1;
◆ png_check_keyword()
1728 #ifdef PNG_WARNINGS_SUPPORTED
1732 int bad_character = 0;
1743 while (*key && key_len < 79)
1745 png_byte ch = (png_byte)*key++;
1747 if ((ch > 32 && ch <= 126) || (ch >= 161 ))
1749 *new_key++ = ch; ++key_len; space = 0;
1752 else if (space == 0)
1757 *new_key++ = 32; ++key_len; space = 1;
1764 else if (bad_character == 0)
1768 if (key_len > 0 && space != 0)
1770 --key_len; --new_key;
1771 if (bad_character == 0)
1781 #ifdef PNG_WARNINGS_SUPPORTED
1786 else if (bad_character != 0)
png_byte location
Definition: png.h:634
#define PNG_MNG_FEATURES_SUPPORTED
Definition: pnglibconf.h:44
#define PNG_FREE_TRNS
Definition: png.h:1759
const typedef png_byte * png_const_bytep
Definition: pngconf.h:580
#define PNG_FLAG_MNG_EMPTY_PLTE
Definition: png.h:857
#define PNG_AFTER_IDAT
Definition: png.h:646
#define PNG_FREE_ROWS
Definition: png.h:1751
void PNGFAPI png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma)
Definition: pngset.c:186
#define PNG_FREE_SPLT
Definition: png.h:1750
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_X
Definition: png.h:1949
#define PNG_FREE_HIST
Definition: png.h:1748
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_Y
Definition: png.h:1949
#define PNG_INFO_tIME
Definition: png.h:741
#define PNG_UINT_31_MAX
Definition: png.h:649
offset_y
Definition: g29_auto.py:163
#define PNG_HAVE_PLTE
Definition: png.h:645
png_fixed_point png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
Definition: png.c:3316
#define PNG_INFO_tRNS
Definition: png.h:736
#define PNG_FLAG_APP_WARNINGS_WARN
Definition: pngpriv.h:700
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
#define PNG_INFO_pCAL
Definition: png.h:742
#define PNG_INFO_oFFs
Definition: png.h:740
png_const_structrp png_const_inforp int * unit
Definition: png.h:2161
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point * int_red_Y
Definition: png.h:1949
char * png_charp
Definition: pngconf.h:589
void png_formatted_warning(png_const_structrp png_ptr, png_warning_parameters p, png_const_charp message)
Definition: pngerror.c:284
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point * int_red_Z
Definition: png.h:1949
#define PNG_FREE_SCAL
Definition: png.h:1753
png_sPLT_entryp entries
Definition: png.h:537
uint8_t type
Definition: UsbCore.h:184
#define PNG_IS_READ_STRUCT
Definition: pngpriv.h:639
png_charp name
Definition: png.h:535
png_byte * png_bytep
Definition: pngconf.h:579
png_const_structrp png_const_inforp double double * red_Y
Definition: png.h:1939
uint8_t i
Definition: screen_test_graph.c:72
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_Y
Definition: png.h:1949
#define PNG_INFO_PLTE
Definition: png.h:735
#define PNG_WARNING_PARAMETERS(p)
Definition: pngpriv.h:454
#define PNG_TEXT_COMPRESSION_LAST
Definition: png.h:592
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: png.h:2161
void png_free_buffer_list(png_structrp png_ptr, png_compression_bufferp *listp)
Definition: pngwutil.c:439
#define png_debug2(l, m, p1, p2)
Definition: pngdebug.h:151
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point * int_red_X
Definition: png.h:1949
png_byte name[5]
Definition: png.h:624
#define png_voidcast(type, value)
Definition: pngpriv.h:494
png_const_structrp png_const_inforp double * red_X
Definition: png.h:1939
#define NULL
Definition: usbd_def.h:53
#define PNG_HANDLE_CHUNK_LAST
Definition: png.h:2349
#define XYZ
Definition: macros.h:27
png_structrp png_ptr
Definition: png.h:1083
#define PNG_COLOR_TYPE_RGB
Definition: png.h:670
png_const_structrp png_const_inforp info_ptr
Definition: png.h:1939
size_t text_length
Definition: png.h:572
#define PNG_INFO_bKGD
Definition: png.h:737
unsigned int png_uint_32
Definition: pngconf.h:511
#define PNG_INFO_eXIf
Definition: png.h:748
static png_byte check_location(png_const_structrp png_ptr, int location)
Definition: pngset.c:1163
#define PNG_TEXT_COMPRESSION_NONE
Definition: png.h:588
png_uint_16(PNGAPI png_get_uint_16)(png_const_bytep buf)
Definition: pngrutil.c:102
#define PNG_FREE_EXIF
Definition: png.h:1761
#define PNG_MAX_PALETTE_LENGTH
Definition: png.h:725
#define PNG_HAVE_IHDR
Definition: png.h:644
#define PNG_HAVE_IDAT
Definition: pngpriv.h:626
#define PNG_NUMBER_FORMAT_02x
Definition: pngpriv.h:1762
#define PNG_FREE_ICCP
Definition: png.h:1749
void PNGFAPI png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point white_x, png_fixed_point white_y, png_fixed_point red_x, png_fixed_point red_y, png_fixed_point green_x, png_fixed_point green_y, png_fixed_point blue_x, png_fixed_point blue_y)
Definition: pngset.c:40
void png_chunk_report(png_const_structrp png_ptr, png_const_charp message, int error)
Definition: pngerror.c:531
int png_colorspace_set_ICC(png_const_structrp png_ptr, png_colorspacerp colorspace, png_const_charp name, png_uint_32 profile_length, png_const_bytep profile, int color_type)
Definition: png.c:2442
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_green_Z
Definition: png.h:1949
png_const_structrp png_const_inforp double double double double double double double * blue_X
Definition: png.h:1939
#define PNG_ALL_MNG_FEATURES
Definition: png.h:859
#define PNG_FREE_PLTE
Definition: png.h:1758
#define ZLIB_IO_MAX
Definition: pngstruct.h:56
#define PNG_COLOR_TYPE_GRAY
Definition: png.h:668
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:362
png_charp key
Definition: png.h:569
png_charp text
Definition: png.h:570
#define png_debug(l, m)
Definition: pngdebug.h:145
void png_ascii_from_fp(png_const_structrp png_ptr, png_charp ascii, size_t size, double fp, unsigned int precision)
Definition: png.c:2903
void PNGAPI png_free_data(png_const_structrp png_ptr, png_inforp info_ptr, png_uint_32 mask, int num)
Definition: png.c:471
#define PNG_ITXT_COMPRESSION_NONE
Definition: png.h:590
void
Definition: png.h:1083
const typedef char * png_const_charp
Definition: pngconf.h:590
#define PNG_COMPRESSION_TYPE_BASE
Definition: png.h:678
png_const_structrp png_const_inforp double double double double * green_X
Definition: png.h:1939
int png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred)
Definition: png.c:1720
void png_colorspace_sync_info(png_const_structrp png_ptr, png_inforp info_ptr)
Definition: png.c:1169
#define PNG_INFO_sCAL
Definition: png.h:746
#define PNG_FREE_TEXT
Definition: png.h:1760
size_t itxt_length
Definition: png.h:573
#define PNG_HANDLE_CHUNK_AS_DEFAULT
Definition: png.h:2345
png_charp lang_key
Definition: png.h:576
png_byte depth
Definition: png.h:536
png_byte * data
Definition: png.h:625
void PNGFAPI png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point int_red_X, png_fixed_point int_red_Y, png_fixed_point int_red_Z, png_fixed_point int_green_X, png_fixed_point int_green_Y, png_fixed_point int_green_Z, png_fixed_point int_blue_X, png_fixed_point int_blue_Y, png_fixed_point int_blue_Z)
Definition: pngset.c:69
#define PNG_INFO_sPLT
Definition: png.h:745
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
void PNGAPI png_set_sCAL_s(png_const_structrp png_ptr, png_inforp info_ptr, int unit, png_const_charp swidth, png_const_charp sheight)
Definition: pngset.c:430
char ** png_charpp
Definition: pngconf.h:612
int png_colorspace_set_endpoints(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_XYZ *XYZ_in, int preferred)
Definition: png.c:1757
png_const_structrp png_const_inforp double double double * red_Z
Definition: png.h:1939
#define PNG_FLAG_APP_ERRORS_WARN
Definition: pngpriv.h:701
#define PNG_INFO_pHYs
Definition: png.h:739
png_const_structrp png_const_inforp double double double double double double * green_Z
Definition: png.h:1939
png_int_32 nentries
Definition: png.h:538
#define PNG_sCAL_PRECISION
Definition: pnglibconf.h:216
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
png_uint_16 * png_uint_16p
Definition: pngconf.h:585
void png_check_IHDR(png_const_structrp 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)
Definition: png.c:2547
#define png_debug1(l, m, p1)
Definition: pngdebug.h:148
#define PNG_CHUNK_WRITE_ERROR
Definition: pngpriv.h:1843
png_const_structrp png_const_inforp double double double double double double double double double *blue_Z png_const_structrp png_const_inforp png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point png_fixed_point * int_blue_X
Definition: png.h:1949
#define PNG_FLAG_BENIGN_ERRORS_WARN
Definition: pngpriv.h:699
#define PNG_ROWBYTES(pixel_bits, width)
Definition: pngpriv.h:738
#define PNG_COLOR_MASK_COLOR
Definition: png.h:664
static unsigned int add_one_chunk(png_bytep list, unsigned int count, png_const_bytep add, int keep)
Definition: pngset.c:1344
#define PNG_FREE_PCAL
Definition: png.h:1752
#define PNG_sCAL_MAX_DIGITS
Definition: pngpriv.h:1855
int
Definition: createSpeedLookupTable.py:15
void png_ascii_from_fixed(png_const_structrp png_ptr, png_charp ascii, size_t size, png_fixed_point fp)
Definition: png.c:3233
#define PNG_INFO_sBIT
Definition: png.h:733
int png_colorspace_set_sRGB(png_const_structrp png_ptr, png_colorspacerp colorspace, int intent)
Definition: png.c:1872
png_const_structrp png_const_inforp double double double double double double double double * blue_Y
Definition: png.h:1939
unsigned int uInt
Definition: zconf.h:393
#define PNG_WROTE_tIME
Definition: pngpriv.h:633
png_uint_32 length
Definition: png.c:2247
#define PNG_INFO_hIST
Definition: png.h:738
png_const_structrp png_const_inforp double double double double double * green_Y
Definition: png.h:1939
png_charp lang
Definition: png.h:574
void png_app_warning(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:392
void png_app_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:405
#define PNG_INFO_iCCP
Definition: png.h:744
int png_check_fp_string(png_const_charp string, size_t size)
Definition: png.c:2839
size_t size
Definition: png.h:626
#define PNG_FREE_UNKN
Definition: png.h:1755
int png_set_text_2(png_const_structrp png_ptr, png_inforp info_ptr, png_const_textp text_ptr, int num_text)
Definition: pngset.c:773
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
int compression
Definition: png.h:564
#define PNG_COLOR_MASK_ALPHA
Definition: png.h:665
#define PNG_INFO_IDAT
Definition: png.h:747
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
void png_warning_parameter_signed(png_warning_parameters p, int number, int format, png_int_32 value)
Definition: pngerror.c:263
offset_x
Definition: g29_auto.py:158
static png_bytep size_t size
Definition: pngwrite.c:2170
void png_colorspace_set_gamma(png_const_structrp png_ptr, png_colorspacerp colorspace, png_fixed_point gAMA)
Definition: png.c:1114