Package org.lwjgl.util.spng
@NullMarked
package org.lwjgl.util.spng
Contains bindings to libspbg (simple png), a C library for reading and writing Portable Network Graphics (PNG) format
files with a focus on security and easy of use.
Resources
-
ClassDescription
struct spng_alloc { {@link spng_malloc_fnI spng_malloc_fn} * malloc_fn; {@link spng_realloc_fnI spng_realloc_fn} * realloc_fn; {@link spng_calloc_fnI spng_calloc_fn} * calloc_fn; {@link spng_free_fnI spng_free_fn} * free_fn; }An array ofspng_allocstructs.struct spng_bkgd { uint16_t gray; uint16_t red; uint16_t green; uint16_t blue; uint16_t plte_index; }An array ofspng_bkgdstructs.Callback function:spng_calloc_fnCallback function:spng_calloc_fnstruct spng_chrm { double white_point_x; double white_point_y; double red_x; double red_y; double green_x; double green_y; double blue_x; double blue_y; }struct spng_chrm_int { uint32_t white_point_x; uint32_t white_point_y; uint32_t red_x; uint32_t red_y; uint32_t green_x; uint32_t green_y; uint32_t blue_x; uint32_t blue_y; }An array ofspng_chrm_intstructs.An array ofspng_chrmstructs.struct spng_chunk { size_t offset; uint32_t length; uint8_t type[4]; uint32_t crc; }An array ofspng_chunkstructs.struct spng_exif { size_t length; char * data; }An array ofspng_exifstructs.Callback function:spng_free_fnCallback function:spng_free_fnstruct spng_hist { uint16_t frequency[256]; }An array ofspng_histstructs.struct spng_iccp { char profile_name[80]; size_t profile_len; char * profile; }An array ofspng_iccpstructs.struct spng_ihdr { uint32_t width; uint32_t height; uint8_t bit_depth; uint8_t color_type; uint8_t compression_method; uint8_t filter_method; uint8_t interlace_method; }An array ofspng_ihdrstructs.Callback function:spng_malloc_fnCallback function:spng_malloc_fnstruct spng_offs { int32_t x; int32_t y; uint8_t unit_specifier; }An array ofspng_offsstructs.struct spng_phys { uint32_t ppu_x; uint32_t ppu_y; uint8_t unit_specifier; }An array ofspng_physstructs.struct spng_plte { uint32_t n_entries; {@link spng_plte_entry struct spng_plte_entry} entries[256]; }struct spng_plte_entry { uint8_t red; uint8_t green; uint8_t blue; uint8_t alpha; }An array ofspng_plte_entrystructs.An array ofspng_pltestructs.Callback function:spng_realloc_fnCallback function:spng_realloc_fnstruct spng_row_info { uint32_t scanline_idx; uint32_t row_num; int pass; uint8_t filter; }An array ofspng_row_infostructs.Callback function:spng_rw_fn *Callback function:spng_rw_fn *struct spng_sbit { uint8_t grayscale_bits; uint8_t red_bits; uint8_t green_bits; uint8_t blue_bits; uint8_t alpha_bits; }An array ofspng_sbitstructs.struct spng_splt { char name[80]; uint8_t sample_depth; uint32_t n_entries; {@link spng_splt_entry struct spng_splt_entry} * entries; }struct spng_splt_entry { uint16_t red; uint16_t green; uint16_t blue; uint16_t alpha; uint16_t frequency; }An array ofspng_splt_entrystructs.An array ofspng_spltstructs.struct spng_text { char keyword[80]; int type; size_t length; char * text; uint8_t compression_flag; uint8_t compression_method; char * language_tag; char * translated_keyword; }An array ofspng_textstructs.struct spng_time { uint16_t year; uint8_t month; uint8_t day; uint8_t hour; uint8_t minute; uint8_t second; }An array ofspng_timestructs.struct spng_trns { uint16_t gray; uint16_t red; uint16_t green; uint16_t blue; uint32_t n_type3_entries; uint8_t type3_alpha[256]; }An array ofspng_trnsstructs.struct spng_unknown_chunk { uint8_t type[4]; size_t length; void * data; spng_location location; }An array ofspng_unknown_chunkstructs.