Android.Graphics.ImageFormat.Yuv420888 Field

Value: 35

Syntax

[Android.Runtime.Register("YUV_420_888")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.")]
public const ImageFormatType Yuv420888

See Also

Android.Media.Image
Android.Media.ImageReader
Android.Hardware.Camera2.CameraDevice

Remarks

Multi-plane Android YUV 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.

Images in this format are always represented by three separate buffers of data, one for each color plane. Additional information always accompanies the buffers, describing the row stride and the pixel stride for each plane.

The order of planes in the array returned by Android.Media.Image.GetPlanes is guaranteed such that plane #0 is always Y, plane #1 is always U (Cb), and plane #2 is always V (Cr).

The Y-plane is guaranteed not to be interleaved with the U/V planes (in particular, pixel stride is always 1 in NoType:android/media/Image$Plane;Href=../../../reference/android/media/Image.Plane.html#getPixelStride()).

The U/V planes are guaranteed to have the same row stride and pixel stride (in particular, NoType:android/media/Image$Plane;Href=../../../reference/android/media/Image.Plane.html#getRowStride() == NoType:android/media/Image$Plane;Href=../../../reference/android/media/Image.Plane.html#getRowStride() and NoType:android/media/Image$Plane;Href=../../../reference/android/media/Image.Plane.html#getPixelStride() == NoType:android/media/Image$Plane;Href=../../../reference/android/media/Image.Plane.html#getPixelStride(); ).

For example, the Android.Media.Image object can provide data in this format from a Android.Hardware.Camera2.CameraDevice through a Android.Media.ImageReader object.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0