Share via


ImageFormat.Yuv422888 Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.

Multi-plane Android YUV 422 format

[Android.Runtime.Register("YUV_422_888", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)]
public const Android.Graphics.ImageFormatType Yuv422888 = 39;
[<Android.Runtime.Register("YUV_422_888", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Yuv422888 : Android.Graphics.ImageFormatType

Field Value

Value = 39
Attributes

Remarks

Multi-plane Android YUV 422 format

This format is a generic YCbCr format, capable of describing any 4:2:2 chroma-subsampled (planar, semiplanar or interleaved) format, 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() Image#getPlanes() is guaranteed such that plane #0 is always Y, plane #1 is always U (Cb), and plane #2 is always V (Cr).

In contrast to the #YUV_420_888 format, the Y-plane may have a pixel stride greater than 1 in android.media.Image.Plane#getPixelStride() yPlane.getPixelStride().

The U/V planes are guaranteed to have the same row stride and pixel stride (in particular, android.media.Image.Plane#getRowStride() uPlane.getRowStride() == android.media.Image.Plane#getRowStride() vPlane.getRowStride() and android.media.Image.Plane#getPixelStride() uPlane.getPixelStride() == android.media.Image.Plane#getPixelStride() vPlane.getPixelStride(); ).

For example, the android.media.Image object can provide data in this format from a android.media.MediaCodec through android.media.MediaCodec#getOutputImage object.

Java documentation for android.graphics.ImageFormat.YUV_422_888.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to