SRM  v0.10.0-1
Simple Rendering Manager
SRMBufferDMAData Struct Reference

Structure holding DMA planes data for an SRMBuffer. More...

#include <SRMBuffer.h>

Data Fields

UInt32 width
 
UInt32 height
 
UInt32 format
 
UInt32 num_fds
 
Int32 fds [4]
 
UInt32 strides [4]
 
UInt32 offsets [4]
 
UInt64 modifiers [4]
 

Detailed Description

Structure holding DMA planes data for an SRMBuffer.

Use this structure to create SRM buffers from DMA planes data using the srmBufferCreateFromDMA() function.

Note
It's important to clarify that DMA planes are distinct from DRM planes (SRMPlane). Be cautious not to conflate these concepts.

Field Documentation

◆ width

UInt32 SRMBufferDMAData::width

Width of the buffer.

◆ height

UInt32 SRMBufferDMAData::height

Height of the buffer.

◆ format

UInt32 SRMBufferDMAData::format

Format of the buffer.

◆ num_fds

UInt32 SRMBufferDMAData::num_fds

Number of file descriptors (FDs) associated with the buffer.

◆ fds

Int32 SRMBufferDMAData::fds[4]

Array of FDs associated with the buffer's planes.

◆ strides

UInt32 SRMBufferDMAData::strides[4]

Array of stride values for each plane of the buffer.

◆ offsets

UInt32 SRMBufferDMAData::offsets[4]

Array of offset values for each plane of the buffer.

◆ modifiers

UInt64 SRMBufferDMAData::modifiers[4]

Array of modifier values for each plane of the buffer.