#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | _NvBufferParams |
Defines | |
#define | MAX_NUM_PLANES 3 |
Typedefs | |
typedef struct _NvBufferParams | NvBufferParams |
Enumerations | |
enum | NvBufferLayout { NvBufferLayout_Pitch, NvBufferLayout_BlockLinear } |
enum | NvBufferColorFormat { NvBufferColorFormat_YUV420, NvBufferColorFormat_YVU420, NvBufferColorFormat_NV12, NvBufferColorFormat_NV21, NvBufferColorFormat_UYVY, NvBufferColorFormat_ABGR32, NvBufferColorFormat_XRGB32, NvBufferColorFormat_Invalid } |
Functions | |
EGLImageKHR | NvEGLImageFromFd (EGLDisplay display, int dmabuf_fd) |
This method should be used for getting EGLImage from dmabuf-fd. | |
int | NvDestroyEGLImage (EGLDisplay display, EGLImageKHR eglImage) |
This method should be used for destroying EGLImage object. | |
int | NvBufferCreate (int *dmabuf_fd, int width, int height, NvBufferLayout layout, NvBufferColorFormat colorFormat) |
This method can be used to allocate hw buffer. | |
int | NvBufferGetParams (int dmabuf_fd, NvBufferParams *params) |
This method can be used to get buffer parameters. | |
int | NvBufferDestroy (int dmabuf_fd) |
This method should be used for destroying hw_buffer. |
Definition in file nvbuf_utils.h.
#define MAX_NUM_PLANES 3 |
Definition at line 28 of file nvbuf_utils.h.
typedef struct _NvBufferParams NvBufferParams |
enum NvBufferColorFormat |
Definition at line 36 of file nvbuf_utils.h.
enum NvBufferLayout |
Definition at line 30 of file nvbuf_utils.h.
int NvBufferCreate | ( | int * | dmabuf_fd, | |
int | width, | |||
int | height, | |||
NvBufferLayout | layout, | |||
NvBufferColorFormat | colorFormat | |||
) |
This method can be used to allocate hw buffer.
[out] | dmabuf_fd | returns dmabuf_fd of hardware buffer |
[in] | width | hardware buffer width in bytes |
[in] | height | hardware buffer height in bytes |
[in] | layout | layout of buffer |
[in] | colorFormat | colorFormat of buffer |
int NvBufferDestroy | ( | int | dmabuf_fd | ) |
This method should be used for destroying hw_buffer.
[in] | dmabuf_fd | dmabuf_fd hw_buffer to be destroyed |
int NvBufferGetParams | ( | int | dmabuf_fd, | |
NvBufferParams * | params | |||
) |
This method can be used to get buffer parameters.
[in] | dmabuf_fd | DMABUF FD of buffer |
[out] | params | structure which will be filled with parameters. |
int NvDestroyEGLImage | ( | EGLDisplay | display, | |
EGLImageKHR | eglImage | |||
) |
This method should be used for destroying EGLImage object.
[in] | display | EGLDisplay object used for destroying EGLImage |
[in] | eglImage | EGLImageKHR object to be destroyed |
EGLImageKHR NvEGLImageFromFd | ( | EGLDisplay | display, | |
int | dmabuf_fd | |||
) |
This method should be used for getting EGLImage from dmabuf-fd.
[in] | display | EGLDisplay object used during creation of EGLImage |
[in] | dmabuf_fd | DMABUF FD of buffer from which EGLImage to be created |