ImageFormatGroup enum Null safety

Group of image formats that are comparable across Android and iOS platforms.

Inheritance

Constructors

ImageFormatGroup()
const

Values

unknown → const ImageFormatGroup

The image format does not fit into any specific group.

const ImageFormatGroup(0)
yuv420 → const ImageFormatGroup

Multi-plane YUV 420 format.

This format is a generic YCbCr format, capable of describing any 4:2:0 chroma-subsampled planar or semiplanar buffer (but not fully interleaved), with 8 bits per color sample.

On Android, this is android.graphics.ImageFormat.YUV_420_888. See https://developer.android.com/reference/android/graphics/ImageFormat.html#YUV_420_888

On iOS, this is kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange. See https://developer.apple.com/documentation/corevideo/1563591-pixel_format_identifiers/kcvpixelformattype_420ypcbcr8biplanarvideorange?language=objc

const ImageFormatGroup(1)
bgra8888 → const ImageFormatGroup

32-bit BGRA.

On iOS, this is kCVPixelFormatType_32BGRA. See https://developer.apple.com/documentation/corevideo/1563591-pixel_format_identifiers/kcvpixelformattype_32bgra?language=objc

const ImageFormatGroup(2)
jpeg → const ImageFormatGroup

32-big RGB image encoded into JPEG bytes.

On Android, this is android.graphics.ImageFormat.JPEG. See https://developer.android.com/reference/android/graphics/ImageFormat#JPEG

const ImageFormatGroup(3)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ImageFormatGroup>
A constant List of the values in this enum, in order of their declaration.
[unknown, yuv420, bgra8888, jpeg]