Function
Phoshconvert_buffer
since: 0
Declaration [src]
void
phosh_convert_buffer (
void* data,
wl_shm_format format,
guint width,
guint height,
guint stride
)
Description [src]
Converts the buffer to ARGB format so that is suitable for usage in Cairo. If the buffer is already ARGB (or the conversion is not implemented), nothing happens.
Available since: 0
Parameters
data
-
Type:
void*
The buffer data to modify.
The argument can be NULL
.The data is owned by the caller of the function. format
-
Type:
wl_shm_format
The current pixel format.
The argument can be NULL
. width
-
Type:
guint
Image width.
height
-
Type:
guint
Image height.
stride
-
Type:
guint
Image stride.