Functions
Drm framebuffer functions

Functions that deal with setup of framebuffers. More...

Functions

EAPI Ecore_Drm2_Fb * ecore_drm2_fb_create (int fd, int width, int height, int depth, int bpp, unsigned int format)
 Create a new framebuffer object. More...
 
EAPI void ecore_drm2_fb_destroy (Ecore_Drm2_Fb *fb)
 Destroy a framebuffer object. More...
 
EAPI void * ecore_drm2_fb_data_get (Ecore_Drm2_Fb *fb)
 Get a framebuffer's mmap'd data. More...
 
EAPI unsigned int ecore_drm2_fb_size_get (Ecore_Drm2_Fb *fb)
 Get a framebuffer's size. More...
 
EAPI unsigned int ecore_drm2_fb_stride_get (Ecore_Drm2_Fb *fb)
 Get a framebuffer's stride. More...
 
EAPI void ecore_drm2_fb_dirty (Ecore_Drm2_Fb *fb, Eina_Rectangle *rects, unsigned int count)
 Mark regions of a framebuffer as dirty. More...
 
EAPI int ecore_drm2_fb_flip (Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output, void *data)
 Schedule a pageflip to the given Ecore_Drm2_Fb. More...
 

Detailed Description

Functions that deal with setup of framebuffers.

Function Documentation

◆ ecore_drm2_fb_create()

EAPI Ecore_Drm2_Fb* ecore_drm2_fb_create ( int  fd,
int  width,
int  height,
int  depth,
int  bpp,
unsigned int  format 
)

Create a new framebuffer object.

Parameters
fd
width
height
depth
bpp
format
Returns
A newly create framebuffer object, or NULL on failure
Since
1.18

◆ ecore_drm2_fb_destroy()

EAPI void ecore_drm2_fb_destroy ( Ecore_Drm2_Fb *  fb)

Destroy a framebuffer object.

Parameters
fb
Since
1.18

◆ ecore_drm2_fb_data_get()

EAPI void* ecore_drm2_fb_data_get ( Ecore_Drm2_Fb *  fb)

Get a framebuffer's mmap'd data.

Parameters
fb
Returns
The mmap'd area of the framebuffer or NULL on failure
Since
1.18

◆ ecore_drm2_fb_size_get()

EAPI unsigned int ecore_drm2_fb_size_get ( Ecore_Drm2_Fb *  fb)

Get a framebuffer's size.

Parameters
fb
Returns
size of the framebuffers' mmap'd data or 0 on failure
Since
1.18

◆ ecore_drm2_fb_stride_get()

EAPI unsigned int ecore_drm2_fb_stride_get ( Ecore_Drm2_Fb *  fb)

Get a framebuffer's stride.

Parameters
fb
Returns
stride of the framebuffer or 0 on failure
Since
1.18

◆ ecore_drm2_fb_dirty()

EAPI void ecore_drm2_fb_dirty ( Ecore_Drm2_Fb *  fb,
Eina_Rectangle rects,
unsigned int  count 
)

Mark regions of a framebuffer as dirty.

Parameters
fb
rects
count
Since
1.18

◆ ecore_drm2_fb_flip()

EAPI int ecore_drm2_fb_flip ( Ecore_Drm2_Fb *  fb,
Ecore_Drm2_Output *  output,
void *  data 
)

Schedule a pageflip to the given Ecore_Drm2_Fb.

Parameters
fb
output
data
Returns
The result of drmModePageFlip function call
Since
1.18