ImageFormatGroup enum
Group of image formats that are comparable across Android and iOS platforms.
- Inheritance
- Available extensions
Values
- unknown → const ImageFormatGroup
-
The image format does not fit into any specific group.
- 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_888On iOS, this is
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
. See https://developer.apple.com/documentation/corevideo/1563591-pixel_format_identifiers/kcvpixelformattype_420ypcbcr8biplanarvideorange?language=objc - 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 - 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 - nv21 → const ImageFormatGroup
-
YCrCb format used for images, which uses the NV21 encoding format.
On Android, this is
android.graphics.ImageFormat.NV21
. See https://developer.android.com/reference/android/graphics/ImageFormat#NV21
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
name(
) → String -
Available on ImageFormatGroup, provided by the ImageFormatGroupName extension
returns a String value for ImageFormatGroup returns 'unknown' if platform is not supported or if ImageFormatGroup is not supported for the platform -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.