Constructor
WPEPlatformBufferSHMnew
Declaration [src]
WPEBufferSHM*
wpe_buffer_shm_new (
WPEDisplay* display,
int width,
int height,
WPEPixelFormat format,
GBytes* data,
guint stride
)
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:
WPEPixelFormatThe buffer format.
data-
Type:
GBytesThe buffer data.
The data is owned by the caller of the function. stride-
Type:
guintThe buffer stride.
Return value
Type: WPEBufferSHM
A WPEBufferSHM.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |