Crate hardware_buffer

Source
Expand description

HB is an exposed singleton that dynamically loads libandroid.so on first access, reads the API version (accessible as HBHolder::api_level) and provides safe wrappers for the functions.

HBRef is a reference-counted AHardwareBuffer pointer.

All other types are generated from the NDK’s hardware_buffer.h and dependent header files.

Structs§

AHardwareBuffer
AHardwareBufferDesc
Buffer description. Used for allocating new buffers and querying parameters of existing ones.
AHardwareBufferFormat
Buffer pixel formats.
AHardwareBufferPlane
Holds data for a single image plane.
AHardwareBufferPlanes
Holds all image planes that contain the pixel data.
AHardwareBufferUsageFlags
Buffer usage flags, specifying how the buffer will be accessed.
ARect
Rectangular window area.
HB
Singleton that holds the loaded libandroid functions and provides wrappers.
HBHolder
Type of the singleton that holds the loaded libandroid functions
HBRef
A reference-counting pointer to an AHardwareBuffer.
LockInfo
Container for a mapped AHardwareBuffer and additional information.