ImageFormat.Yuv420888 Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Multi-plane Android YUV 420 format
[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.", true)]
public const Android.Graphics.ImageFormatType Yuv420888 = 35;
[<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.", true)>]
val mutable Yuv420888 : Android.Graphics.ImageFormatType
Field Value
Value = 35- Attributes
Remarks
Multi-plane Android YUV 420 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() 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 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.hardware.camera2.CameraDevice
through a android.media.ImageReader
object.
Java documentation for android.graphics.ImageFormat.YUV_420_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.