Skip to main content

Module adam7

Module adam7 

Source
Expand description

Utility functions related to handling of the Adam7 algorithm.

Structsยง

Adam7Info
Describes which stage of the Adam7 algorithm applies to a decoded row.
Adam7Iterator ๐Ÿ”’
This iterator iterates over the different passes of an image Adam7 encoded PNG image The pattern is: 16462646 77777777 56565656 77777777 36463646 77777777 56565656 77777777
BitPostion ๐Ÿ”’
The index of a bit in the image buffer.
PassConstants ๐Ÿ”’

Enumsยง

Adam7Variant
The algorithm to use when progressively filling pixel data from Adam7 interlaced passes.

Functionsยง

expand_adam7_bits ๐Ÿ”’
Given row_stride, interlace info, and bits-per-pixel, produce an iterator of bit positions of pixels to copy from the input scanline to the image buffer. The positions are expressed as bit offsets from position (0,0) in the frame that is currently being decoded.
expand_adam7_bytes ๐Ÿ”’
expand_pass
Copies pixels from interlaced_row into the right location in img.
expand_pass_splat
Expand pass, but also ensure that after each pass the whole image has been initialized up to the data available. In constrast to expand_pass there are no holes left in the image.
subbyte_values ๐Ÿ”’