AHardwareBuffer_Desc

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

version(Android)
extern (C) @system nothrow @nogc
struct AHardwareBuffer_Desc {}

Members

Variables

format
uint format;

< One of AHARDWAREBUFFER_FORMAT_*

height
uint height;

< Height in pixels.

layers
uint layers;

< Number of images in an image array.

rfu0
uint rfu0;

< Initialize to zero, reserved for future use.

rfu1
ulong rfu1;

< Initialize to zero, reserved for future use.

stride
uint stride;

< Row stride in pixels, ignored for AHardwareBuffer_allocate()

usage
ulong usage;

< Combination of AHARDWAREBUFFER_USAGE_*

width
uint width;

< Width in pixels.

Meta