MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Data Fields
_DrmSurfaceBuffer Struct Reference

#include <exstubs.h>

Data Fields

uint32_t handle
 
int prime_fd
 
uint32_t name
 
uint32_t fb_id
 
uint32_t drm_format
 
uint32_t bpp:8
 
uint32_t cpp:8
 
uint32_t dumb:1
 
uint32_t scanout:1
 
uint32_t width
 
uint32_t height
 
uint32_t pitch
 
size_t size
 
off_t offset
 
uint8_t * buff
 

Detailed Description

The structure type represents the buffer can be used by MiniGUI NEWGAL DRM engine for a hardware surface.

Definition at line 98 of file exstubs.h.

Field Documentation

◆ bpp

uint32_t bpp

The bits per pixel

Definition at line 125 of file exstubs.h.

◆ buff

uint8_t* buff

The mapped address of the buffer; NULL when the buffer is not mapped yet.

The address of the pixel data: uint8_t* pixels = this->buff + this->offset;

Definition at line 157 of file exstubs.h.

◆ cpp

uint32_t cpp

The bytes per pixel

Definition at line 127 of file exstubs.h.

◆ drm_format

uint32_t drm_format

The DRM format of the buffer.

Definition at line 123 of file exstubs.h.

◆ dumb

uint32_t dumb

Is it a dumb buffer. Since 5.0.0.

Definition at line 129 of file exstubs.h.

◆ fb_id

uint32_t fb_id

The frame buffer identifier if the buffer has been added as a frame buffer to the system, otherwise it has the value 0.

Definition at line 120 of file exstubs.h.

◆ handle

uint32_t handle

The local handle of the buffer

Definition at line 100 of file exstubs.h.

◆ height

uint32_t height

The height of the buffer.

Definition at line 136 of file exstubs.h.

◆ name

uint32_t name

The global name of the buffer. It has value > 0 when this buffer has a global name; otherwise it has the value 0;

Definition at line 114 of file exstubs.h.

◆ offset

off_t offset

The offset from the buffer start to the real pixel data in bytes. It must be equal to or larger than the size of the buffer header. Since 5.0.0.

Definition at line 148 of file exstubs.h.

◆ pitch

uint32_t pitch

The pitch (row stride in bytes) of the buffer.

Definition at line 138 of file exstubs.h.

◆ prime_fd

int prime_fd

The prime file descriptor of the buffer. It has a value >= 0 when this buffer has a prime file descriptor; otherwise it has the value -1;

Definition at line 107 of file exstubs.h.

◆ scanout

uint32_t scanout

Is it a scanout buffer. Since 5.0.0.

Definition at line 131 of file exstubs.h.

◆ size

size_t size

The whole size in bytes of the buffer

Definition at line 141 of file exstubs.h.

◆ width

uint32_t width

The width of the buffer.

Definition at line 134 of file exstubs.h.


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