wfdCreateWFDEGLImagesQNX()
Allocate memory for graphics buffers
Synopsis:
#include <wfd/wfdext.h>
WFDErrorCode wfdCreateWFDEGLImagesQNX(WFDDevice device, WFDint width, WFDint height, WFDint format, WFDint usage, WFDint count, WFDEGLImage *images)
Arguments:
- device
- A WFD device handle.
- width
- The desired width in pixels.
- height
- The desired height in pixels.
- format
-
The desired storage format. A WFD_FORMAT_* value is expected (these being the same as SCREEN_FORMAT_*). If usage does not request CPU access, the returned images may use a variant of the format. Reference the
wfd-server
header file for more information. - usage
-
A set of WFD_USAGE_* bits (which are the same as SCREEN_USAGE_*) to indicate how the buffer will be used. Reference the
wfd-server
header file for more information. The allocated images may have additional usage bits set. - count
- The number of buffers to allocate.
- images
-
A pointer to an array where this function will, on success, write count
WFDEGLImage
objects (each being a pointer to the image metadata).
Library:
libWFDclientReturns:
WFD_ERROR_NONE
on success (the images array was filled); or an OpenWFD error code on failure. This function does not affect values returned by wfdGetError()
.
Page updated: