IO layout types mirroring references/image/src/io.rs
Types
DecoderPreparedImage = object layout*: ImageLayout
ImageLayout = object color*: ColorType width*: uint32 height*: uint32
Procs
func dimensions(l: ImageLayout): tuple[w, h: uint32] {....raises: [], tags: [], forbids: [].}
func initLayout(w, h: uint32; c: ColorType): ImageLayout {....raises: [], tags: [], forbids: [].}
func initPrepared(w, h: uint32; c: ColorType): DecoderPreparedImage {. ...raises: [], tags: [], forbids: [].}
func totalBytes(l: ImageLayout): uint64 {....raises: [], tags: [], forbids: [].}
func totalBytes(p: DecoderPreparedImage): uint64 {....raises: [], tags: [], forbids: [].}