MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_android_hardware_buffer_ring_descriptor Struct Reference

#include <android.h>

Data Fields

uint32_t size
mln_logical_size logical_size
uint32_t buffer_count
uint64_t usage

Detailed Description

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.

Field Documentation

◆ buffer_count

uint32_t mln_android_hardware_buffer_ring_descriptor::buffer_count

How many buffers the ring has, from 1 to 8.

◆ logical_size

mln_logical_size mln_android_hardware_buffer_ring_descriptor::logical_size

◆ size

uint32_t mln_android_hardware_buffer_ring_descriptor::size

◆ usage

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.


The documentation for this struct was generated from the following file: