anbox-platform-sdk  1.23.0
Anbox Platform SDK API documentation
AnboxGraphicsBuffer2 Struct Reference

Graphics buffer. More...

#include <types.h>

+ Collaboration diagram for AnboxGraphicsBuffer2:

Public Attributes

uint32_t width
 
uint32_t height
 
uint32_t format
 
uint64_t modifier
 
uint8_t num_planes
 
AnboxNativeHandle handle [ANBOX_GRAPHICS_BUFFER_MAX_PLANES]
 
uint32_t stride [ANBOX_GRAPHICS_BUFFER_MAX_PLANES]
 
uint32_t offset [ANBOX_GRAPHICS_BUFFER_MAX_PLANES]
 

Detailed Description

Graphics buffer.

Definition at line 292 of file types.h.

Member Data Documentation

◆ format

uint32_t AnboxGraphicsBuffer2::format

DRM color format of the buffer. See drm/drm_fourcc.h for a list of valid formats

Definition at line 298 of file types.h.

◆ handle

AnboxNativeHandle AnboxGraphicsBuffer2::handle[ANBOX_GRAPHICS_BUFFER_MAX_PLANES]

Native handle for a plane of the buffer

Definition at line 304 of file types.h.

◆ height

uint32_t AnboxGraphicsBuffer2::height

Height of the buffer

Definition at line 296 of file types.h.

◆ modifier

uint64_t AnboxGraphicsBuffer2::modifier

GPU driver specific modifier describing the memory layout of the buffer

Definition at line 300 of file types.h.

◆ num_planes

uint8_t AnboxGraphicsBuffer2::num_planes

Number of planes the buffer has

Definition at line 302 of file types.h.

◆ offset

uint32_t AnboxGraphicsBuffer2::offset[ANBOX_GRAPHICS_BUFFER_MAX_PLANES]

Offset inside the memory handle for the plane

Definition at line 308 of file types.h.

◆ stride

uint32_t AnboxGraphicsBuffer2::stride[ANBOX_GRAPHICS_BUFFER_MAX_PLANES]

Stride of a specific plane in the buffer in bytes

Definition at line 306 of file types.h.

◆ width

uint32_t AnboxGraphicsBuffer2::width

Width of the buffer

Definition at line 294 of file types.h.


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