Android.Graphics.ImageFormat.Yuy2 Field
YCbCr format used for images, which uses YUYV (YUY2) encoding format.

Value: 20

Syntax

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

Remarks

YCbCr format used for images, which uses YUYV (YUY2) encoding format.

For the Android.Hardware.Camera2 API, the ImageFormat.Yuv420888 format is recommended for YUV output instead.

This is an alternative format for Android.Hardware.Camera preview images. Whether this format is supported by the camera hardware can be determined by NoType:android/hardware/Camera$Parameters;Href=../../../reference/android/hardware/Camera.Parameters.html#getSupportedPreviewFormats().

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8