AHardwareBuffer_Desc

#include <hardware_buffer.h>

Buffer description.

Summary

Used for allocating new buffers and querying parameters of existing ones.

Public attributes

format
uint32_t
One of AHARDWAREBUFFER_FORMAT_*.
height
uint32_t
Height in pixels.
layers
uint32_t
Number of images in an image array.
rfu0
uint32_t
Initialize to zero, reserved for future use.
rfu1
uint64_t
Initialize to zero, reserved for future use.
stride
uint32_t
Row stride in pixels, ignored for AHardwareBuffer_allocate()
usage
uint64_t
Combination of AHARDWAREBUFFER_USAGE_*.
width
uint32_t
Width in pixels.

Public attributes

format

uint32_t AHardwareBuffer_Desc::format

One of AHARDWAREBUFFER_FORMAT_*.

height

uint32_t AHardwareBuffer_Desc::height

Height in pixels.

layers

uint32_t AHardwareBuffer_Desc::layers

Number of images in an image array.

rfu0

uint32_t AHardwareBuffer_Desc::rfu0

Initialize to zero, reserved for future use.

rfu1

uint64_t AHardwareBuffer_Desc::rfu1

Initialize to zero, reserved for future use.

stride

uint32_t AHardwareBuffer_Desc::stride

Row stride in pixels, ignored for AHardwareBuffer_allocate()

usage

uint64_t AHardwareBuffer_Desc::usage

Combination of AHARDWAREBUFFER_USAGE_*.

width

uint32_t AHardwareBuffer_Desc::width

Width in pixels.