Język

HardwareBufferFormat Enum

Definition

public enum HardwareBufferFormat
type HardwareBufferFormat = 
Inheritance
HardwareBufferFormat

Fields

Name Value Description
Rgba8888 1
Rgbx8888 2
Rgb888 3
Rgb565 4
RgbaFp16 22
Blob 33
Ycbcr420888 35
Rgba1010102 43
D16 48
D24 49
Ds24ui8 50
DFp32 51
DsFp32ui8 52
SUi8 53
YcbcrP010 54
R8 56
R16 57
Rg1616 58
Rgba10101010 59
YcbcrP210 60
R12 61

16 bit format with a single 12-bit component. The format is 16 bits unsigned integer that has 12 bits of R component in the top 12 bits of the 16-bit word with the bottom 4 bits unused.

Android reference for android.hardware.HardwareBuffer.R_12.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

R14 62

16 bit format with a single 14-bit component. The format is 16-bit unsigned integer that has 14 bits of R component in the top 14 bits of the 16-bit word with the bottom 2 bits unused.

Android reference for android.hardware.HardwareBuffer.R_14.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Rg1212 63

32-bit format that has 12-bit R and G components, in that order, from the lowest memory address to the highest memory address. The format is 32-bit unsigned integer that has a 12-bit R component in the top 12 bits of the word in bytes 0..1, and a 12-bit G component in the top 12 bits of the word in bytes 2..3, with the bottom 4 bits of each word unused.

Android reference for android.hardware.HardwareBuffer.RG_1212.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Rg1414 64

32-bit format that has 14-bit R and G components, in that order, from the lowest memory address to the highest memory address. The format is 32-bit unsigned integer that has a 14-bit R component in the top 14 bits of the word in bytes 0..1, and a 14-bit G component in the top 14 bits of the word in bytes 2..3, with the bottom 2 bits of each word unused.

Android reference for android.hardware.HardwareBuffer.RG_1414.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Rgba12121212 65

64-bit format that has 12-bit R, G, B, and A components, in that order, from the lowest memory address to the highest memory address. The format is 64-bit unsigned integer that has a 12-bit R component in the top 12 bits of the word in bytes 0..1, a 12-bit G component in the top 12 bits of the word in bytes 2..3, a 12-bit B component in the top 12 bits of the word in bytes 4..5, and a 12-bit A component in the top 12 bits of the word in bytes 6..7, with the bottom 4 bits of each word unused.

Android reference for android.hardware.HardwareBuffer.RGBA_12121212.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Rgba14141414 66

64-bit format that has 14-bit R, G, B, and A components, in that order, from the lowest memory address to the highest memory address. The format is 64-bit unsigned integer that has a 14-bit R component in the top 14 bits of the word in bytes 0..1, a 14-bit G component in the top 14 bits of the word in bytes 2..3, a 14-bit B component in the top 14 bits of the word in bytes 4..5, and a 14-bit A component in the top 14 bits of the word in bytes 6..7, with the bottom 2 bits of each word unused.

Android reference for android.hardware.HardwareBuffer.RGBA_14141414.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Bgra1010102 67

32-bit packed format that has 2-bit A, 10-bit R, G, and B components, in that order, from the most-significant bits to the least-significant bits. The component values are unsigned normalized to the range [0, 1], whose interpretation is defined by the dataspace.

Android reference for android.hardware.HardwareBuffer.BGRA_1010102.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Bgrx1010102 68

32-bit packed format that has 2-bit unused, 10-bit R, G, and B components, in that order, from the most-significant bits to the least-significant bits. The component values are unsigned normalized to the range [0, 1], whose interpretation is defined by the dataspace.

Android reference for android.hardware.HardwareBuffer.BGRX_1010102.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to