語言

ImageFormat.Nv21 欄位

定義

警告

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

用於影像的 YCrCb 格式,該格式使用 NV21 編碼格式。

[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

欄位值

Value = 17
屬性

備註

用於影像的 YCrCb 格式,該格式使用 NV21 編碼格式。

這是預覽影像的預設格式android.hardware.Camera,除非另有設定。android.hardware.Camera.Parameters#setPreviewFormat(int)

對於 android.hardware.camera2 API 來說,建議將此 #YUV_420_888 格式用於 YUV 輸出。

Java 文件 android.graphics.ImageFormat.NV21。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於