Function
PhoshWlBuffernew
Declaration [src]
PhoshWlBuffer*
phosh_wl_buffer_new (
wl_shm_format format,
uint32_t width,
uint32_t height,
uint32_t stride
)
Parameters
format |
wl_shm_format |
The buffer format. |
|
width |
uint32_t |
The buffer’s width in pixels. |
|
height |
uint32_t |
The buffer’s height in lines. |
|
stride |
uint32_t |
The buffer’s stride in bytes. |
Return value
Returns: | PhoshWlBuffer |
The new buffer. |
|
The data is owned by the called function. |