Module transform

Source
Expand description

Transforming a decompressed, unfiltered row into the final output.

Modulesยง

palette ๐Ÿ”’
Helpers for taking a slice of indices (indices into PLTE and/or trNS entries) and transforming this into RGB or RGBA output.

Functionsยง

copy_row ๐Ÿ”’
create_transform_fn
Returns a transformation function that should be applied to image rows based on 1) decoded image metadata (info) and 2) the transformations requested by the crate client (transform).
expand_gray_u8 ๐Ÿ”’
expand_gray_u8_with_trns ๐Ÿ”’
expand_trns_and_strip_line16 ๐Ÿ”’
expand_trns_line ๐Ÿ”’
expand_trns_line16 ๐Ÿ”’
transform_row_strip16 ๐Ÿ”’
unpack_bits ๐Ÿ”’

Type Aliasesยง

TransformFn
Type of a function that can transform a decompressed, unfiltered row (the 1st argument) into the final pixels (the 2nd argument), optionally using image metadata (e.g. PLTE data can be accessed using the 3rd argument).