Jetson Linux API Reference

32.6.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-2021, 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 #include <stdbool.h>
37 
41 #define MAX_NUM_PLANES 4
42 
46 #define MAX_COMPOSITE_FRAME 16
47 
52 #define NVBUF_CHROMA_SUBSAMPLING_HORIZ_DEFAULT 0
53 #define NVBUF_CHROMA_SUBSAMPLING_VERT_DEFAULT 1
54 
58 #define NVBUF_MAX_SYNCOBJ_PARAMS 5
59 
66 #define NVBUFFER_SYNCPOINT_WAIT_INFINITE 0xFFFFFFFF
67 
71 typedef enum
72 {
78 
82 typedef enum
83 {
89 
93 typedef enum
94 {
100 
104 typedef enum
105 {
113 
119 typedef enum
120 {
135 } NvBufferTag;
136 
140 typedef enum
141 {
257 
261 typedef enum
262 {
280 
284 typedef enum
285 {
299 
303 typedef enum {
313 
317 typedef enum {
321  NVBUFFER_BLEND = 1 << 1,
325 
332 {
333  uint32_t syncpointID;
334  uint32_t value;
336 
340 typedef struct _NvBufferSyncObjRec
341 {
343  uint32_t num_insyncobj;
345  uint32_t use_outsyncobj;
347 
351 typedef struct
352 {
354  float r;
356  float g;
358  float b;
360 
364 typedef struct
365 {
367  uint32_t top;
369  uint32_t left;
371  uint32_t width;
373  uint32_t height;
374 }NvBufferRect;
375 
382 typedef struct _NvBufferSession * NvBufferSession;
383 
388 {
390  uint8_t chromaLocHoriz;
391  uint8_t chromaLocVert;
393 
394 #define NVBUF_CHROMA_SUBSAMPLING_PARAMS_DEFAULT \
395  { \
396  NVBUF_CHROMA_SUBSAMPLING_HORIZ_DEFAULT, \
397  NVBUF_CHROMA_SUBSAMPLING_VERT_DEFAULT \
398  }
399 
403 typedef struct _NvBufferCreateParams
404 {
406  int32_t width;
408  int32_t height;
412  int32_t memsize;
420 
424 typedef struct _NvBufferParams
425 {
427  uint32_t dmabuf_fd;
429  void *nv_buffer;
433  int32_t memsize;
435  uint32_t nv_buffer_size;
439  uint32_t num_planes;
453 
457 typedef struct _NvBufferParamsEx
458 {
486  void *reserved;
488 
493 {
495  uint32_t composite_flag;
497  uint32_t input_buf_count;
510  NvBufferSession session;
512 
517 {
519  uint32_t transform_flag;
530  NvBufferSession session;
532 
533 
542 int NvBufferSyncObjWait (NvBufferSyncObjParams *syncobj_params, unsigned int timeout);
543 
549 int NvBufferGetSize (void);
550 
562 EGLImageKHR NvEGLImageFromFd (EGLDisplay display, int dmabuf_fd);
563 
574 int NvDestroyEGLImage (EGLDisplay display, EGLImageKHR eglImage);
575 
588 int NvBufferCreate (int *dmabuf_fd, int width, int height,
589  NvBufferLayout layout, NvBufferColorFormat colorFormat);
590 
599 int NvBufferCreateEx (int *dmabuf_fd, NvBufferCreateParams *input_params);
600 
609 int NvBufferCreateInterlace (int *dmabuf_fd, NvBufferCreateParams *input_params);
610 
611 
621 int NvBufferCreateWithChromaLoc (int *dmabuf_fd, NvBufferCreateParams *input_params, NvBufferChromaSubsamplingParams *chromaSubsampling);
622 
630 int NvBufferGetParams (int dmabuf_fd, NvBufferParams *params);
631 
639 int NvBufferGetParamsEx (int dmabuf_fd, NvBufferParamsEx *exparams);
640 
647 int NvBufferDestroy (int dmabuf_fd);
648 
656 int ExtractFdFromNvBuffer (void *nvbuf, int *dmabuf_fd);
657 
665 int NvReleaseFd (int dmabuf_fd);
666 
678 int NvBufferMemSyncForCpu (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
679 
692 int NvBufferMemSyncForCpuEx (int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr);
693 
705 int NvBufferMemSyncForDevice (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
706 
719 int NvBufferMemSyncForDeviceEx (int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr);
720 
742 int NvBufferMemMap (int dmabuf_fd, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr);
743 
766 int NvBufferMemMapEx (int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr);
767 
783 int NvBufferMemUnMap (int dmabuf_fd, unsigned int plane, void **pVirtAddr);
784 
801 int NvBufferMemUnMapEx (int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr);
802 
813 int NvBuffer2Raw (int dmabuf_fd, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr);
814 
825 int Raw2NvBuffer (unsigned char *ptr, unsigned int plane, unsigned int in_width, unsigned int in_height, int dmabuf_fd);
826 
833 NvBufferSession NvBufferSessionCreate(void);
834 
839 void NvBufferSessionDestroy(NvBufferSession session);
840 
850 int NvBufferTransform (int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params);
851 
863 int NvBufferTransformEx (int src_dmabuf_fd, NvBufferParamsEx *input_params, int dst_dmabuf_fd, NvBufferParamsEx *output_params, NvBufferTransformParams *transform_params);
864 
875 int NvBufferTransformAsync (int src_dmabuf_fd, int dst_dmabuf_fd, NvBufferTransformParams *transform_params, NvBufferSyncObj *syncobj);
876 
877 
890 int NvBufferComposite (int *src_dmabuf_fds, int dst_dmabuf_fd, NvBufferCompositeParams *composite_params);
891 
892 #ifdef __cplusplus
893 }
894 #endif
895 
898 #endif
uint32_t layout[MAX_NUM_PLANES]
layout type of each planes of hardware buffer.
Definition: nvbuf_utils.h:451
uint32_t num_planes
number of planes of hardware buffer.
Definition: nvbuf_utils.h:439
NvBufferParams params
nvbuffer basic parameters.
Definition: nvbuf_utils.h:460
NvBufferSession session
NvBufferSession to be used for transform.
Definition: nvbuf_utils.h:530
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:437
BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:157
8-bit grayscale.
Definition: nvbuf_utils.h:217
uint32_t left
rectangle left.
Definition: nvbuf_utils.h:369
NvBufferRect src_comp_rect[MAX_COMPOSITE_FRAME]
source rectangle coordinates of input buffers for composition.
Definition: nvbuf_utils.h:503
void * reserved
reserved field.
Definition: nvbuf_utils.h:486
bool is_protected
get buffer vpr information.
Definition: nvbuf_utils.h:482
uint32_t transform_flag
flag to indicate which of the transform parameters are valid.
Definition: nvbuf_utils.h:519
NvBufferSyncObj syncobj
buffer sync point object parameters
Definition: nvbuf_utils.h:484
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:169
BT.601 colorspace - YUV444 multi-planar.
Definition: nvbuf_utils.h:215
struct _NvBufferParamsEx NvBufferParamsEx
Holds extended parameters for a hardware buffer.
tag for H264/H265/VP9 Video Decoder.
Definition: nvbuf_utils.h:132
transform flag to set flip method.
Definition: nvbuf_utils.h:311
float g
background color value for g.
Definition: nvbuf_utils.h:356
uint32_t psize[MAX_NUM_PLANES]
size of each vodeo planes of hardware buffer.
Definition: nvbuf_utils.h:449
transform flag to set filter type.
Definition: nvbuf_utils.h:309
struct _NvBufferChromaSubSamplingParams NvBufferChromaSubsamplingParams
Holds Chroma Subsampling parameters.
int NvReleaseFd(int dmabuf_fd)
Releases the dmabuf_fd buffer.
Memory read.
Definition: nvbuf_utils.h:107
flag to set for composition.
Definition: nvbuf_utils.h:319
Memory write.
Definition: nvbuf_utils.h:109
struct _NvBufferSyncObjParams NvBufferSyncObjParams
Holds parameters for buffer sync point object.
transform flag to crop source rectangle.
Definition: nvbuf_utils.h:305
Video flip rotate 270 degree counter-clockwise.
Definition: nvbuf_utils.h:270
Video flip with respect to Y-axis.
Definition: nvbuf_utils.h:274
LegacyRGBA colorspace - BGRA-8-8-8-8 planar.
Definition: nvbuf_utils.h:177
int32_t sizeofvaliddatainbytes
size of the valid data from the first to the last valid byte.
Definition: nvbuf_utils.h:466
Non-linear RGB BT.2020 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbuf_utils.h:253
uint32_t input_buf_count
number of the input buffers to be composited.
Definition: nvbuf_utils.h:497
tag for Video Transform/Composite.
Definition: nvbuf_utils.h:134
NvBufferTransform_Filter transform_filter
transform filter.
Definition: nvbuf_utils.h:523
int32_t memsize
size of the memory.
Definition: nvbuf_utils.h:412
Video flip inverse transpode.
Definition: nvbuf_utils.h:278
BT.601 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:223
Non-linear RGB BT.709 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbuf_utils.h:247
NvBufferRect dst_comp_rect[MAX_COMPOSITE_FRAME]
destination rectangle coordinates of input buffers for composition.
Definition: nvbuf_utils.h:505
BT.709 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:239
int32_t width
width of the buffer.
Definition: nvbuf_utils.h:406
Video flip rotate 180 degree.
Definition: nvbuf_utils.h:268
Holds composition background r,g,b colors.
Definition: nvbuf_utils.h:351
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:171
uint32_t physicaladdress[MAX_NUM_PLANES]
physical address of allocated planes.
Definition: nvbuf_utils.h:474
BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:153
Pitch Layout.
Definition: nvbuf_utils.h:96
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:191
BT.709 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:185
transform filter bilinear.
Definition: nvbuf_utils.h:289
LegacyRGBA colorspace - XRGB-8-8-8-8 planar.
Definition: nvbuf_utils.h:179
LegacyRGBA colorspace - ARGB-8-8-8-8 planar.
Definition: nvbuf_utils.h:181
int NvBufferGetParamsEx(int dmabuf_fd, NvBufferParamsEx *exparams)
Gets buffer extended parameters.
buffer payload with hardware memory handle for specific memory size.
Definition: nvbuf_utils.h:76
transform filter 10 tap.
Definition: nvbuf_utils.h:293
uint32_t secondfieldoffset[MAX_NUM_PLANES]
offset of the second field for interlaced buffer.
Definition: nvbuf_utils.h:470
Holds parameters for a hardware buffer.
Definition: nvbuf_utils.h:424
uint32_t nv_buffer_size
size of hardware buffer.
Definition: nvbuf_utils.h:435
Holds Chroma Subsampling parameters.
Definition: nvbuf_utils.h:387
BT.709_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:237
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:111
transform filter nearest.
Definition: nvbuf_utils.h:287
uint32_t composite_flag
flag to indicate which of the composition/blending parameters are valid.
Definition: nvbuf_utils.h:495
uint32_t height
rectangle height.
Definition: nvbuf_utils.h:373
transform filter smart.
Definition: nvbuf_utils.h:295
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.
int NvBufferMemUnMapEx(int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr)
Unmaps the mapped virtual address of the plane, API to be used for another process.
NvBufferTransform_Filter composite_filter[MAX_COMPOSITE_FRAME]
filters to use for composition.
Definition: nvbuf_utils.h:499
NvBufferTransform_Flag
Defines flags to indicate for valid transform.
Definition: nvbuf_utils.h:303
transform filter 5 tap.
Definition: nvbuf_utils.h:291
int NvBufferMemSyncForCpu(int dmabuf_fd, unsigned int plane, void **pVirtAddr)
Syncs the hardware memory cache for the CPU.
NvBufferComposite_Flag
Defines flags that specify valid composition/blending operations.
Definition: nvbuf_utils.h:317
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:203
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:173
composition flag to set filter type.
Definition: nvbuf_utils.h:323
NvBufferChromaSubsamplingParams chromaSubsampling
chroma subsampling parameters
Definition: nvbuf_utils.h:480
Interlaced scan formats.
Definition: nvbuf_utils.h:87
uint32_t width
rectangle width.
Definition: nvbuf_utils.h:371
int NvBufferMemSyncForCpuEx(int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr)
Syncs the hardware memory cache for the CPU, API to be used for another process.
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:167
NvBufferTag
Defines tags that identify the components requesting a memory allocation.
Definition: nvbuf_utils.h:119
BT.2020 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:195
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:358
#define MAX_NUM_PLANES
Defines the maximum number of planes for a video frame.
Definition: nvbuf_utils.h:41
BT.601 colorspace - YVU420 ER multi-planar.
Definition: nvbuf_utils.h:151
tag for Camera.
Definition: nvbuf_utils.h:124
NvBufferColorFormat colorFormat
colorformat of the buffer.
Definition: nvbuf_utils.h:416
BT.601 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:143
struct _NvBufferCompositeParams NvBufferCompositeParams
Holds parameters related to compositing/blending.
Non-linear RGB BT.709 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbuf_utils.h:251
NvBufferCompositeBackground composite_bgcolor
background color values for composition.
Definition: nvbuf_utils.h:507
NvBufferSyncObjParams insyncobj[NVBUF_MAX_SYNCOBJ_PARAMS]
Definition: nvbuf_utils.h:342
BT.2020 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:243
BT.709_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:235
int32_t startofvaliddata
offset in bytes from the start of the buffer to the first valid byte.
Definition: nvbuf_utils.h:463
float dst_comp_rect_alpha[MAX_COMPOSITE_FRAME]
alpha values of input buffers for the blending.
Definition: nvbuf_utils.h:501
NvBufferDisplayScanFormat scanformat[MAX_NUM_PLANES]
display scan format - progressive/interlaced.
Definition: nvbuf_utils.h:468
int NvBufferCreateInterlace(int *dmabuf_fd, NvBufferCreateParams *input_params)
Allocates a hardware buffer for interlace scan format.
int NvBufferMemSyncForDeviceEx(int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, void **pVirtAddr)
Syncs the hardware memory cache for the device, API to be used for another process.
NvBufferPayloadType payloadType
payload type of the buffer.
Definition: nvbuf_utils.h:410
Holds extended parameters for a hardware buffer.
Definition: nvbuf_utils.h:457
NvBufferTransform_Flip transform_flip
flip method.
Definition: nvbuf_utils.h:521
uint32_t height[MAX_NUM_PLANES]
height of each planes of hardware buffer.
Definition: nvbuf_utils.h:443
#define NVBUF_MAX_SYNCOBJ_PARAMS
Defines the maximum number of sync object parameters.
Definition: nvbuf_utils.h:58
tag for Jpeg Encoder/Decoder.
Definition: nvbuf_utils.h:126
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:472
uint32_t width[MAX_NUM_PLANES]
width of each planes of hardware buffer.
Definition: nvbuf_utils.h:441
Holds parameters for buffer sync point object.
Definition: nvbuf_utils.h:331
uint32_t pitch[MAX_NUM_PLANES]
pitch of each planes of hardware buffer.
Definition: nvbuf_utils.h:445
uint32_t use_outsyncobj
Definition: nvbuf_utils.h:345
NvBufferDisplayScanFormat
Defines display scan formats for NvBuffer video planes.
Definition: nvbuf_utils.h:82
BT.709 ER colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:241
int NvBufferCreate(int *dmabuf_fd, int width, int height, NvBufferLayout layout, NvBufferColorFormat colorFormat)
Allocates a hardware 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:149
uint32_t dmabuf_fd
Holds the DMABUF FD of the hardware buffer.
Definition: nvbuf_utils.h:427
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:163
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:201
uint32_t offset[MAX_NUM_PLANES]
memory offset values of each video planes of hardware buffer.
Definition: nvbuf_utils.h:447
buffer payload with hardware memory handle for set of planes.
Definition: nvbuf_utils.h:74
BlockLinear Layout.
Definition: nvbuf_utils.h:98
BT.601 colorspace - Y/CrCb 4:4:4 10-bit multi-planar.
Definition: nvbuf_utils.h:225
BT.601 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:145
uint32_t top
rectangle top.
Definition: nvbuf_utils.h:367
int32_t memsize
size of the memory.
Definition: nvbuf_utils.h:433
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 hardware Buffer struct size.
Video flip with respect to X-axis.
Definition: nvbuf_utils.h:272
Invalid color format.
Definition: nvbuf_utils.h:255
BT.709 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:205
uint64_t flags[MAX_NUM_PLANES]
flags associated with planes
Definition: nvbuf_utils.h:476
void * nv_buffer
pointer to hardware buffer memory.
Definition: nvbuf_utils.h:429
void NvBufferSessionDestroy(NvBufferSession session)
Destroys an existing NvBufferSession.
Holds the input parameters for hardware buffer creation.
Definition: nvbuf_utils.h:403
int NvBufferTransformEx(int src_dmabuf_fd, NvBufferParamsEx *input_params, int dst_dmabuf_fd, NvBufferParamsEx *output_params, NvBufferTransformParams *transform_params)
Transforms one DMA buffer to another DMA buffer, API to be used for another process.
Non-linear RGB BT.2020 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbuf_utils.h:249
int NvBufferGetParams(int dmabuf_fd, NvBufferParams *params)
Gets buffer parameters.
NvBufferPayloadType
Defines Payload types for NvBuffer.
Definition: nvbuf_utils.h:71
uint8_t chromaLocHoriz
location settings
Definition: nvbuf_utils.h:390
Progessive scan formats.
Definition: nvbuf_utils.h:85
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).
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:408
BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:159
NvBufferTransform_Filter
Defines transform video filter types.
Definition: nvbuf_utils.h:284
BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbuf_utils.h:155
BT.601 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:183
BT.601 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:193
buffer sync point object.
Definition: nvbuf_utils.h:340
BT.601 colorspace - Y/CrCb 4:2:0 12-bit multi-planar.
Definition: nvbuf_utils.h:197
Holds parameters for buffer transform functions.
Definition: nvbuf_utils.h:516
BT.601_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:229
BT.709 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:199
NvBufferLayout layout
layout of the buffer.
Definition: nvbuf_utils.h:414
NvBufferTag nvbuf_tag
tag to associate with the buffer.
Definition: nvbuf_utils.h:418
BT.601 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:219
float r
background color value for r.
Definition: nvbuf_utils.h:354
struct _NvBufferSyncObjRec NvBufferSyncObj
buffer sync point object.
BT.601_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:227
tag None.
Definition: nvbuf_utils.h:122
Video flip none.
Definition: nvbuf_utils.h:264
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:165
struct _NvBufferTransformParams NvBufferTransformParams
Holds parameters for buffer transform functions.
uint32_t num_insyncobj
Definition: nvbuf_utils.h:343
transform flag to crop destination rectangle.
Definition: nvbuf_utils.h:307
BT.2020 colorspace - Y/CbCr 12 bit 4:4:4 multi-planar.
Definition: nvbuf_utils.h:245
BT.2020 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:189
Optical flow SAD calculation Buffer format.
Definition: nvbuf_utils.h:213
Video flip transpose.
Definition: nvbuf_utils.h:276
NvBufferPayloadType payloadType
payload type of the buffer.
Definition: nvbuf_utils.h:431
BT.709 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbuf_utils.h:231
NvBufferSyncObjParams outsyncobj
Definition: nvbuf_utils.h:344
BT.2020 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbuf_utils.h:209
NvBufferTransform_Flip
Defines video flip methods.
Definition: nvbuf_utils.h:261
BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbuf_utils.h:161
BT.601 colorspace - Y/CbCr 4:2:2 10-bit semi-planar.
Definition: nvbuf_utils.h:221
NvBufferRect dst_rect
destination rectangle coordinates for crop opeartion.
Definition: nvbuf_utils.h:527
void * payloadmetaInfo
metadata associated with the hardware buffer.
Definition: nvbuf_utils.h:478
NvBufferLayout
Defines Layout formats for NvBuffer video planes.
Definition: nvbuf_utils.h:93
tag for H264/H265 Video Encoder.
Definition: nvbuf_utils.h:130
int NvBufferDestroy(int dmabuf_fd)
Destroys a hardware buffer.
int NvBufferMemMapEx(int dmabuf_fd, NvBufferParamsEx *exparams, unsigned int plane, NvBufferMemFlags memflag, void **pVirtAddr)
Gets the memory-mapped virtual address of the plane, API to be used for another process.
int NvBufferCreateEx(int *dmabuf_fd, NvBufferCreateParams *input_params)
Allocates a hardware buffer.
Holds coordinates for a rectangle.
Definition: nvbuf_utils.h:364
NvBufferColorFormat
Defines color formats for NvBuffer.
Definition: nvbuf_utils.h:140
Holds parameters related to compositing/blending.
Definition: nvbuf_utils.h:492
Video flip rotate 90 degree counter-clockwise.
Definition: nvbuf_utils.h:266
BT.709_ER colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbuf_utils.h:187
struct _NvBufferSession * NvBufferSession
Holds an opaque NvBuffer session type required for parallel buffer tranformations and compositions...
Definition: nvbuf_utils.h:382
transform filter nicest.
Definition: nvbuf_utils.h:297
BT.2020 colorspace - YUV420 multi-planar.
Definition: nvbuf_utils.h:207
tag for VPR Buffers.
Definition: nvbuf_utils.h:128
int NvBufferSyncObjWait(NvBufferSyncObjParams *syncobj_params, unsigned int timeout)
This method can be used to wait on sync point ID.
BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbuf_utils.h:233
BT.601 colorspace - YUV422 multi-planar.
Definition: nvbuf_utils.h:147
NvBufferRect src_rect
source rectangle coordinates for crop opeartion.
Definition: nvbuf_utils.h:525
BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbuf_utils.h:175
int NvDestroyEGLImage(EGLDisplay display, EGLImageKHR eglImage)
Destroys an EGLImage object.
NvBufferSession session
NvBufferSession to be used for composition.
Definition: nvbuf_utils.h:510
flag to set for blending.
Definition: nvbuf_utils.h:321
NvBufferMemFlags
Defines memory access flags for NvBuffer.
Definition: nvbuf_utils.h:104
#define MAX_COMPOSITE_FRAME
Defines the maximum number of input video frames that can be used for composition.
Definition: nvbuf_utils.h:46