Module image_texel::image
source · [−]Expand description
Defines the Image
container, with flexibly type-safe layout.
Besides the main type, Image
, which is an owned buffer of particular layout there are some
supporting types that represent other ways in which layouts interact with buffers. Note that
the layout is flexible in the sense that it is up to the user to ultimately ensure correct
typing. The type definition will help you by not providing the tools for strong types but
it’s always allowed/valid to refer to the same bytes by a different layout. This makes it
possible to use your own texel/pixel wrapper types regardless of the underlying byte
representation. Indeed, the byte buffer need not even represent a pixel matrix (but it’s
advised, probably very common, and the only ‘supported’ use-case).
Structs
Describes an image coordinate.
A container of allocated bytes, parameterized over the layout.
A writeable reference to an image buffer.
A read-only view of an image.
A reference to mutable byte of a strided matrix.
A reference to byte of a strided matrix.