Prusa MINI Firmware overview
|
|
void PNGAPI | png_process_data (png_structrp png_ptr, png_inforp info_ptr, png_bytep buffer, size_t buffer_size) |
|
size_t PNGAPI | png_process_data_pause (png_structrp png_ptr, int save) |
|
png_uint_32 PNGAPI | png_process_data_skip (png_structrp png_ptr) |
|
void | png_process_some_data (png_structrp png_ptr, png_inforp info_ptr) |
|
void | png_push_read_sig (png_structrp png_ptr, png_inforp info_ptr) |
|
void | png_push_read_chunk (png_structrp png_ptr, png_inforp info_ptr) |
|
void PNGCBAPI | png_push_fill_buffer (png_structp png_ptr, png_bytep buffer, size_t length) |
|
void | png_push_save_buffer (png_structrp png_ptr) |
|
void | png_push_restore_buffer (png_structrp png_ptr, png_bytep buffer, size_t buffer_length) |
|
void | png_push_read_IDAT (png_structrp png_ptr) |
|
void | png_process_IDAT_data (png_structrp png_ptr, png_bytep buffer, size_t buffer_length) |
|
void | png_push_process_row (png_structrp png_ptr) |
|
void | png_read_push_finish_row (png_structrp png_ptr) |
|
void | png_push_have_info (png_structrp png_ptr, png_inforp info_ptr) |
|
void | png_push_have_end (png_structrp png_ptr, png_inforp info_ptr) |
|
void | png_push_have_row (png_structrp png_ptr, png_bytep row) |
|
void PNGAPI | png_progressive_combine_row (png_const_structrp png_ptr, png_bytep old_row, png_const_bytep new_row) |
|
void PNGAPI | png_set_progressive_read_fn (png_structrp png_ptr, png_voidp progressive_ptr, png_progressive_info_ptr info_fn, png_progressive_row_ptr row_fn, png_progressive_end_ptr end_fn) |
|
png_voidp PNGAPI | png_get_progressive_ptr (png_const_structrp png_ptr) |
|
◆ PNG_READ_SIG_MODE
#define PNG_READ_SIG_MODE 0 |
◆ PNG_READ_CHUNK_MODE
#define PNG_READ_CHUNK_MODE 1 |
◆ PNG_READ_IDAT_MODE
#define PNG_READ_IDAT_MODE 2 |
◆ PNG_READ_tEXt_MODE
#define PNG_READ_tEXt_MODE 4 |
◆ PNG_READ_zTXt_MODE
#define PNG_READ_zTXt_MODE 5 |
◆ PNG_READ_DONE_MODE
#define PNG_READ_DONE_MODE 6 |
◆ PNG_READ_iTXt_MODE
#define PNG_READ_iTXt_MODE 7 |
◆ PNG_ERROR_MODE
◆ PNG_PUSH_SAVE_BUFFER_IF_FULL
#define PNG_PUSH_SAVE_BUFFER_IF_FULL |
◆ PNG_PUSH_SAVE_BUFFER_IF_LT
#define PNG_PUSH_SAVE_BUFFER_IF_LT |
( |
|
N | ) |
|
◆ png_process_data()
◆ png_process_data_pause()
63 size_t remaining =
png_ptr->buffer_size;
69 if (
png_ptr->save_buffer_size < remaining)
70 return remaining -
png_ptr->save_buffer_size;
◆ png_process_data_skip()
86 "png_process_data_skip is not implemented in any current version of libpng");
◆ png_process_some_data()
◆ png_push_read_sig()
136 size_t num_checked =
png_ptr->sig_bytes;
137 size_t num_to_check = 8 - num_checked;
139 if (
png_ptr->buffer_size < num_to_check)
141 num_to_check =
png_ptr->buffer_size;
146 png_ptr->sig_bytes = (png_byte)(
png_ptr->sig_bytes + num_to_check);
150 if (num_checked < 4 &&
◆ png_push_read_chunk()
170 #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
182 png_byte chunk_length[4];
183 png_byte chunk_tag[4];
196 chunk_name =
png_ptr->chunk_name;
229 if (
png_ptr->push_length != 13)
245 #ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
274 #ifdef PNG_READ_gAMA_SUPPORTED
282 #ifdef PNG_READ_sBIT_SUPPORTED
290 #ifdef PNG_READ_cHRM_SUPPORTED
298 #ifdef PNG_READ_sRGB_SUPPORTED
306 #ifdef PNG_READ_iCCP_SUPPORTED
314 #ifdef PNG_READ_sPLT_SUPPORTED
322 #ifdef PNG_READ_tRNS_SUPPORTED
330 #ifdef PNG_READ_bKGD_SUPPORTED
338 #ifdef PNG_READ_hIST_SUPPORTED
346 #ifdef PNG_READ_pHYs_SUPPORTED
354 #ifdef PNG_READ_oFFs_SUPPORTED
362 #ifdef PNG_READ_pCAL_SUPPORTED
370 #ifdef PNG_READ_sCAL_SUPPORTED
378 #ifdef PNG_READ_tIME_SUPPORTED
386 #ifdef PNG_READ_tEXt_SUPPORTED
394 #ifdef PNG_READ_zTXt_SUPPORTED
402 #ifdef PNG_READ_iTXt_SUPPORTED
◆ png_push_fill_buffer()
429 if (
png_ptr->save_buffer_size != 0)
433 if (length < png_ptr->save_buffer_size)
437 save_size =
png_ptr->save_buffer_size;
439 memcpy(ptr,
png_ptr->save_buffer_ptr, save_size);
442 png_ptr->buffer_size -= save_size;
443 png_ptr->save_buffer_size -= save_size;
444 png_ptr->save_buffer_ptr += save_size;
450 if (length < png_ptr->current_buffer_size)
454 save_size =
png_ptr->current_buffer_size;
456 memcpy(ptr,
png_ptr->current_buffer_ptr, save_size);
457 png_ptr->buffer_size -= save_size;
458 png_ptr->current_buffer_size -= save_size;
459 png_ptr->current_buffer_ptr += save_size;
◆ png_push_save_buffer()
466 if (
png_ptr->save_buffer_size != 0)
474 istop =
png_ptr->save_buffer_size;
476 i < istop;
i++, sp++, dp++)
489 (
png_ptr->current_buffer_size + 256))
494 new_max =
png_ptr->save_buffer_size +
png_ptr->current_buffer_size + 256;
495 old_buffer =
png_ptr->save_buffer;
506 memcpy(
png_ptr->save_buffer, old_buffer,
png_ptr->save_buffer_size);
507 else if (
png_ptr->save_buffer_size)
510 png_ptr->save_buffer_max = new_max;
512 if (
png_ptr->current_buffer_size)
517 png_ptr->current_buffer_size = 0;
◆ png_push_restore_buffer()
527 png_ptr->current_buffer = buffer;
528 png_ptr->current_buffer_size = buffer_length;
◆ png_push_read_IDAT()
538 png_byte chunk_length[4];
539 png_byte chunk_tag[4];
565 size_t save_size =
png_ptr->save_buffer_size;
574 if (idat_size < save_size)
575 save_size = (size_t)idat_size;
584 png_ptr->idat_size -= idat_size;
585 png_ptr->buffer_size -= save_size;
586 png_ptr->save_buffer_size -= save_size;
587 png_ptr->save_buffer_ptr += save_size;
592 size_t save_size =
png_ptr->current_buffer_size;
600 if (idat_size < save_size)
601 save_size = (size_t)idat_size;
610 png_ptr->idat_size -= idat_size;
611 png_ptr->buffer_size -= save_size;
612 png_ptr->current_buffer_size -= save_size;
613 png_ptr->current_buffer_ptr += save_size;
◆ png_process_IDAT_data()
631 if (!(buffer_length > 0) || buffer ==
NULL)
638 png_ptr->zstream.next_in = buffer;
645 while (
png_ptr->zstream.avail_in > 0 &&
655 if (!(
png_ptr->zstream.avail_out > 0))
721 if (
png_ptr->zstream.avail_out == 0)
734 if (
png_ptr->zstream.avail_in > 0)
◆ png_push_process_row()
767 #ifdef PNG_READ_TRANSFORMS_SUPPORTED
768 if (
png_ptr->transformations != 0)
773 if (
png_ptr->transformed_pixel_depth == 0)
784 #ifdef PNG_READ_INTERLACING_SUPPORTED
786 if (
png_ptr->interlaced != 0 &&
◆ png_read_push_finish_row()
971 #ifdef PNG_READ_INTERLACING_SUPPORTED
975 static const png_byte png_pass_start[] = {0, 4, 0, 2, 0, 1, 0};
978 static const png_byte png_pass_inc[] = {8, 8, 4, 4, 2, 2, 1};
981 static const png_byte png_pass_ystart[] = {0, 0, 4, 0, 2, 0, 1};
984 static const png_byte png_pass_yinc[] = {8, 8, 8, 4, 4, 2, 2};
996 #ifdef PNG_READ_INTERLACING_SUPPORTED
1017 png_pass_inc[
png_ptr->pass] - 1 -
1018 png_pass_start[
png_ptr->pass]) /
1025 png_pass_yinc[
png_ptr->pass] - 1 -
1026 png_pass_ystart[
png_ptr->pass]) /
◆ png_push_have_info()
◆ png_push_have_end()
◆ png_push_have_row()
◆ png_progressive_combine_row()
1068 if (new_row !=
NULL)
◆ png_set_progressive_read_fn()
void PNGAPI png_set_progressive_read_fn |
( |
png_structrp |
png_ptr, |
|
|
png_voidp |
progressive_ptr, |
|
|
png_progressive_info_ptr |
info_fn, |
|
|
png_progressive_row_ptr |
row_fn, |
|
|
png_progressive_end_ptr |
end_fn |
|
) |
| |
◆ png_get_progressive_ptr()
void png_handle_sPLT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1640
void png_handle_IHDR(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:839
void png_push_have_end(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:1042
#define PNG_AFTER_IDAT
Definition: png.h:646
#define PNG_READ_SIG_MODE
Definition: pngpread.c:19
#define png_sCAL
Definition: pngpriv.h:867
#define PNG_HAVE_CHUNK_HEADER
Definition: pngpriv.h:632
void png_handle_tRNS(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1817
#define png_tRNS
Definition: pngpriv.h:873
#define PNG_HAVE_PLTE
Definition: png.h:645
void png_push_read_chunk(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:167
#define png_PLTE
Definition: pngpriv.h:851
void png_push_restore_buffer(png_structrp png_ptr, png_bytep buffer, size_t buffer_length)
Definition: pngpread.c:524
void PNGAPI png_free(png_const_structrp png_ptr, png_voidp ptr)
Definition: pngmem.c:232
#define png_zTXt
Definition: pngpriv.h:874
#define png_iTXt
Definition: pngpriv.h:862
#define PNG_READ_CHUNK_MODE
Definition: pngpread.c:20
#define Z_DATA_ERROR
Definition: zlib.h:182
void png_handle_sCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2376
void png_handle_PLTE(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:913
png_uint_32 PNGAPI png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf)
Definition: pngrutil.c:22
png_byte * png_bytep
Definition: pngconf.h:579
void png_push_have_row(png_structrp png_ptr, png_bytep row)
Definition: pngpread.c:1049
uint8_t i
Definition: screen_test_graph.c:72
void png_push_save_buffer(png_structrp png_ptr)
Definition: pngpread.c:464
void png_do_read_interlace(png_row_infop row_info, png_bytep row, int pass, png_uint_32 transformations)
Definition: pngrutil.c:3684
void png_combine_row(png_const_structrp png_ptr, png_bytep dp, int display)
Definition: pngrutil.c:3200
void png_read_push_finish_row(png_structrp png_ptr)
Definition: pngpread.c:969
void png_check_chunk_name(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: pngrutil.c:3134
void png_handle_tEXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2515
#define PNG_SIZE_MAX
Definition: png.h:651
#define png_iCCP
Definition: pngpriv.h:861
#define png_tEXt
Definition: pngpriv.h:871
#define PNG_HAVE_CHUNK_AFTER_IDAT
Definition: pngpriv.h:637
#define NULL
Definition: usbd_def.h:53
png_uint_32 width
Definition: png.h:756
void png_handle_pHYs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2154
#define png_IEND
Definition: pngpriv.h:849
png_structrp png_ptr
Definition: png.h:1083
#define png_sPLT
Definition: pngpriv.h:868
png_const_structrp png_const_inforp info_ptr
Definition: png.h:1939
unsigned int png_uint_32
Definition: pngconf.h:511
#define PNG_HAVE_IHDR
Definition: png.h:644
#define PNG_HAVE_IDAT
Definition: pngpriv.h:626
void png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info)
Definition: pngrtran.c:4736
void png_crc_read(png_structrp png_ptr, png_bytep buf, png_uint_32 length)
Definition: pngrutil.c:196
void png_push_process_row(png_structrp png_ptr)
Definition: pngpread.c:739
void png_handle_hIST(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2102
png_byte channels
Definition: png.h:760
void png_calculate_crc(png_structrp png_ptr, png_const_bytep ptr, size_t length)
Definition: png.c:139
void png_handle_zTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2596
png_byte color_type
Definition: png.h:758
void PNGAPI png_benign_error(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:362
#define PNG_INTERLACE
Definition: pngpriv.h:643
#define PNG_CHUNK_FROM_STRING(s)
Definition: pngpriv.h:879
#define png_IDAT
Definition: pngpriv.h:848
void png_process_IDAT_data(png_structrp png_ptr, png_bytep buffer, size_t buffer_length)
Definition: pngpread.c:627
void png_handle_sBIT(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1158
#define Z_OK
Definition: zlib.h:177
#define PNG_FILTER_VALUE_NONE
Definition: png.h:1476
#define png_IHDR
Definition: pngpriv.h:850
#define png_cHRM
Definition: pngpriv.h:853
#define Z_SYNC_FLUSH
Definition: zlib.h:170
#define PNG_FILTER_VALUE_LAST
Definition: png.h:1481
#define PNG_HANDLE_CHUNK_AS_DEFAULT
Definition: png.h:2345
if(size<=((png_alloc_size_t) -1) - ob)
Definition: pngwrite.c:2176
void png_push_read_IDAT(png_structrp png_ptr)
Definition: pngpread.c:534
#define Z_STREAM_END
Definition: zlib.h:178
png_byte pixel_depth
Definition: png.h:761
void png_reset_crc(png_structrp png_ptr)
Definition: png.c:127
void png_handle_IEND(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1100
void png_read_filter_row(png_structrp pp, png_row_infop row_info, png_bytep row, png_const_bytep prev_row, int filter)
Definition: pngrutil.c:4131
int png_crc_finish(png_structrp png_ptr, png_uint_32 skip)
Definition: pngrutil.c:211
void png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1362
void png_handle_gAMA(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1120
void PNGAPI png_set_read_fn(png_structrp png_ptr, png_voidp io_ptr, png_rw_ptr read_data_fn)
Definition: pngrio.c:87
void png_process_some_data(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:94
else png_error(png_ptr, "png_image_write_to_memory: PNG too big")
void png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length, int keep)
Definition: pngrutil.c:2922
#define PNG_INFLATE(pp, flush)
Definition: pngpriv.h:1398
#define png_hIST
Definition: pngpriv.h:860
#define png_oFFs
Definition: pngpriv.h:863
void png_handle_pCAL(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2247
#define PNG_PUSH_SAVE_BUFFER_IF_LT(N)
Definition: pngpread.c:31
void png_handle_tIME(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2469
#define png_pHYs
Definition: pngpriv.h:865
#define PNG_ROWBYTES(pixel_bits, width)
Definition: pngpriv.h:738
void png_handle_cHRM(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1240
#define PNG_PUSH_SAVE_BUFFER_IF_FULL
Definition: pngpread.c:28
#define png_sBIT
Definition: pngpriv.h:866
void png_handle_iTXt(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2713
#define png_gAMA
Definition: pngpriv.h:856
int
Definition: createSpeedLookupTable.py:15
#define PNG_FLAG_ZSTREAM_ENDED
Definition: pngpriv.h:682
#define png_pCAL
Definition: pngpriv.h:864
void png_handle_oFFs(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:2200
void png_push_have_info(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:1035
unsigned int uInt
Definition: zconf.h:393
#define png_tIME
Definition: pngpriv.h:872
void png_handle_bKGD(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1921
png_uint_32 length
Definition: png.c:2247
#define PNG_READ_DONE_MODE
Definition: pngpread.c:24
void png_check_chunk_length(png_const_structrp png_ptr, png_uint_32 length)
Definition: pngrutil.c:3153
int png_chunk_unknown_handling(png_const_structrp png_ptr, png_uint_32 chunk_name)
Definition: png.c:961
png_structrp int mode
Definition: png.h:1139
void png_app_warning(png_const_structrp png_ptr, png_const_charp error_message)
Definition: pngerror.c:392
size_t rowbytes
Definition: png.h:757
void png_handle_sRGB(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
Definition: pngrutil.c:1312
png_byte bit_depth
Definition: png.h:759
void PNGCBAPI png_push_fill_buffer(png_structp png_ptr, png_bytep buffer, size_t length)
Definition: pngpread.c:421
#define PNG_READ_IDAT_MODE
Definition: pngpread.c:21
void PNGAPI png_warning(png_const_structrp png_ptr, png_const_charp warning_message)
Definition: pngerror.c:216
#define png_bKGD
Definition: pngpriv.h:852
void png_push_read_sig(png_structrp png_ptr, png_inforp info_ptr)
Definition: pngpread.c:134
int PNGAPI png_sig_cmp(png_const_bytep sig, size_t start, size_t num_to_check)
Definition: png.c:74
#define PNG_COLOR_TYPE_PALETTE
Definition: png.h:669
#define png_sRGB
Definition: pngpriv.h:869