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

#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

Detailed Description

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.

Field Documentation

◆ buffer_count

uint32_t mln_dma_buf_ring_descriptor::buffer_count

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

◆ format_count

size_t mln_dma_buf_ring_descriptor::format_count

◆ formats

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.

◆ logical_size

mln_logical_size mln_dma_buf_ring_descriptor::logical_size

◆ size

uint32_t mln_dma_buf_ring_descriptor::size

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