语言

ImageFormat.Yuy2 字段

定义

注意

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

用于图像的 YCbCr 格式,它使用 YUYV (YUY2) 编码格式。

[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.", true)]
public const Android.Graphics.ImageFormatType Yuy2 = 20;
[<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.", true)>]
val mutable Yuy2 : Android.Graphics.ImageFormatType

字段值

Value = 20
特性

注解

用于图像的 YCbCr 格式,它使用 YUYV (YUY2) 编码格式。

android.hardware.camera2对于 API,#YUV_420_888建议改用 YUV 输出的格式。

这是预览图像的 android.hardware.Camera 替代格式。 相机硬件是否支持此格式。android.hardware.Camera.Parameters#getSupportedPreviewFormats()

Java文档android.graphics.ImageFormat.YUY2。

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

适用于