ImageFormatGroup enum

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

Constants

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)
unknown → const ImageFormatGroup

The image format does not fit into any specific group.

const ImageFormatGroup(0)
values → const List<ImageFormatGroup>

A constant List of the values in this enum, in order of their declaration.

const List<ImageFormatGroup>
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)

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited