ImageFormat.Raw10 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.
Android 10 位元原始格式
[Android.Runtime.Register("RAW10")]
[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 Raw10 = 37;
[<Android.Runtime.Register("RAW10")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable Raw10 : Android.Graphics.ImageFormatType
欄位值
Value = 37- 屬性
備註
Android 10 位元原始格式
這是一種單平面、每像素 10 位元、密集填充(每列)未處理的格式,通常代表來自影像感測器的原始拜耳圖案影像。
在此格式的影像緩衝區中,從每列的第一個像素開始,將連續的4個像素打包成5個位元組(40位元)。 前四個位元組中的每個位元組包含每個像素的前8位元,第五位元組包含4個像素中最低有效2位元,每個連續4個像素的精確佈局資料如下所示(Pi[j] 代表第i個像素的第j位元):
<表格>thead><tr<>th align=“Center”></th><th align=“Center”bit> 7</th><align=“Center” bit 6/th th align=“center”> bit 6</th<>th align=“center”> bit 5</th<>th align=“center” bit 4</th th align=“center”> bit 4/th><th align=“center”> bit 3</th<>th align=“center”> bit 2</th<>對齊=“center” bit 1</th><th align=“center”>> bit 0</th><</tr></thead tbody><tr><td align=“center”>Byte 0:</td<>td align=“center”>P0[9]</td<>td align=“center”P0[8]/td td align=“center”>P0[8]</td<>td align=“center”>P0[7]</td<>td align=“center”>P0[6]</td<>td align=“center”>P0[5]</td><td align=“center”>P0[4]</td<>td align=“center”P0[3]</td<>td align=“Center”>><>P0[2]</td<>/tr<>tr td><align=“center”>Byte 1:</td<>td align=“center”P1>[9]</td<>td align=“center”P1>[8]</td><td align=“center”P1[7]/td td align=“center”>P1[7]</td<>td align=“center”>P1[6]</td<>td align=“center”>P1[5]</td><td align=“center”>P1[4]</td><td align=“center”>P1[3]</結束><td align=“center”>P1[2]</td<>/tr<>tr td<>align=“center”>Byte 2:</td><td align=“center”>P2[9]</td<>td align=“center”P2[8]</td<>td align=“center”>>P2[7]</td<>td align=“center”>P2[6]</td<>td align=“center”>P2[5]</td<>td align=“center”>P2[4]</td align><td align=“center”>P2[3]</td td><align=“center”>P2[2]</td></tr<>tr td><align=“center”>Byte 3:</td<>td align=“center”>P3[9]</td<>td align=“center”>P3[8]</td><td align=“center”P3[7]</td><td align=“center”>P3[6]/td td align=“center”>P3[6]</td<>td align=“center”>P3[5]</td><td align=“中心”>P3[4]</td td<>對齊=“中心”>P3[3]</td><td align=“center”>P3[2]</td></tr><tr td><align=“center”>Byte 4:</td><td align=“center”>P3[1]</td<>td align=“center”>P3[0]</td<>td align=“center”P2[1]/td td align=“center”>P2[1]</td<>td align=“center”>P2[0]</td><td align=“center”P1>[1]</td td><align=“center”>P1[0]</td><td align=“center”>P0[1]</td<>td align=“center”>P0[0]</td<>/tr<>/tbody></table>
此格式假設 ul>li 寬度為 4 像素<的><倍數,li li an>高度為><偶數<><<>
size = row stride * height
其中列步幅是以 em>bytes</em> 為<單位,而非像素。
由於這是一個密集的格式,像素步幅總是為 0。 應用程式必須使用上述表格中定義的像素資料配置來存取每一列資料。 當列步幅等於 width * (10 / 8)時,每列末尾不會有填充位元組,整個影像資料是密集填充的。 當步幅大於 width * (10 / 8)時,每列末尾會有填充位元組。
例如,android.media.Image物件可以從(若支援)透過物件android.media.ImageReader提供此格式android.hardware.camera2.CameraDevice的資料。 會 android.media.Image#getPlanes() Image#getPlanes() 回傳一個包含像素資料的單一平面。 像素 android.media.Image.Plane#getPixelStride()步幅在 中總是為 0,且描述 android.media.Image.Plane#getRowStride() 相鄰列間垂直相鄰像素距離(以位元組為單位)。
Java 文件 android.graphics.ImageFormat.RAW10。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。