|
|
NVIDIA DeepStream SDK API Reference5.0 Release |
NVIDIA Multimedia Utilities: Buffering and Transform/Composition/Blending
Definition in file nvbuf_utils.h.
Go to the source code of this file.
Data Structures | |
| struct | _NvBufferSyncObjParams |
| Holds parameters for buffer sync point object. More... | |
| struct | _NvBufferSyncObjRec |
| buffer sync point object. More... | |
| struct | NvBufferCompositeBackground |
| Holds composition background r,g,b colors. More... | |
| struct | NvBufferRect |
| Holds coordinates for a rectangle. More... | |
| struct | _NvBufferChromaSubSamplingParams |
| Holds Chroma Subsampling parameters. More... | |
| struct | _NvBufferCreateParams |
| Holds the input parameters for hardware buffer creation. More... | |
| struct | _NvBufferParams |
| Holds parameters for a hardware buffer. More... | |
| struct | _NvBufferParamsEx |
| Holds extended parameters for a hardware buffer. More... | |
| struct | _NvBufferCompositeParams |
| Holds parameters related to compositing/blending. More... | |
| struct | _NvBufferTransformParams |
| Holds parameters for buffer transform functions. More... | |
Macros | |
| #define | MAX_NUM_PLANES 4 |
| Defines the maximum number of planes for a video frame. More... | |
| #define | MAX_COMPOSITE_FRAME 16 |
| Defines the maximum number of input video frames that can be used for composition. More... | |
| #define | NVBUF_CHROMA_SUBSAMPLING_HORIZ_DEFAULT 0 |
| Defines the default values for chroma subsampling. More... | |
| #define | NVBUF_CHROMA_SUBSAMPLING_VERT_DEFAULT 1 |
| #define | NVBUF_MAX_SYNCOBJ_PARAMS 5 |
| Defines the maximum number of sync object parameters. More... | |
| #define | NVBUFFER_SYNCPOINT_WAIT_INFINITE 0xFFFFFFFF |
| Use this value to represent an infinite wait interval. More... | |
| #define | NVBUF_CHROMA_SUBSAMPLING_PARAMS_DEFAULT |
Typedefs | |
| typedef struct _NvBufferSyncObjParams | NvBufferSyncObjParams |
| Holds parameters for buffer sync point object. More... | |
| typedef struct _NvBufferSyncObjRec | NvBufferSyncObj |
| buffer sync point object. More... | |
| typedef struct _NvBufferSession * | NvBufferSession |
| Holds an opaque NvBuffer session type required for parallel buffer tranformations and compositions. More... | |
| typedef struct _NvBufferChromaSubSamplingParams | NvBufferChromaSubsamplingParams |
| Holds Chroma Subsampling parameters. More... | |
| typedef struct _NvBufferCreateParams | NvBufferCreateParams |
| Holds the input parameters for hardware buffer creation. More... | |
| typedef struct _NvBufferParams | NvBufferParams |
| Holds parameters for a hardware buffer. More... | |
| typedef struct _NvBufferParamsEx | NvBufferParamsEx |
| Holds extended parameters for a hardware buffer. More... | |
| typedef struct _NvBufferCompositeParams | NvBufferCompositeParams |
| Holds parameters related to compositing/blending. More... | |
| typedef struct _NvBufferTransformParams | NvBufferTransformParams |
| Holds parameters for buffer transform functions. More... | |
Functions | |
| int | NvBufferSyncObjWait (NvBufferSyncObjParams *syncobj_params, unsigned int timeout) |
| This method can be used to wait on sync point ID. More... | |
| int | NvBufferGetSize (void) |
| This method can be used to get HW Buffer struct size. More... | |
| EGLImageKHR | NvEGLImageFromFd (EGLDisplay display, int dmabuf_fd) |
| Creates an instance of EGLImage from a DMABUF FD. More... | |
| int | NvDestroyEGLImage (EGLDisplay display, EGLImageKHR eglImage) |
| Destroys an EGLImage object. More... | |
| int | NvBufferCreate (int *dmabuf_fd, int width, int height, NvBufferLayout layout, NvBufferColorFormat colorFormat) |
| Allocates a HW buffer (deprecated). More... | |
| int | NvBufferCreateEx (int *dmabuf_fd, NvBufferCreateParams *input_params) |
| Allocates a hardware buffer. More... | |
| int | NvBufferCreateInterlace (int *dmabuf_fd, NvBufferCreateParams *input_params) |
| Allocates a hardware buffer for interlace scan format. More... | |
| int | NvBufferCreateWithChromaLoc (int *dmabuf_fd, NvBufferCreateParams *input_params, NvBufferChromaSubsamplingParams *chromaSubsampling) |
| Allocates a hardware buffer with a given chroma subsampling location. More... | |
| int | NvBufferGetParams (int dmabuf_fd, NvBufferParams *params) |
| Gets buffer parameters. More... | |
| int | NvBufferGetParamsEx (int dmabuf_fd, NvBufferParamsEx *exparams) |
| Gets buffer extended parameters. More... | |
| int | NvBufferDestroy (int dmabuf_fd) |
| Destroys a HW buffer. More... | |
| int | ExtractFdFromNvBuffer (void *nvbuf, int *dmabuf_fd) |
Extracts the dmabuf_fd from the hardware buffer. More... | |
| int | NvReleaseFd (int dmabuf_fd) |
Releases the dmabuf_fd buffer. More... | |
| int | NvBufferMemSyncForCpu (int dmabuf_fd, unsigned int plane, void **pVirtAddr) |
| Syncs the HW memory cache for the CPU. More... | |
| int | NvBufferMemSyncForDevice (int dmabuf_fd, unsigned int plane, void **pVirtAddr) |
| Syncs the hardware memory cache for the device. More... | |
| int | NvBufferMemMap (int dmabuf_fd, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr) |
| Gets the memory-mapped virtual address of the plane. More... | |
| int | NvBufferMemUnMap (int dmabuf_fd, unsigned int plane, void **pVirtAddr) |
| Unmaps the mapped virtual address of the plane. More... | |
| int | NvBuffer2Raw (int dmabuf_fd, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr) |
| Copies the NvBuffer plane contents to a raw buffer plane. More... | |
| int | Raw2NvBuffer (unsigned char *ptr, unsigned int plane, unsigned int in_width, unsigned int in_height, int dmabuf_fd) |
| Copies raw buffer plane contents to an NvBuffer plane. More... | |
| NvBufferSession | NvBufferSessionCreate (void) |
| Creates a new NvBufferSession for parallel scheduling of buffer transformations and compositions. More... | |
| void | NvBufferSessionDestroy (NvBufferSession session) |
| Destroys an existing NvBufferSession. More... | |
| int | NvBufferTransform (int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params) |
| Transforms one DMA buffer to another DMA buffer. More... | |
| int | NvBufferTransformAsync (int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params, NvBufferSyncObj *syncobj) |
| Transforms one DMA buffer to another DMA buffer asyncroniously (non-blocking). More... | |
| int | NvBufferComposite (int *src_dmabuf_fds, int dst_dmabuf_fd, NvBufferCompositeParams *composite_params) |
| Composites multiple input DMA buffers to one output DMA buffer. More... | |