NVIDIA buffering utility library for use by applications.
Enumerator |
---|
NvBufferColorFormat_YUV420 |
|
NvBufferColorFormat_YVU420 |
|
NvBufferColorFormat_NV12 |
|
NvBufferColorFormat_NV21 |
|
NvBufferColorFormat_UYVY |
|
NvBufferColorFormat_ABGR32 |
|
NvBufferColorFormat_XRGB32 |
|
NvBufferColorFormat_Invalid |
|
Definition at line 44 of file nvbuf_utils.h.
Enumerator |
---|
NvBufferLayout_Pitch |
|
NvBufferLayout_BlockLinear |
|
Definition at line 38 of file nvbuf_utils.h.
Use this method to allocate HW buffer.
- Parameters
-
[out] | dmabuf_fd | Returns dmabuf_fd of hardware buffer. |
[in] | width | Specifies the hardware buffer width, in bytes. |
[in] | height | Specifies the hardware buffer height, in bytes. |
[in] | layout | Specifies the layout of buffer. |
[in] | colorFormat | Specifies the colorFormat of buffer. |
- Returns
- 0 for success, -1 for failure
int NvBufferDestroy |
( |
int |
dmabuf_fd | ) |
|
This method must be used for destroying hw_buffer
.
- Parameters
-
[in] | dmabuf_fd | Specifies the dmabuf_fd hw_buffer to destroy. |
- Returns
- 0 for success, -1 for failure
Use this method to get buffer parameters.
- Parameters
-
[in] | dmabuf_fd | DMABUF FD of buffer. |
[out] | params | A pointer to the structure to fill with parameters. |
- Returns
- 0 for success, -1 for failure.
int NvDestroyEGLImage |
( |
EGLDisplay |
display, |
|
|
EGLImageKHR |
eglImage |
|
) |
| |
This method must be used for destroying EGLImage
object.
- Parameters
-
[in] | display | EGLDisplay object used for destroying EGLImage . |
[in] | eglImage | EGLImageKHR object to be destroyed. |
- Returns
- 0 for success, -1 for failure
EGLImageKHR NvEGLImageFromFd |
( |
EGLDisplay |
display, |
|
|
int |
dmabuf_fd |
|
) |
| |
This method must be used for getting EGLImage
from dmabuf-fd
.
- Parameters
-
[in] | display | EGLDisplay object used during the creation of EGLImage . |
[in] | dmabuf_fd | DMABUF FD of buffer from which EGLImage to be created. |
- Returns
EGLImageKHR
for success, NULL
for failure