ImageFormat.Yuv420888 字段

定义

注意

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

多平面 Android YUV 420 格式

[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

字段值

Value = 35
属性

注解

多平面 Android YUV 420 格式

此格式是一种通用的 YCbCr 格式,能够描述任何 4:2:0 色度子采样平面或半平面缓冲区(但不完全交错),每个颜色样本有 8 位。

此格式的图像始终由三个单独的数据缓冲区表示,每个颜色平面各有一个。 其他信息始终伴随缓冲区,描述每个平面的行步幅和像素步幅。

保证返回 android.media.Image#getPlanes() Image#getPlanes() 的数组中的平面顺序始终为 Y,平面 #1 始终为 U (Cb),平面 #2 始终为 V (Cr)。

保证 Y 平面不会与 U/V 平面交错(特别是像素步幅始终为 1 个)。android.media.Image.Plane#getPixelStride() yPlane.getPixelStride()

U/V 平面可以保证具有相同的行步长和像素步幅(特别是;android.media.Image.Plane#getRowStride() uPlane.getRowStride())。android.media.Image.Plane#getPixelStride() uPlane.getPixelStride() == android.media.Image.Plane#getPixelStride() vPlane.getPixelStride() == android.media.Image.Plane#getRowStride() vPlane.getRowStride()

例如,该android.media.Image对象可以通过对象提供此格式android.hardware.camera2.CameraDeviceandroid.media.ImageReader的数据。

适用于 . 的 android.graphics.ImageFormat.YUV_420_888Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅