|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <android.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| uint32_t | buffer_count |
| uint64_t | usage |
A ring of Android hardware buffers that the library allocates, for mln_map_attach_android_hardware_buffer_ring().
Each buffer has the map's size in pixels, logical_size times the map's scale factor, and the format AHARDWAREBUFFER_FORMAT_R8G8B8A8_UNORM. Its usage is AHARDWAREBUFFER_USAGE_GPU_COLOR_OUTPUT, AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE, and the bits of usage.
| uint32_t mln_android_hardware_buffer_ring_descriptor::buffer_count |
How many buffers the ring has, from 1 to 8.
| mln_logical_size mln_android_hardware_buffer_ring_descriptor::logical_size |
| uint32_t mln_android_hardware_buffer_ring_descriptor::size |
| uint64_t mln_android_hardware_buffer_ring_descriptor::usage |
More AHARDWAREBUFFER_USAGE_* bits that your reads need, such as AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, or zero.