|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <linux.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| uint32_t | buffer_count |
| const mln_dma_buf_format * | formats |
| size_t | format_count |
A ring of dmabufs that the library allocates, for mln_map_attach_dma_buf_ring().
Each buffer has the map's size in pixels and a format and modifier from formats. The library renders only DRM_FORMAT_ABGR8888 and DRM_FORMAT_ARGB8888. A modifier can give a buffer more planes than its format has, such as a plane of compression metadata, and the library takes any such modifier that its GPU can render into and share.
| uint32_t mln_dma_buf_ring_descriptor::buffer_count |
How many buffers the ring has, from 1 to 8.
| size_t mln_dma_buf_ring_descriptor::format_count |
| const mln_dma_buf_format* mln_dma_buf_ring_descriptor::formats |
The formats and modifiers that your reader imports, most preferred first, such as those that eglQueryDmaBufModifiersEXT() reports.
| mln_logical_size mln_dma_buf_ring_descriptor::logical_size |
| uint32_t mln_dma_buf_ring_descriptor::size |