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 位)。 前四个字节包含前 4 个像素中最重要的 8 位。 最后三个字节包含四个像素中 6 个最小有效位,一个接一个,下面显示了每个四个连续像素的确切布局数据(Pi[j] 代表 ith 像素的 jth 位):
bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0
Byte 0: P0[13] P0[12] P0[11] P0[10] P0[ 9] P0[ 8] P0[ 7] P0[ 6]
Byte 1: P1[13] P1[12] P1[11] P1[10] P1[ 9] P1[ 8] P1[ 7] P1[ 6]
Byte 2: P2[13] P2[12] P2[11] P2[10] P2[ 9] P2[ 8] P2[ 7] P2[ 6]
Byte 3: P3[13] P3[12] P3[11] P3[10] P3[ 9] P3[ 8] P3[ 7] P3[ 6]
Byte 4: P1[ 1] P1[ 0] P0[ 5] P0[ 4] P0[ 3] P0[ 2] P0[ 1] P0[ 0]
Byte 5: P2[ 3] P2[ 2] P2[ 1] P2[ 0] P1[ 5] P1[ 4] P1[ 3] P1[ 2]
Byte 6: P3[ 5] P3[ 4] P3[ 3] P3[ 2] P3[ 1] P3[ 0] P2[ 5] P2[ 4]
此格式假定宽度为 4 像素,偶数高度。
size = row stride * height
其中行步幅以字节为单位,而不是像素。
由于这是一种密集打包的格式,因此像素步幅始终为 0。 应用程序必须使用上表中定义的像素数据布局来访问每行数据。 当行步幅等于宽度 * (14 /8),则每行末尾不会有填充字节,整个图像数据将密集打包。 当步幅大于宽度 * (14 / 8),填充字节将出现在每行的末尾。
例如,Image 对象可以通过 ImageReader 对象从 CameraDevice(如果受支持)提供此格式的数据。 Image#getPlanes() 将返回包含像素数据的单个平面。 像素步幅始终为 Image.Plane.getPixelStride(),Image.Plane.getRowStride()描述了相邻行之间的垂直相邻像素距离(以字节为单位)。
Android 参考。android.graphics.ImageFormat.RAW14
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。