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 位)。 前 4 个字节中的每一个字节都包含每个像素的前 8 位,第五个字节包含 4 个像素的 2 个最小有效位,下面显示了每个 4 个连续像素的确切布局数据(Pi[j] 表示 ith 像素的 jth 位):
<table><thead><tr><th align=“center”/><th align=“center”>><bit 7</<>th align=“center”>bit 6</><th align=“center”>bit 5</th><align=“center”>bit 4<></th align=“center”>bit 3</><th align=“center>”bit 2</<>th align=“center>”bit 1</<>th align=“center”>bit 0</th></tr></thead><tbody><><td align=“center”>Byte 0:</td><td td align=“center”>P0[9]</td td><align=“center”>P0[8]</td td><align=“center”>P0[7]</td td<>td align=“center”>P0[6]</td td><align=“center”>P0[5]</td<>align=“center”>P0[4]</td<>td align=“center”>P0[3]</td><td align=“center”>P0[2]</td/tr<>td>><< align=“center”>Byte 1:</td<>td td align=“center”>P1[9]</td<>td align=“center”>P1[8]</td<>td td align=“center”>P1[7]</td><td td align=“center”>P1[6]</td><td align=“center”>P1[5]</td><align=“center”>P1[4]</td td><align=“center”>P1[3]</td><td align=“center”>P1[2]</td/tr<>><td<> align=“center”>Byte 2:</td><td td align=“center”>P2[9]</td<>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 td align=“center”>P2[4]</td><td align=“center”>P2[3]</td td<>align=“center”>P2[2]</td></tr<>><td align=“center”>Byte 3:</td<>td td align=“center”>P3[9]</td><td align=“center”>P3[8]</td td><align=“center”>P3[7]</td td td<>align=“center”>P3[6]</td><td td align=“center”>P3[5]</td><td align=“center”>P3[4]</td td<>align=“center”>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 td<>align=“center”>P2[1]</td><td td align=“center”>P2[0]</td><td align=“center”>P1[1]</td td><align=“center”>P1[0]</td td td<>align=“center”>P0[1]</td><td td align=“center”>P0[0]</td></tr></tbody></table>
此格式假定 <ul><li>的宽度倍数为 4 像素</li><>a 偶高</li></ul>
size = row stride * height
其中行步幅以 字节为单位,而不是像素。
由于这是一种密集打包的格式,因此像素步幅始终为 0。 应用程序必须使用上表中定义的像素数据布局来访问每行数据。 当行步幅等于 width * (10 / 8)时,每行末尾不会有填充字节,整个图像数据会密集打包。 当步幅大于 width * (10 / 8)时,填充字节将出现在每一行的末尾。
例如,该 android.media.Image 对象可以通过对象提供此格式 android.hardware.camera2.CameraDevice 的数据(如果受支持 android.media.ImageReader )。 这将 android.media.Image#getPlanes() Image#getPlanes() 返回包含像素数据的单个平面。 像素步幅始终为 0, android.media.Image.Plane#getPixelStride()描述 android.media.Image.Plane#getRowStride() 相邻行之间的垂直相邻像素距离(以字节为单位)。
Java文档android.graphics.ImageFormat.RAW10。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。