ImageFormat.Yuv420888 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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() 的平面順序是保證的,使得平面 #0 總是 Y,平面 #1 總是 U(Cb),平面 #2 總是 V(Cr)。
Y平面保證不會與U/V平面交錯(特別是像素步幅總是1 in )。android.media.Image.Plane#getPixelStride() yPlane.getPixelStride()
U/V 平面保證具有相同的行步幅與像素步幅(特別是 android.media.Image.Plane#getRowStride() uPlane.getRowStride() == android.media.Image.Plane#getRowStride() vPlane.getRowStride()android.media.Image.Plane#getPixelStride() uPlane.getPixelStride() == android.media.Image.Plane#getPixelStride() vPlane.getPixelStride();)。
例如, android.media.Image 物件可以從 a android.hardware.camera2.CameraDevice 到物件 android.media.ImageReader 提供此格式的資料。
Java 文件 android.graphics.ImageFormat.YUV_420_888。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。