3 releases
0.1.2 | Mar 24, 2024 |
---|---|
0.1.1 | Mar 24, 2024 |
0.1.0 | Mar 24, 2024 |
#422 in Operating systems
23KB
352 lines
hardware-buffer-rs
Bindings for libandroid.so's AHardwareBuffer functions.
Provided are safe wrappers for the functions and a reference-counting AHardwareBuffer smart pointer.
Visit the Android documentation for details about the functions.
lib.rs
:
[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.
Dependencies
~0.1–2.1MB
~41K SLoC