L4T Multimedia API Reference

32.3.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nvbuf_utils.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
25 #ifndef _NVBUF_UTILS_H_
26 #define _NVBUF_UTILS_H_
27 
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32 
33 #include <EGL/egl.h>
34 #include <EGL/eglext.h>
35 #include <errno.h>
36 
40 #define MAX_NUM_PLANES 4
41 
45 #define MAX_COMPOSITE_FRAME 16
46 
51 #define NVBUF_CHROMA_SUBSAMPLING_HORIZ_DEFAULT 0
52 #define NVBUF_CHROMA_SUBSAMPLING_VERT_DEFAULT 1
53 
57 typedef enum
58 {
64 
68 typedef enum
69 {
75 
79 typedef enum
80 {
86 
90 typedef enum
91 {
99 
105 typedef enum
106 {
119 } NvBufferTag;
120 
124 typedef enum
125 {
229 
233 typedef enum
234 {
252 
256 typedef enum
257 {
271 
275 typedef enum {
285 
289 typedef enum {
293  NVBUFFER_BLEND = 1 << 1,
295 
299 typedef struct
300 {
302  float r;
304  float g;
306  float b;
308 
312 typedef struct
313 {
315  uint32_t top;
317  uint32_t left;
319  uint32_t width;
321  uint32_t height;
322 }NvBufferRect;
323 
330 typedef struct _NvBufferSession * NvBufferSession;
331 
336 {
338  uint8_t chromaLocHoriz;
339  uint8_t chromaLocVert;
341 
342 #define NVBUF_CHROMA_SUBSAMPLING_PARAMS_DEFAULT \
343  { \
344  NVBUF_CHROMA_SUBSAMPLING_HORIZ_DEFAULT, \
345  NVBUF_CHROMA_SUBSAMPLING_VERT_DEFAULT \
346  }
347 
351 typedef struct _NvBufferCreateParams
352 {
354  int32_t width;
356  int32_t height;
360  int32_t memsize;
368 
372 typedef struct _NvBufferParams
373 {
375  uint32_t dmabuf_fd;
377  void *nv_buffer;
381  int32_t memsize;
383  uint32_t nv_buffer_size;
387  uint32_t num_planes;
401 
405 typedef struct _NvBufferParamsEx
406 {
430  void *reserved;
432 
437 {
439  uint32_t composite_flag;
441  uint32_t input_buf_count;
452  NvBufferSession session;
454 
459 {
461  uint32_t transform_flag;
472  NvBufferSession session;
474 
475 
481 int NvBufferGetSize (void);
482 
494 EGLImageKHR NvEGLImageFromFd (EGLDisplay display, int dmabuf_fd);
495 
506 int NvDestroyEGLImage (EGLDisplay display, EGLImageKHR eglImage);
507 
520 int NvBufferCreate (int *dmabuf_fd, int width, int height,
521  NvBufferLayout layout, NvBufferColorFormat colorFormat);
522 
531 int NvBufferCreateEx (int *dmabuf_fd, NvBufferCreateParams *input_params);
532 
541 int NvBufferCreateInterlace (int *dmabuf_fd, NvBufferCreateParams *input_params);
542 
543 
553 int NvBufferCreateWithChromaLoc (int *dmabuf_fd, NvBufferCreateParams *input_params, NvBufferChromaSubsamplingParams *chromaSubsampling);
554 
562 int NvBufferGetParams (int dmabuf_fd, NvBufferParams *params);
563 
571 int NvBufferGetParamsEx (int dmabuf_fd, NvBufferParamsEx *exparams);
572 
579 int NvBufferDestroy (int dmabuf_fd);
580 
588 int ExtractFdFromNvBuffer (void *nvbuf, int *dmabuf_fd);
589 
597 int NvReleaseFd (int dmabuf_fd);
598 
611 int NvBufferMemSyncForCpu (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
612 
624 int NvBufferMemSyncForDevice (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
625 
647 int NvBufferMemMap (int dmabuf_fd, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr);
648 
664 int NvBufferMemUnMap (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
665 
676 int NvBuffer2Raw (int dmabuf_fd, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr);
677 
688 int Raw2NvBuffer (unsigned char *ptr, unsigned int plane, unsigned int in_width, unsigned int in_height, int dmabuf_fd);
689 
696 NvBufferSession NvBufferSessionCreate(void);
697 
702 void NvBufferSessionDestroy(NvBufferSession session);
703 
713 int NvBufferTransform (int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params);
714 
727 int NvBufferComposite (int *src_dmabuf_fds, int dst_dmabuf_fd, NvBufferCompositeParams *composite_params);
728 
729 #ifdef __cplusplus
730 }
731 #endif
732 
735 #endif
uint32_t layout[MAX_NUM_PLANES]
layout type of each planes of hardware buffer.
Definition: nvbuf_utils.h:399
uint32_t num_planes
number of planes of hardware buffer.
Definition: nvbuf_utils.h:387
NvBufferParams params
nvbuffer basic parameters.
Definition: nvbuf_utils.h:408
NvBufferSession session
NvBufferSession to be used for transform.
Definition: nvbuf_utils.h:472
int ExtractFdFromNvBuffer(void *nvbuf, int *dmabuf_fd)
Extracts the dmabuf_fd from the hardware buffer.
NvBufferColorFormat pixel_format
video format type of hardware buffer.
Definition: nvbuf_utils.h:385
BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:139
8-bit grayscale.
Definition: nvbuf_utils.h:199
uint32_t left
rectangle left.
Definition: nvbuf_utils.h:317
NvBufferRect src_comp_rect[MAX_COMPOSITE_FRAME]
source rectangle coordinates of input buffers for composition.
Definition: nvbuf_utils.h:445
void * reserved
reserved field.
Definition: nvbuf_utils.h:430
uint32_t transform_flag
flag to indicate which of the transform parameters are valid.
Definition: nvbuf_utils.h:461
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:151
BT.601 colorspace - YUV444 multi-planar.
Definition: nvbuf_utils.h:197
struct _NvBufferParamsEx NvBufferParamsEx
Holds extended parameters for a hardware buffer.
tag for H264/H265/VP9 Video Decoder.
Definition: nvbuf_utils.h:116
transform flag to set flip method.
Definition: nvbuf_utils.h:283
float g
background color value for g.
Definition: nvbuf_utils.h:304
uint32_t psize[MAX_NUM_PLANES]
size of each vodeo planes of hardware buffer.
Definition: nvbuf_utils.h:397
transform flag to set filter type.
Definition: nvbuf_utils.h:281
struct _NvBufferChromaSubSamplingParams NvBufferChromaSubsamplingParams
Holds Chroma Subsampling parameters.
int NvReleaseFd(int dmabuf_fd)
Releases the dmabuf_fd buffer.
Memory read.
Definition: nvbuf_utils.h:93
flag to set for composition.
Definition: nvbuf_utils.h:291
Memory write.
Definition: nvbuf_utils.h:95
transform flag to crop source rectangle.
Definition: nvbuf_utils.h:277
Video flip rotate 270 degree counter-clockwise.
Definition: nvbuf_utils.h:242
Video flip with respect to Y-axis.
Definition: nvbuf_utils.h:246
LegacyRGBA colorspace - BGRA-8-8-8-8 planar.
Definition: nvbuf_utils.h:159
int32_t sizeofvaliddatainbytes
size of the valid data from the first to the last valid byte.
Definition: nvbuf_utils.h:414
uint32_t input_buf_count
number of the input buffers to be composited.
Definition: nvbuf_utils.h:441
tag for Video Transform/Composite.
Definition: nvbuf_utils.h:118
NvBufferTransform_Filter transform_filter
transform filter.
Definition: nvbuf_utils.h:465
int32_t memsize
size of the memory.
Definition: nvbuf_utils.h:360
Video flip inverse transpode.
Definition: nvbuf_utils.h:250
BT.601 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:205
NvBufferRect dst_comp_rect[MAX_COMPOSITE_FRAME]
destination rectangle coordinates of input buffers for composition.
Definition: nvbuf_utils.h:447
BT.709 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:219
int32_t width
width of the buffer.
Definition: nvbuf_utils.h:354
Video flip rotate 180 degree.
Definition: nvbuf_utils.h:240
Holds composition background r,g,b colors.
Definition: nvbuf_utils.h:299
int NvBufferMemUnMap(int dmabuf_fd, unsigned int plane, void **pVirtAddr)
Unmaps the mapped virtual address of the plane.
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:153
uint32_t physicaladdress[MAX_NUM_PLANES]
physical address of allocated planes.
Definition: nvbuf_utils.h:422
BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:135
Pitch Layout.
Definition: nvbuf_utils.h:82
struct _NvBufferCreateParams NvBufferCreateParams
Holds the input parameters for hardware buffer creation.
BT.601 colorspace - Y/CrCb 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:173
BT.709 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:167
transform filter bilinear.
Definition: nvbuf_utils.h:261
LegacyRGBA colorspace - XRGB-8-8-8-8 planar.
Definition: nvbuf_utils.h:161
LegacyRGBA colorspace - ARGB-8-8-8-8 planar.
Definition: nvbuf_utils.h:163
int NvBufferGetParamsEx(int dmabuf_fd, NvBufferParamsEx *exparams)
Gets buffer extended parameters.
buffer payload with HW memory handle for specific memory size.
Definition: nvbuf_utils.h:62
transform filter 10 tap.
Definition: nvbuf_utils.h:265
uint32_t secondfieldoffset[MAX_NUM_PLANES]
offset of the second field for interlaced buffer.
Definition: nvbuf_utils.h:418
Holds parameters for a hardware buffer.
Definition: nvbuf_utils.h:372
uint32_t nv_buffer_size
size of hardware buffer.
Definition: nvbuf_utils.h:383
Holds Chroma Subsampling parameters.
Definition: nvbuf_utils.h:335
BT.709_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:217
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.
Memory read & write.
Definition: nvbuf_utils.h:97
transform filter nearest.
Definition: nvbuf_utils.h:259
uint32_t composite_flag
flag to indicate which of the composition/blending parameters are valid.
Definition: nvbuf_utils.h:439
uint32_t height
rectangle height.
Definition: nvbuf_utils.h:321
transform filter smart.
Definition: nvbuf_utils.h:267
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.
NvBufferTransform_Flag
Defines flags to indicate for valid transform.
Definition: nvbuf_utils.h:275
transform filter 5 tap.
Definition: nvbuf_utils.h:263
int NvBufferMemSyncForCpu(int dmabuf_fd, unsigned int plane, void **pVirtAddr)
Syncs the HW memory cache for the CPU.
NvBufferComposite_Flag
Defines flags that specify valid composition/blending operations.
Definition: nvbuf_utils.h:289
int NvBufferMemMap(int dmabuf_fd, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr)
Gets the memory-mapped virtual address of the plane.
BT.709 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:185
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:155
NvBufferChromaSubsamplingParams chromaSubsampling
Chroma Subsampling parameters.
Definition: nvbuf_utils.h:428
Interlaced scan formats.
Definition: nvbuf_utils.h:73
uint32_t width
rectangle width.
Definition: nvbuf_utils.h:319
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:149
NvBufferTag
Defines tags that identify the components requesting a memory allocation.
Definition: nvbuf_utils.h:105
BT.2020 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:177
NvBufferSession NvBufferSessionCreate(void)
Creates a new NvBufferSession for parallel scheduling of buffer transformations and compositions...
float b
background color value for b.
Definition: nvbuf_utils.h:306
#define MAX_NUM_PLANES
Defines the maximum number of planes for a video frame.
Definition: nvbuf_utils.h:40
BT.601 colorspace - YVU420 ER multi-planar.
Definition: nvbuf_utils.h:133
tag for Camera.
Definition: nvbuf_utils.h:110
NvBufferColorFormat colorFormat
colorformat of the buffer.
Definition: nvbuf_utils.h:364
BT.601 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:127
struct _NvBufferCompositeParams NvBufferCompositeParams
Holds parameters related to compositing/blending.
NvBufferCompositeBackground composite_bgcolor
background color values for composition.
Definition: nvbuf_utils.h:449
BT.2020 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:223
BT.709_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:215
int32_t startofvaliddata
offset in bytes from the start of the buffer to the first valid byte.
Definition: nvbuf_utils.h:411
float dst_comp_rect_alpha[MAX_COMPOSITE_FRAME]
alpha values of input buffers for the blending.
Definition: nvbuf_utils.h:443
NvBufferDisplayScanFormat scanformat[MAX_NUM_PLANES]
display scan format - progressive/interlaced.
Definition: nvbuf_utils.h:416
int NvBufferCreateInterlace(int *dmabuf_fd, NvBufferCreateParams *input_params)
Allocates a hardware buffer for interlace scan format.
NvBufferPayloadType payloadType
payload type of the buffer.
Definition: nvbuf_utils.h:358
Holds extended parameters for a hardware buffer.
Definition: nvbuf_utils.h:405
NvBufferTransform_Flip transform_flip
flip method.
Definition: nvbuf_utils.h:463
uint32_t height[MAX_NUM_PLANES]
height of each planes of hardware buffer.
Definition: nvbuf_utils.h:391
tag for Jpeg Encoder/Decoder.
Definition: nvbuf_utils.h:112
struct _NvBufferParams NvBufferParams
Holds parameters for a hardware buffer.
int NvBufferMemSyncForDevice(int dmabuf_fd, unsigned int plane, void **pVirtAddr)
Syncs the hardware memory cache for the device.
uint32_t blockheightlog2[MAX_NUM_PLANES]
block height of the planes for blockLinear layout hardware buffer.
Definition: nvbuf_utils.h:420
uint32_t width[MAX_NUM_PLANES]
width of each planes of hardware buffer.
Definition: nvbuf_utils.h:389
uint32_t pitch[MAX_NUM_PLANES]
pitch of each planes of hardware buffer.
Definition: nvbuf_utils.h:393
NvBufferDisplayScanFormat
Defines display scan formats for NvBuffer video planes.
Definition: nvbuf_utils.h:68
BT.709 ER colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:221
int NvBufferCreate(int *dmabuf_fd, int width, int height, NvBufferLayout layout, NvBufferColorFormat colorFormat)
Allocates a HW buffer (deprecated).
EGLImageKHR NvEGLImageFromFd(EGLDisplay display, int dmabuf_fd)
Creates an instance of EGLImage from a DMABUF FD.
BT.601 colorspace - YUV420 ER multi-planar.
Definition: nvbuf_utils.h:131
uint32_t dmabuf_fd
Holds the DMABUF FD of the hardware buffer.
Definition: nvbuf_utils.h:375
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:145
int NvBufferCreateWithChromaLoc(int *dmabuf_fd, NvBufferCreateParams *input_params, NvBufferChromaSubsamplingParams *chromaSubsampling)
Allocates a hardware buffer with a given chroma subsampling location.
BT.709 colorspace - YUV420 ER multi-planar.
Definition: nvbuf_utils.h:183
uint32_t offset[MAX_NUM_PLANES]
memory offset values of each video planes of hardware buffer.
Definition: nvbuf_utils.h:395
buffer payload with HW memory handle for set of planes.
Definition: nvbuf_utils.h:60
BlockLinear Layout.
Definition: nvbuf_utils.h:84
BT.601 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:129
uint32_t top
rectangle top.
Definition: nvbuf_utils.h:315
int32_t memsize
size of the memory.
Definition: nvbuf_utils.h:381
int NvBufferTransform(int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params)
Transforms one DMA buffer to another DMA buffer.
int NvBufferGetSize(void)
This method can be used to get HW Buffer struct size.
Video flip with respect to X-axis.
Definition: nvbuf_utils.h:244
Invalid color format.
Definition: nvbuf_utils.h:227
BT.709 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:187
uint64_t flags[MAX_NUM_PLANES]
flags associated with planes
Definition: nvbuf_utils.h:424
void * nv_buffer
pointer to hardware buffer memory.
Definition: nvbuf_utils.h:377
void NvBufferSessionDestroy(NvBufferSession session)
Destroys an existing NvBufferSession.
Holds the input parameters for hardware buffer creation.
Definition: nvbuf_utils.h:351
int NvBufferGetParams(int dmabuf_fd, NvBufferParams *params)
Gets buffer parameters.
NvBufferPayloadType
Defines Payload types for NvBuffer.
Definition: nvbuf_utils.h:57
uint8_t chromaLocHoriz
location settings
Definition: nvbuf_utils.h:338
Progessive scan formats.
Definition: nvbuf_utils.h:71
int NvBufferComposite(int *src_dmabuf_fds, int dst_dmabuf_fd, NvBufferCompositeParams *composite_params)
Composites multiple input DMA buffers to one output DMA buffer.
int32_t height
height of the buffer.
Definition: nvbuf_utils.h:356
BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:141
NvBufferTransform_Filter
Defines transform video filter types.
Definition: nvbuf_utils.h:256
BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:137
BT.601 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:165
BT.601 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:175
BT.601 colorspace - Y/CrCb 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:179
Holds parameters for buffer transform functions.
Definition: nvbuf_utils.h:458
BT.601_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:209
BT.709 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:181
NvBufferLayout layout
layout of the buffer.
Definition: nvbuf_utils.h:362
NvBufferTag nvbuf_tag
tag to associate with the buffer.
Definition: nvbuf_utils.h:366
BT.601 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:201
float r
background color value for r.
Definition: nvbuf_utils.h:302
BT.601_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:207
tag None.
Definition: nvbuf_utils.h:108
Video flip none.
Definition: nvbuf_utils.h:236
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:147
struct _NvBufferTransformParams NvBufferTransformParams
Holds parameters for buffer transform functions.
transform flag to crop destination rectangle.
Definition: nvbuf_utils.h:279
BT.2020 colorspace - Y/CbCr 12 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:225
BT.2020 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:171
Optical flow SAD calculation Buffer format.
Definition: nvbuf_utils.h:195
Video flip transpose.
Definition: nvbuf_utils.h:248
NvBufferPayloadType payloadType
payload type of the buffer.
Definition: nvbuf_utils.h:379
BT.709 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:211
BT.2020 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:191
NvBufferTransform_Flip
Defines video flip methods.
Definition: nvbuf_utils.h:233
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:143
BT.601 colorspace - Y/CbCr 4:2:2 10-bit semi-planar.
Definition: nvbuf_utils.h:203
NvBufferRect dst_rect
destination rectangle coordinates for crop opeartion.
Definition: nvbuf_utils.h:469
void * payloadmetaInfo
metadata associated with the hardware buffer.
Definition: nvbuf_utils.h:426
NvBufferLayout
Defines Layout formats for NvBuffer video planes.
Definition: nvbuf_utils.h:79
tag for H264/H265 Video Encoder.
Definition: nvbuf_utils.h:114
int NvBufferDestroy(int dmabuf_fd)
Destroys a HW buffer.
int NvBufferCreateEx(int *dmabuf_fd, NvBufferCreateParams *input_params)
Allocates a hardware buffer.
Holds coordinates for a rectangle.
Definition: nvbuf_utils.h:312
NvBufferColorFormat
Defines color formats for NvBuffer.
Definition: nvbuf_utils.h:124
Holds parameters related to compositing/blending.
Definition: nvbuf_utils.h:436
Video flip rotate 90 degree counter-clockwise.
Definition: nvbuf_utils.h:238
BT.709_ER colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:169
struct _NvBufferSession * NvBufferSession
Holds an opaque NvBuffer session type required for parallel buffer tranformations and compositions...
Definition: nvbuf_utils.h:330
transform filter nicest.
Definition: nvbuf_utils.h:269
BT.2020 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:189
BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:213
NvBufferRect src_rect
source rectangle coordinates for crop opeartion.
Definition: nvbuf_utils.h:467
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:157
int NvDestroyEGLImage(EGLDisplay display, EGLImageKHR eglImage)
Destroys an EGLImage object.
NvBufferSession session
NvBufferSession to be used for composition.
Definition: nvbuf_utils.h:452
flag to set for blending.
Definition: nvbuf_utils.h:293
NvBufferMemFlags
Defines memory access flags for NvBuffer.
Definition: nvbuf_utils.h:90
#define MAX_COMPOSITE_FRAME
Defines the maximum number of input video frames that can be used for composition.
Definition: nvbuf_utils.h:45