Constructor
WPEPlatformBufferDMABufnew
Declaration [src]
WPEBufferDMABuf*
wpe_buffer_dma_buf_new (
WPEDisplay* display,
int width,
int height,
guint32 format,
guint32 n_planes,
int* fds,
guint32* offsets,
guint32* strides,
guint64 modifier
)
Description [src]
Create a new WPEBufferDMABuf for the given parameters.
The buffer will take the ownership of the fds.
Parameters
display-
Type:
WPEDisplayA
WPEDisplay.The data is owned by the caller of the function. width-
Type:
intThe buffer width.
height-
Type:
intThe buffer height.
format-
Type:
guint32The buffer format.
n_planes-
Type:
guint32The number of planes.
fds-
Type:
int*The buffer file descriptors.
The data is owned by the caller of the function. offsets-
Type:
guint32*The buffer offsets.
The data is owned by the caller of the function. strides-
Type:
guint32*The buffer strides.
The data is owned by the caller of the function. modifier-
Type:
guint64The buffer modifier.
Return value
Type: WPEBufferDMABuf
A WPEBufferDMABuf.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |