ImageFormat.Raw14 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Android 14 位元 原始格式
[Android.Runtime.Register("RAW14", ApiSince=37)]
[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 Raw14 = 44;
[<Android.Runtime.Register("RAW14", ApiSince=37)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Raw14 : Android.Graphics.ImageFormatType
欄位值
Value = 44- 屬性
備註
Android 14 位元 原始格式
這是一種單平面、每像素 14 位元、密集填充(每列)未處理的格式,通常代表來自影像感測器的原始拜耳圖案影像。
在此格式的影像緩衝區中,從每列的第一個像素開始,將四個連續像素打包成7個位元組(56位元)。 前四個位元組包含前四個像素中最重要的 8 位元。
此格式假設寬度為 4 像素的倍數;高度均勻
size = row stride * height
由於這是一個密集的格式,像素步幅總是為 0。 應用程式必須使用上述表格中定義的像素資料配置來存取每一列資料。 當列步幅等於寬度 * (14 / 8) 時,每列末尾不會有填充位元組,整個影像資料是密集填充的。 當步幅大於寬度 * (14 / 8) 時,每列末端會有填充位元組。
例如,影像物件可以透過 ImageReader 物件從 CameraDevice(若支援)提供此格式的資料。 Image#getPlanes() 會回傳一個包含像素資料的平面。 在 Image.Plane.getPixelStride() 中,像素步幅始終為 0,而 Image.Plane.getRowStride() 描述相鄰列間垂直相鄰像素距離(以位元組為單位)。
Android 參考資料。android.graphics.ImageFormat.RAW14
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。