Language

HardwareBufferFormat Enum

Definition

public enum HardwareBufferFormat
type HardwareBufferFormat = 
Inheritance
HardwareBufferFormat

Fields

Name Value Description
Rgba8888 1
Rgbx8888 2

Format: 8 bits each red, green, blue, alpha, alpha is always 0xFF

Android reference for android.hardware.HardwareBuffer.RGBX_8888.

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.

Rgb888 3

Format: 8 bits each red, green, blue, no alpha

Android reference for android.hardware.HardwareBuffer.RGB_888.

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.

Rgb565 4

Format: 5 bits each red and blue, 6 bits green, no alpha

Android reference for android.hardware.HardwareBuffer.RGB_565.

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.

RgbaFp16 22

Format: 16 bits each red, green, blue, alpha

Android reference for android.hardware.HardwareBuffer.RGBA_FP16.

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.

Blob 33

Format: opaque format used for raw data transfer; must have a height of 1

Android reference for android.hardware.HardwareBuffer.BLOB.

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.

Ycbcr420888 35

Format: Planar YCbCr 420; must have an even width and height

Android reference for android.hardware.HardwareBuffer.YCBCR_420_888.

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.

Rgba1010102 43

Format: 10 bits each red, green, blue, 2 bits alpha

Android reference for android.hardware.HardwareBuffer.RGBA_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.

D16 48

Format: 16 bits depth

Android reference for android.hardware.HardwareBuffer.D_16.

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.

D24 49

Format: 24 bits depth

Android reference for android.hardware.HardwareBuffer.D_24.

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.

Ds24ui8 50

Format: 24 bits depth, 8 bits stencil

Android reference for android.hardware.HardwareBuffer.DS_24UI8.

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.

DFp32 51

Format: 32 bits depth

Android reference for android.hardware.HardwareBuffer.D_FP32.

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.

DsFp32ui8 52

Format: 32 bits depth, 8 bits stencil

Android reference for android.hardware.HardwareBuffer.DS_FP32UI8.

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.

SUi8 53

Format: 8 bits stencil

Android reference for android.hardware.HardwareBuffer.S_UI8.

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.

YcbcrP010 54

Android YUV P010 format.

Android reference for android.hardware.HardwareBuffer.YCBCR_P010.

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.

R8 56

Format: 8 bits red

Android reference for android.hardware.HardwareBuffer.R_8.

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.

R16 57

Format: 16 bits red. When sampled on the GPU this is represented as an unsigned integer instead of implicit unsigned normalize. For more information see https://www.khronos.org/opengl/wiki/Normalized_Integer

Android reference for android.hardware.HardwareBuffer.R_16.

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.

Rg1616 58

Format: 16 bits each red, green. When sampled on the GPU this is represented as an unsigned integer instead of implicit unsigned normalize. For more information see https://www.khronos.org/opengl/wiki/Normalized_Integer

Android reference for android.hardware.HardwareBuffer.RG_1616.

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.

Rgba10101010 59

Format: 10 bits each red, green, blue, alpha

Android reference for android.hardware.HardwareBuffer.RGBA_10101010.

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.

YcbcrP210 60

Android YUV P210 format.

Android reference for android.hardware.HardwareBuffer.YCBCR_P210.

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.

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