Reader for `PNG` images. The PNG specification is at [[ https://www.w3.org/TR/PNG/ ]].

Collection Info

View Source
Collection
core
Path
image/png
Entries
62

Source Files

Constants

4

depth_scale_table #

Source
depth_scale_table :: []u8{0, 0xff, 0x55, 0, 0x11, 0, 0, 0, 0x01}

MAX_CHUNK_SIZE #

Source
MAX_CHUNK_SIZE :: min(#config(PNG_MAX_CHUNK_SIZE, 16_777_216), 268_435_456)

For chunks other than IDAT with a variable size like `zTXT` and `eXIf`, limit their size to 16 MiB each by default. Max of 256 MiB each.

MAX_IDAT_SIZE #

Source
MAX_IDAT_SIZE :: min(#config(PNG_MAX_IDAT_SIZE, _MAX_IDAT_DEFAULT), _MAX_IDAT)

Types

22

Procedures

31

load_from_context #

Source
load_from_context :: proc(ctx: ^$C, options: Options = Options{}, allocator := context.allocator) -> (img: ^Image, err: Error) {…}

Procedure Groups

1

Variables

4