ImageFormat.Y8 Field

Definition

Caution

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

Android Y8 format.

[Android.Runtime.Register("Y8", ApiSince=29)]
[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 Y8 = 538982489;
[<Android.Runtime.Register("Y8", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Y8 : Android.Graphics.ImageFormatType

Field Value

Value = 538982489
Attributes

Remarks

Android Y8 format.

Y8 is a YUV planar format comprised of a WxH Y plane only, with each pixel being represented by 8 bits. It is equivalent to just the Y plane from #YV12 format.

This format assumes <ul> <li>an even width</li> <li>an even height</li> <li>a horizontal stride multiple of 16 pixels</li> </ul>

size = stride * height

For example, the android.media.Image object can provide data in this format from a android.hardware.camera2.CameraDevice (if supported) through a android.media.ImageReader object. The android.media.Image#getPlanes() Image#getPlanes() will return a single plane containing the pixel data. The pixel stride is always 1 in android.media.Image.Plane#getPixelStride(), and the android.media.Image.Plane#getRowStride() describes the vertical neighboring pixel distance (in bytes) between adjacent rows.

Java documentation for android.graphics.ImageFormat.Y8.

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