ImageFormat
The metadata describing the contents of a components.ImageBuffer
.
Fields fields
width
Type: uint32
The width of the image in pixels.
height
Type: uint32
The height of the image in pixels.
pixel_format
Type: nullable PixelFormat
Used mainly for chroma downsampled formats and differing number of bits per channel.
If specified, this takes precedence over both datatypes.ColorModel
and datatypes.ChannelDatatype
(which are ignored).
color_model
Type: nullable ColorModel
L, RGB, RGBA, …
Also requires a datatypes.ChannelDatatype
to fully specify the pixel format.
channel_datatype
Type: nullable ChannelDatatype
The data type of each channel (e.g. the red channel) of the image data (U8, F16, …).
Also requires a datatypes.ColorModel
to fully specify the pixel format.
Arrow datatype arrow-datatype
Struct {
width: uint32
height: uint32
pixel_format: nullable uint8
color_model: nullable uint8
channel_datatype: nullable uint8
}