Prusa MINI Firmware overview
|
|
static | PNG_FUNCTION (void, png_default_error, PNGARG((png_const_structrp png_ptr, png_const_charp error_message)), PNG_NORETURN) |
|
static void png_default_warning | PNGARG ((png_const_structrp png_ptr, png_const_charp warning_message)) |
|
| PNG_FUNCTION (void, PNGAPI png_error,(png_const_structrp png_ptr, png_const_charp error_message), PNG_NORETURN) |
|
size_t | png_safecat (png_charp buffer, size_t bufsize, size_t pos, png_const_charp string) |
|
png_charp | png_format_number (png_const_charp start, png_charp end, int format, png_alloc_size_t number) |
|
void PNGAPI | png_warning (png_const_structrp png_ptr, png_const_charp warning_message) |
|
void | png_warning_parameter (png_warning_parameters p, int number, png_const_charp string) |
|
void | png_warning_parameter_unsigned (png_warning_parameters p, int number, int format, png_alloc_size_t value) |
|
void | png_warning_parameter_signed (png_warning_parameters p, int number, int format, png_int_32 value) |
|
void | png_formatted_warning (png_const_structrp png_ptr, png_warning_parameters p, png_const_charp message) |
|
void PNGAPI | png_benign_error (png_const_structrp png_ptr, png_const_charp error_message) |
|
void | png_app_warning (png_const_structrp png_ptr, png_const_charp error_message) |
|
void | png_app_error (png_const_structrp png_ptr, png_const_charp error_message) |
|
static void | png_format_buffer (png_const_structrp png_ptr, png_charp buffer, png_const_charp error_message) |
|
void PNGAPI | png_chunk_warning (png_const_structrp png_ptr, png_const_charp warning_message) |
|
void PNGAPI | png_chunk_benign_error (png_const_structrp png_ptr, png_const_charp error_message) |
|
void | png_chunk_report (png_const_structrp png_ptr, png_const_charp message, int error) |
|
| PNG_FUNCTION (void, png_fixed_error,(png_const_structrp png_ptr, png_const_charp name), PNG_NORETURN) |
|
jmp_buf *PNGAPI | png_set_longjmp_fn (png_structrp png_ptr, png_longjmp_ptr longjmp_fn, size_t jmp_buf_size) |
|
void | png_free_jmpbuf (png_structrp png_ptr) |
|
static | PNG_FUNCTION (void, png_default_error,(png_const_structrp png_ptr, png_const_charp error_message), PNG_NORETURN) |
|
| PNG_FUNCTION (void, PNGAPI png_longjmp,(png_const_structrp png_ptr, int val), PNG_NORETURN) |
|
static void | png_default_warning (png_const_structrp png_ptr, png_const_charp warning_message) |
|
void PNGAPI | png_set_error_fn (png_structrp png_ptr, png_voidp error_ptr, png_error_ptr error_fn, png_error_ptr warning_fn) |
|
png_voidp PNGAPI | png_get_error_ptr (png_const_structrp png_ptr) |
|
| PNG_FUNCTION (void,(PNGCBAPI png_safe_error),(png_structp png_nonconst_ptr, png_const_charp error_message), PNG_NORETURN) |
|
void PNGCBAPI | png_safe_warning (png_structp png_nonconst_ptr, png_const_charp warning_message) |
|
int | png_safe_execute (png_imagep image_in, int(*function)(png_voidp), png_voidp arg) |
|
◆ PNG_MAX_ERROR_TEXT
#define PNG_MAX_ERROR_TEXT 196 /* Currently limited by profile_error in png.c */ |
◆ isnonalpha
#define isnonalpha |
( |
|
c | ) |
((c) < 65 || (c) > 122 || ((c) > 90 && (c) < 97)) |
◆ fixed_message
#define fixed_message "fixed point overflow in " |
◆ fixed_message_ln
◆ PNG_FUNCTION() [1/6]
◆ PNGARG()
◆ PNG_FUNCTION() [2/6]
42 #ifdef PNG_ERROR_NUMBERS_SUPPORTED
53 for (offset = 1; offset<15; offset++)
54 if (error_message[offset] ==
' ')
60 for (
i = 0;
i < offset - 1;
i++)
61 msg[
i] = error_message[
i + 1];
67 error_message += offset;
88 png_default_error(
png_ptr, error_message);
◆ png_safecat()
115 if (buffer !=
NULL && pos < bufsize)
118 while (*
string !=
'\0' && pos < bufsize-1)
119 buffer[pos++] = *
string++;
◆ png_format_number()
145 while (
end >
start && (number != 0 || count < mincount))
148 static const char digits[] =
"0123456789ABCDEF";
155 if (output != 0 || number % 10 != 0)
157 *--
end = digits[number % 10];
169 *--
end = digits[number % 10];
179 *--
end = digits[number & 0xf];
200 else if (number == 0)
◆ png_warning()
221 #ifdef PNG_ERROR_NUMBERS_SUPPORTED
228 for (offset = 1; offset < 15; offset++)
229 if (warning_message[offset] ==
' ')
236 warning_message + offset);
◆ png_warning_parameter()
◆ png_warning_parameter_unsigned()
◆ png_warning_parameter_signed()
277 if (value < 0 && str > buffer)
◆ png_formatted_warning()
301 while (
i<(
sizeof msg)-1 && *message !=
'\0')
306 if (p !=
NULL && *message ==
'@' && message[1] !=
'\0')
308 int parameter_char = *++message;
309 static const char valid_parameters[] =
"123456789";
315 while (valid_parameters[parameter] != parameter_char &&
316 valid_parameters[parameter] !=
'\0')
330 while (
i<(
sizeof msg)-1 && *parm !=
'\0' && parm < pend)
346 msg[
i++] = *message++;
◆ png_benign_error()
366 # ifdef PNG_READ_SUPPORTED
377 # ifdef PNG_READ_SUPPORTED
380 png_chunk_error(
png_ptr, error_message);
386 # ifndef PNG_ERROR_TEXT_SUPPORTED
◆ png_app_warning()
399 # ifndef PNG_ERROR_TEXT_SUPPORTED
◆ png_app_error()
412 # ifndef PNG_ERROR_TEXT_SUPPORTED
◆ png_format_buffer()
438 int iout = 0, ishift = 24;
442 int c = (
int)(chunk_name >> ishift) & 0xff;
448 buffer[iout++] =
png_digit[(c & 0xf0) >> 4];
455 buffer[iout++] = (char)c;
459 if (error_message ==
NULL)
466 buffer[iout++] =
':';
467 buffer[iout++] =
' ';
470 buffer[iout++] = error_message[iin++];
◆ png_chunk_warning()
◆ png_chunk_benign_error()
521 png_chunk_error(
png_ptr, error_message);
523 # ifndef PNG_ERROR_TEXT_SUPPORTED
◆ png_chunk_report()
533 # ifndef PNG_WARNINGS_SUPPORTED
540 # if defined(PNG_READ_SUPPORTED) && defined(PNG_WRITE_SUPPORTED)
544 # ifdef PNG_READ_SUPPORTED
554 # if defined(PNG_READ_SUPPORTED) && defined(PNG_WRITE_SUPPORTED)
558 # ifdef PNG_WRITE_SUPPORTED
◆ PNG_FUNCTION() [3/6]
574 # define fixed_message "fixed point overflow in "
575 # define fixed_message_ln ((sizeof fixed_message)-1)
◆ png_set_longjmp_fn()
jmp_buf* PNGAPI png_set_longjmp_fn |
( |
png_structrp |
png_ptr, |
|
|
png_longjmp_ptr |
longjmp_fn, |
|
|
size_t |
jmp_buf_size |
|
) |
| |
617 if (jmp_buf_size <= (
sizeof png_ptr->jmp_buf_local))
623 png_malloc_warn(
png_ptr, jmp_buf_size));
628 png_ptr->jmp_buf_size = jmp_buf_size;
651 if (
size != jmp_buf_size)
661 png_ptr->longjmp_fn = longjmp_fn;
◆ png_free_jmpbuf()
670 jmp_buf *jb =
png_ptr->jmp_buf_ptr;
682 if (jb != &
png_ptr->jmp_buf_local)
685 jmp_buf free_jmp_buf;
687 if (!setjmp(free_jmp_buf))
689 png_ptr->jmp_buf_ptr = &free_jmp_buf;
◆ PNG_FUNCTION() [4/6]
714 #ifdef PNG_CONSOLE_IO_SUPPORTED
715 #ifdef PNG_ERROR_NUMBERS_SUPPORTED
721 char error_number[16];
722 for (offset = 0; offset<15; offset++)
724 error_number[offset] = error_message[offset + 1];
725 if (error_message[offset] ==
' ')
729 if ((offset > 1) && (offset < 15))
731 error_number[offset - 1] =
'\0';
732 fprintf(stderr,
"libpng error no. %s: %s",
733 error_number, error_message + offset + 1);
739 fprintf(stderr,
"libpng error: %s, offset=%d",
740 error_message, offset);
747 fprintf(stderr,
"libpng error: %s", error_message ? error_message :
◆ PNG_FUNCTION() [5/6]
760 #ifdef PNG_SETJMP_SUPPORTED
◆ png_default_warning()
787 #ifdef PNG_CONSOLE_IO_SUPPORTED
788 # ifdef PNG_ERROR_NUMBERS_SUPPORTED
792 char warning_number[16];
793 for (offset = 0; offset < 15; offset++)
795 warning_number[offset] = warning_message[offset + 1];
796 if (warning_message[offset] ==
' ')
800 if ((offset > 1) && (offset < 15))
802 warning_number[offset + 1] =
'\0';
803 fprintf(stderr,
"libpng warning no. %s: %s",
804 warning_number, warning_message + offset);
810 fprintf(stderr,
"libpng warning: %s",
819 fprintf(stderr,
"libpng warning: %s", warning_message);
◆ png_set_error_fn()
841 png_ptr->error_ptr = error_ptr;
843 #ifdef PNG_WARNINGS_SUPPORTED
844 png_ptr->warning_fn = warning_fn;
◆ png_get_error_ptr()
◆ PNG_FUNCTION() [6/6]
◆ png_safe_warning()
◆ png_safe_execute()
945 result = setjmp(safe_jmpbuf) == 0;
951 result =
function(arg);
◆ png_digit
Initial value:= {
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F'
}
#define PNG_FORMAT_NUMBER(buffer, format, number)
Definition: pngpriv.h:1748
#define PNG_FLAG_STRIP_ERROR_NUMBERS
Definition: pngpriv.h:697
#define PNG_UNUSED(param)
Definition: pngpriv.h:438
bool error
Definition: auto_build.py:637
void * png_voidp
Definition: pngconf.h:577
#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_ABORT()
Definition: pngpriv.h:562
char * png_charp
Definition: pngconf.h:589
start
Definition: g29_auto.py:150
png_uint_32 warning_or_error
Definition: png.h:2704
#define PNG_IS_READ_STRUCT
Definition: pngpriv.h:639
char message[64]
Definition: png.h:2706
#define PNG_FLAG_STRIP_ERROR_TEXT
Definition: pngpriv.h:698
uint8_t i
Definition: screen_test_graph.c:72
#define isnonalpha(c)
Definition: pngerror.c:427
const typedef png_struct *PNG_RESTRICT png_const_structrp
Definition: png.h:470
#define PNG_WARNING_PARAMETER_COUNT
Definition: pngpriv.h:1769
#define PNG_IMAGE_WARNING
Definition: png.h:2691
#define png_voidcast(type, value)
Definition: pngpriv.h:494
#define NULL
Definition: usbd_def.h:53
png_structrp png_ptr
Definition: png.h:1083
#define PNG_NUMBER_BUFFER_SIZE
Definition: pngpriv.h:1752
end
Definition: createSpeedLookupTable.py:33
#define png_control_jmp_buf(pc)
Definition: pngpriv.h:2054
unsigned int png_uint_32
Definition: pngconf.h:511
void PNGAPI png_image_free(png_imagep image)
Definition: png.c:4582
#define PNG_NUMBER_FORMAT_u
Definition: pngpriv.h:1757
#define PNG_NUMBER_FORMAT_02x
Definition: pngpriv.h:1762
void PNGAPI png_chunk_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:497
#define PNG_MAX_ERROR_TEXT
Definition: pngerror.c:418
#define PNG_NUMBER_FORMAT_02u
Definition: pngpriv.h:1758
void
Definition: png.h:1083
const typedef char * png_const_charp
Definition: pngconf.h:590
png_struct *PNG_RESTRICT png_structrp
Definition: png.h:469
static const char png_digit[16]
Definition: pngerror.c:428
#define PNG_LITERAL_RIGHT_SQUARE_BRACKET
Definition: pngdebug.h:45
png_voidp error_buf
Definition: pngpriv.h:2039
void png_warning_parameter(png_warning_parameters p, int number, png_const_charp string)
Definition: pngerror.c:247
#define PNG_LITERAL_SHARP
Definition: pngdebug.h:39
#define PNG_FLAG_APP_ERRORS_WARN
Definition: pngpriv.h:701
static void png_default_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:785
#define PNG_IMAGE_ERROR
Definition: png.h:2692
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
#define PNG_LITERAL_LEFT_SQUARE_BRACKET
Definition: pngdebug.h:42
#define PNG_CHUNK_WRITE_ERROR
Definition: pngpriv.h:1843
#define PNG_FLAG_BENIGN_ERRORS_WARN
Definition: pngpriv.h:699
size_t png_alloc_size_t
Definition: pngconf.h:557
#define png_constcast(type, value)
Definition: pngpriv.h:504
#define PNG_CHUNK_ERROR
Definition: pngpriv.h:1844
int
Definition: createSpeedLookupTable.py:15
void PNGAPI png_chunk_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:514
size_t png_safecat(png_charp buffer, size_t bufsize, size_t pos, png_const_charp string)
Definition: pngerror.c:112
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
static void png_format_buffer(png_const_structrp png_ptr, png_charp buffer, png_const_charp error_message)
Definition: pngerror.c:434
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
#define PNG_STRING_NEWLINE
Definition: pngdebug.h:48
#define PNG_NUMBER_FORMAT_x
Definition: pngpriv.h:1761
#define PNG_NUMBER_FORMAT_fixed
Definition: pngpriv.h:1763
static png_bytep size_t size
Definition: pngwrite.c:2170
png_controlp opaque
Definition: png.h:2673