ImageFormat.Nv21 Field

Definition

Caution

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

YCrCb format used for images, which uses the NV21 encoding format.

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

Field Value

Value = 17
Attributes

Remarks

YCrCb format used for images, which uses the NV21 encoding format.

This is the default format for android.hardware.Camera preview images, when not otherwise set with android.hardware.Camera.Parameters#setPreviewFormat(int).

For the android.hardware.camera2 API, the #YUV_420_888 format is recommended for YUV output instead.

Java documentation for android.graphics.ImageFormat.NV21.

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