NVIDIA DeepStream SDK API Reference

7.1 Release
nvbufsurface.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION and its licensors retain all intellectual property
6  * and proprietary rights in and to this software, related documentation
7  * and any modifications thereto. Any use, reproduction, disclosure or
8  * distribution of this software and related documentation without an express
9  * license agreement from NVIDIA CORPORATION is strictly prohibited.
10  */
11 
29 #ifndef NVBUFSURFACE_H_
30 #define NVBUFSURFACE_H_
31 
32 #include <stdint.h>
33 #include <stdbool.h>
34 #ifdef __ANDROID__
35 #include <cutils/native_handle.h>
36 #endif
37 
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif
42 
50 #define STRUCTURE_PADDING 4
51 
53 #define NVBUF_MAX_PLANES 4
54 
59 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_HORIZ_DEFAULT 0
60 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_VERT_DEFAULT 1
61 
62 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_PARAMS_DEFAULT \
63  { \
64  NVBUFSURFACE_CHROMA_SUBSAMPLING_HORIZ_DEFAULT, \
65  NVBUFSURFACE_CHROMA_SUBSAMPLING_VERT_DEFAULT \
66  }
67 
71 typedef enum
72 {
79 
86 typedef enum
87 {
103 
107 typedef enum
108 {
297 
301 typedef enum
302 {
308 
312 typedef enum
313 {
331 
335 typedef enum
336 {
342 
347 {
362 
367 {
369  uint32_t num_planes;
382 
385 
386 
395 {
397  uint8_t chromaLocHoriz;
398  uint8_t chromaLocVert;
400 
404 typedef struct NvBufSurfaceCreateParams {
406  uint32_t gpuId;
408  uint32_t width;
410  uint32_t height;
413  uint32_t size;
425 
446  uint32_t _reservedParam;
447 
450 
454 typedef struct NvBufSurfaceMappedAddr {
458  void *eglImage;
459 
462 
466 typedef struct NvBufSurfaceParamsEx {
480 
483 
487 typedef struct NvBufSurfaceParams {
489  uint32_t width;
491  uint32_t height;
493  uint32_t pitch;
500  uint64_t bufferDesc;
502  uint32_t dataSize;
505  void * dataPtr;
513 
516 
520 typedef struct NvBufSurface {
522  uint32_t gpuId;
524  uint32_t batchSize;
527  uint32_t numFilled;
535 
537 } NvBufSurface;
538 
543 {
545  uint32_t width;
547  uint32_t height;
549  uint32_t pitch;
551  uint32_t offset;
553  uint32_t psize;
557  uint32_t blockheightlog2;
559  uint64_t flags;
561  uint8_t reserved[64];
563 
567 typedef struct NvBufSurfaceMapParams {
569  uint32_t num_planes;
571  uint32_t gpuId;
573  uint64_t fd;
575  uint32_t totalSize;
589  uint8_t reserved[64];
591 
611 int NvBufSurfaceCreate (NvBufSurface **surf, uint32_t batchSize,
612  NvBufSurfaceCreateParams *params);
613 
630 int NvBufSurfaceAllocate (NvBufSurface **surf, uint32_t batchSize,
631  NvBufSurfaceAllocateParams *paramsext);
632 
641 
681 int NvBufSurfaceMap (NvBufSurface *surf, int index, int plane, NvBufSurfaceMemMapFlags type);
682 
694 int NvBufSurfaceUnMap (NvBufSurface *surf, int index, int plane);
695 
712 int NvBufSurfaceCopy (NvBufSurface *srcSurf, NvBufSurface *dstSurf);
713 
730 int NvBufSurface2Raw (NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr);
731 
748 int Raw2NvBufSurface (unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int in_width, unsigned int in_height, NvBufSurface *Surf);
749 
764 int NvBufSurfaceSyncForCpu (NvBufSurface *surf, int index, int plane);
765 
780 int NvBufSurfaceSyncForDevice (NvBufSurface *surf, int index, int plane);
781 
790 int NvBufSurfaceFromFd (int dmabuf_fd, void **buffer);
791 
807 int NvBufSurfaceMemSet (NvBufSurface *surf, int index, int plane, uint8_t value);
808 
835 int NvBufSurfaceMapEglImage (NvBufSurface *surf, int index);
836 
846 int NvBufSurfaceUnMapEglImage (NvBufSurface *surf, int index);
847 
859 int NvBufSurfaceImport (NvBufSurface **out_nvbuf_surf, const NvBufSurfaceMapParams *in_params);
860 
871 #ifdef __ANDROID__
872 
880 int NvBufSurfaceGetBufferId(uint64_t *out_buf_id, buffer_handle_t *handle);
891 int NvBufSurfaceImportGraphicBufferFd(int *out_dmabuf_fd, buffer_handle_t *handle, NvBufSurfaceMapParams *exparams);
892 #endif
893 
894 int NvBufSurfaceGetMapParams (const NvBufSurface *surf, int index, NvBufSurfaceMapParams *params);
895 
898 #ifdef __cplusplus
899 }
900 #endif
901 #endif /* NVBUFSURFACE_H_ */
NvBufSurfaceParamsEx
struct NvBufSurfaceParamsEx NvBufSurfaceParamsEx
Hold the information(extended) of single buffer in the batch.
NvBufSurfaceMapParams::layout
NvBufSurfaceLayout layout
Holds BL or PL layout.
Definition: nvbufsurface.h:579
NVBUF_COLOR_FORMAT_NV12_10LE
@ NVBUF_COLOR_FORMAT_NV12_10LE
Specifies BT.601 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:168
NVBUF_COLOR_FORMAT_YUV420_709_ER
@ NVBUF_COLOR_FORMAT_YUV420_709_ER
Specifies BT.709 colorspace - YUV420 ER multi-planar.
Definition: nvbufsurface.h:174
NvBufSurfaceTag_VIDEO_DEC
@ NvBufSurfaceTag_VIDEO_DEC
tag for H264/H265/VP9 Video Decoder.
Definition: nvbufsurface.h:99
NVBUF_COLOR_FORMAT_NV12_709
@ NVBUF_COLOR_FORMAT_NV12_709
Specifies BT.709 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:176
NvBufSurfaceMappedAddr
struct NvBufSurfaceMappedAddr NvBufSurfaceMappedAddr
Hold the pointers of mapped buffer.
NvBufSurfaceMapParams::fd
uint64_t fd
Holds a DMABUF FD.
Definition: nvbufsurface.h:573
NvBufSurfaceCreateParams::colorFormat
NvBufSurfaceColorFormat colorFormat
Holds the color format of the buffer.
Definition: nvbufsurface.h:418
NvBufSurfaceMapPlaneParams::flags
uint64_t flags
Holds flags associated with the planes.
Definition: nvbufsurface.h:559
NVBUF_COLOR_FORMAT_YUV420_2020
@ NVBUF_COLOR_FORMAT_YUV420_2020
Specifies BT.2020 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:180
NvBufSurfaceParamsEx::sizeofvaliddatainbytes
int32_t sizeofvaliddatainbytes
size of the valid data from the first to the last valid byte.
Definition: nvbufsurface.h:472
NvBufSurfaceChromaSubsamplingParams
Holds Chroma Subsampling parameters for NvBufSurface allocation.
Definition: nvbufsurface.h:394
NvBufSurfacePlaneParamsEx
Holds plane wise parameters(extended) of a buffer.
Definition: nvbufsurface.h:346
NvBufSurfaceCreateParams::height
uint32_t height
Holds the height of the buffer.
Definition: nvbufsurface.h:410
NVBUF_MEM_CUDA_PINNED
@ NVBUF_MEM_CUDA_PINNED
Specifies CUDA Host memory type.
Definition: nvbufsurface.h:319
NVBUF_COLOR_FORMAT_A32
@ NVBUF_COLOR_FORMAT_A32
Specifies Optical flow SAD calculation Buffer format.
Definition: nvbufsurface.h:246
NVBUF_COLOR_FORMAT_NV12_12LE_709_ER
@ NVBUF_COLOR_FORMAT_NV12_12LE_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:284
NvBufSurfaceMapPlaneParams
Holds plane parameters to map the buffer received from another process.
Definition: nvbufsurface.h:542
NvBufSurfaceMapPlaneParams::offset
uint32_t offset
Holds the offsets of planes in bytes.
Definition: nvbufsurface.h:551
NvBufSurfaceSyncForDevice
int NvBufSurfaceSyncForDevice(NvBufSurface *surf, int index, int plane)
Syncs the hardware memory cache for the device.
NvBufSurfaceTag_PROTECTED
@ NvBufSurfaceTag_PROTECTED
tag for VPR Buffers.
Definition: nvbufsurface.h:95
NvBufSurfaceMap
int NvBufSurfaceMap(NvBufSurface *surf, int index, int plane, NvBufSurfaceMemMapFlags type)
Maps hardware batched buffers to the HOST or CPU address space.
NVBUF_COLOR_FORMAT_VYUY
@ NVBUF_COLOR_FORMAT_VYUY
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:134
NVBUF_DISPLAYSCANFORMAT_INTERLACED
@ NVBUF_DISPLAYSCANFORMAT_INTERLACED
Interlaced scan formats.
Definition: nvbufsurface.h:340
NvBufSurfacePlaneParamsEx::scanformat
NvBufSurfaceDisplayScanFormat scanformat[NVBUF_MAX_PLANES]
display scan format - progressive/interlaced.
Definition: nvbufsurface.h:349
NvBufSurfacePlaneParams::psize
uint32_t psize[NVBUF_MAX_PLANES]
Holds the sizes of planes in bytes.
Definition: nvbufsurface.h:379
NvBufSurfaceAllocateParams::_reservedParam
uint32_t _reservedParam
Used void* from custom param for 64 bit machine, using other uint32_t param.
Definition: nvbufsurface.h:446
NVBUF_COLOR_FORMAT_YUV444_10LE_709_ER
@ NVBUF_COLOR_FORMAT_YUV444_10LE_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:266
NVBUF_COLOR_FORMAT_B8_G8_R8
@ NVBUF_COLOR_FORMAT_B8_G8_R8
Specifies BGR- unsigned 8 bit multiplanar plane.
Definition: nvbufsurface.h:196
NVBUF_COLOR_FORMAT_UYVY
@ NVBUF_COLOR_FORMAT_UYVY
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:130
NVBUF_COLOR_FORMAT_VYUY_ER
@ NVBUF_COLOR_FORMAT_VYUY_ER
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:136
NvBufSurfaceDisplayScanFormat
NvBufSurfaceDisplayScanFormat
Defines display scan formats for NvBufSurface video planes.
Definition: nvbufsurface.h:335
NvBufSurfaceTag_CAMERA
@ NvBufSurfaceTag_CAMERA
tag for Camera.
Definition: nvbufsurface.h:91
NVBUF_COLOR_FORMAT_GRAY8
@ NVBUF_COLOR_FORMAT_GRAY8
Specifies 8 bit GRAY scale - single plane.
Definition: nvbufsurface.h:112
NVBUF_COLOR_FORMAT_BGRA
@ NVBUF_COLOR_FORMAT_BGRA
Specifies BGRA-8-8-8-8 single plane.
Definition: nvbufsurface.h:150
NvBufSurface::surfaceList
NvBufSurfaceParams * surfaceList
Holds a pointer to an array of batched buffers.
Definition: nvbufsurface.h:534
NvBufSurfaceParamsEx::is_protected
bool is_protected
get buffer vpr information.
Definition: nvbufsurface.h:477
NvBufSurfacePlaneParams::width
uint32_t width[NVBUF_MAX_PLANES]
Holds the widths of planes.
Definition: nvbufsurface.h:371
NvBufSurfaceMemSet
int NvBufSurfaceMemSet(NvBufSurface *surf, int index, int plane, uint8_t value)
Fills each byte of the buffer(s) in an NvBufSurface with a provided value.
NVBUF_COLOR_FORMAT_NV12_12LE
@ NVBUF_COLOR_FORMAT_NV12_12LE
Specifies BT.601 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:170
NvBufSurfaceAllocateParams
struct NvBufSurfaceAllocateParams NvBufSurfaceAllocateParams
Hold extended parameters required to allocate NvBufSurface.
NVBUF_COLOR_FORMAT_NV16
@ NVBUF_COLOR_FORMAT_NV16
Specifies BT.601 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:210
NVBUF_COLOR_FORMAT_YUV420_ER
@ NVBUF_COLOR_FORMAT_YUV420_ER
Specifies BT.601 colorspace - YUV420 ER multi-planar.
Definition: nvbufsurface.h:118
NvBufSurface
Holds information about batched buffers.
Definition: nvbufsurface.h:520
NVBUF_COLOR_FORMAT_NV24_709_ER
@ NVBUF_COLOR_FORMAT_NV24_709_ER
Specifies BT.709_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:228
NvBufSurfacePlaneParamsEx::secondfieldoffset
uint32_t secondfieldoffset[NVBUF_MAX_PLANES]
offset of the second field for interlaced buffer.
Definition: nvbufsurface.h:351
NvBufSurfacePlaneParams::height
uint32_t height[NVBUF_MAX_PLANES]
Holds the heights of planes.
Definition: nvbufsurface.h:373
NvBufSurfaceTag_VIDEO_CONVERT
@ NvBufSurfaceTag_VIDEO_CONVERT
tag for Video Transform/Composite/Blend.
Definition: nvbufsurface.h:101
NVBUF_MEM_HANDLE
@ NVBUF_MEM_HANDLE
Specifies NVRM Handle type.
Definition: nvbufsurface.h:327
NvBufSurface
struct NvBufSurface NvBufSurface
Holds information about batched buffers.
NVBUF_COLOR_FORMAT_NV12_12LE_709
@ NVBUF_COLOR_FORMAT_NV12_12LE_709
Specifies BT.709 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:282
NVBUF_COLOR_FORMAT_BGRx
@ NVBUF_COLOR_FORMAT_BGRx
Specifies BGRx-8-8-8-8 single plane.
Definition: nvbufsurface.h:158
NVBUF_COLOR_FORMAT_NV16_10LE
@ NVBUF_COLOR_FORMAT_NV16_10LE
Specifies BT.601 colorspace - Y/CbCr 4:2:2 10-bit semi-planar.
Definition: nvbufsurface.h:212
NVBUF_COLOR_FORMAT_NV16_709_ER
@ NVBUF_COLOR_FORMAT_NV16_709_ER
Specifies BT.709_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:226
NvBufSurfaceMapPlaneParams::height
uint32_t height
Holds the heights of planes.
Definition: nvbufsurface.h:547
NvBufSurfaceCreateParams::width
uint32_t width
Holds the width of the buffer.
Definition: nvbufsurface.h:408
NvBufSurfaceParams::dataPtr
void * dataPtr
Holds a pointer to allocated memory.
Definition: nvbufsurface.h:505
NvBufSurface::memType
NvBufSurfaceMemType memType
Holds type of memory for buffers in the batch.
Definition: nvbufsurface.h:532
NvBufSurfaceUnMapEglImage
int NvBufSurfaceUnMapEglImage(NvBufSurface *surf, int index)
Destroys the previously created EGLImage object(s).
NvBufSurfaceMapParams
Holds buffer parameters to map the buffer received from another process.
Definition: nvbufsurface.h:567
NVBUF_MEM_CUDA_UNIFIED
@ NVBUF_MEM_CUDA_UNIFIED
Specifies CUDA Unified memory type.
Definition: nvbufsurface.h:323
NvBufSurfaceCreateParams::memType
NvBufSurfaceMemType memType
Holds the type of memory to be allocated.
Definition: nvbufsurface.h:423
NVBUF_COLOR_FORMAT_NV12_10LE_709_ER
@ NVBUF_COLOR_FORMAT_NV12_10LE_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:188
NvBufSurfaceAllocateParams::disablePitchPadding
bool disablePitchPadding
disable pitch padding allocation only applicable for cuda and system memory allocation pitch would ...
Definition: nvbufsurface.h:444
NVBUF_COLOR_FORMAT_NV12_12LE_ER
@ NVBUF_COLOR_FORMAT_NV12_12LE_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:280
NvBufSurfaceAllocate
int NvBufSurfaceAllocate(NvBufSurface **surf, uint32_t batchSize, NvBufSurfaceAllocateParams *paramsext)
Allocate batch of buffers.
NVBUF_MEM_CUDA_DEVICE
@ NVBUF_MEM_CUDA_DEVICE
Specifies CUDA Device memory type.
Definition: nvbufsurface.h:321
NvBufSurfacePlaneParams::offset
uint32_t offset[NVBUF_MAX_PLANES]
Holds the offsets of planes in bytes.
Definition: nvbufsurface.h:377
NvBufSurfaceMapParams::reserved
uint8_t reserved[64]
Reserved.
Definition: nvbufsurface.h:589
NVBUF_COLOR_FORMAT_YVU420_ER
@ NVBUF_COLOR_FORMAT_YVU420_ER
Specifies BT.601 colorspace - YVU420 ER multi-planar.
Definition: nvbufsurface.h:120
NVBUF_COLOR_FORMAT_YUV444_709
@ NVBUF_COLOR_FORMAT_YUV444_709
Specifies BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:254
NVBUF_COLOR_FORMAT_YUV420_709
@ NVBUF_COLOR_FORMAT_YUV420_709
Specifies BT.709 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:172
NVBUF_COLOR_FORMAT_UYVP
@ NVBUF_COLOR_FORMAT_UYVP
Specifies BT.601 colorspace - 10 bit YUV 4:2:2 interleaved.
Definition: nvbufsurface.h:248
NVBUF_COLOR_FORMAT_xRGB
@ NVBUF_COLOR_FORMAT_xRGB
Specifies xRGB-8-8-8-8 single plane.
Definition: nvbufsurface.h:160
NVBUF_COLOR_FORMAT_YUV444_12LE_709
@ NVBUF_COLOR_FORMAT_YUV444_12LE_709
Specifies BT.709 colorspace - Y/CbCr 4:4:4 12-bit multi-planar.
Definition: nvbufsurface.h:274
NVBUF_COLOR_FORMAT_NV24_709
@ NVBUF_COLOR_FORMAT_NV24_709
Specifies BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:224
NvBufSurfaceCreateParams::layout
NvBufSurfaceLayout layout
Holds the surface layout.
Definition: nvbufsurface.h:421
NVBUF_MAX_PLANES
#define NVBUF_MAX_PLANES
Defines the maximum number of planes.
Definition: nvbufsurface.h:53
NVBUF_LAYOUT_PITCH
@ NVBUF_LAYOUT_PITCH
Specifies pitch layout.
Definition: nvbufsurface.h:304
NvBufSurfaceAllocateParams::displayscanformat
NvBufSurfaceDisplayScanFormat displayscanformat
Display scan format.
Definition: nvbufsurface.h:434
NvBufSurfaceParamsEx::planeParamsex
NvBufSurfacePlaneParamsEx planeParamsex
plane wise extended info
Definition: nvbufsurface.h:479
NVBUF_MEM_DEFAULT
@ NVBUF_MEM_DEFAULT
Specifies the default memory type, i.e.
Definition: nvbufsurface.h:317
NVBUF_COLOR_FORMAT_YUYV_ER
@ NVBUF_COLOR_FORMAT_YUYV_ER
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:140
NVBUF_MEM_SYSTEM
@ NVBUF_MEM_SYSTEM
Specifies memory allocated by malloc().
Definition: nvbufsurface.h:329
NvBufSurfacePlaneParams::_reserved
void * _reserved[STRUCTURE_PADDING *NVBUF_MAX_PLANES]
Definition: nvbufsurface.h:383
NvBufSurfaceDestroy
int NvBufSurfaceDestroy(NvBufSurface *surf)
Free the batched buffers previously allocated through NvBufSurfaceCreate.
NVBUF_COLOR_FORMAT_NV21_12LE
@ NVBUF_COLOR_FORMAT_NV21_12LE
Specifies BT.601 colorspace - Y/CrCb 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:206
NvBufSurfaceParams::colorFormat
NvBufSurfaceColorFormat colorFormat
Holds the color format of the buffer.
Definition: nvbufsurface.h:495
NVBUF_COLOR_FORMAT_YUV444_10LE
@ NVBUF_COLOR_FORMAT_YUV444_10LE
Specifies BT.601 colorspace - Y/CbCr 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:260
NvBufSurfaceMapParams
struct NvBufSurfaceMapParams NvBufSurfaceMapParams
Holds buffer parameters to map the buffer received from another process.
NVBUF_COLOR_FORMAT_NV24
@ NVBUF_COLOR_FORMAT_NV24
Specifies BT.601 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:214
NvBufSurfacePlaneParams
struct NvBufSurfacePlaneParams NvBufSurfacePlaneParams
Holds plane wise parameters of a buffer.
NvBufSurfaceAllocateParams::_reserved
void * _reserved[STRUCTURE_PADDING-1]
Definition: nvbufsurface.h:448
NvBufSurfaceMapParams::memType
NvBufSurfaceMemType memType
Holds type of memory.
Definition: nvbufsurface.h:577
NVBUF_COLOR_FORMAT_GRAY16_LE
@ NVBUF_COLOR_FORMAT_GRAY16_LE
Specifies 16 bit GRAY scale - single plane.
Definition: nvbufsurface.h:294
NVBUF_COLOR_FORMAT_ARGB
@ NVBUF_COLOR_FORMAT_ARGB
Specifies ARGB-8-8-8-8 single plane.
Definition: nvbufsurface.h:152
NVBUF_COLOR_FORMAT_YUV444_10LE_709
@ NVBUF_COLOR_FORMAT_YUV444_10LE_709
Specifies BT.709 colorspace - Y/CbCr 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:264
NVBUF_COLOR_FORMAT_YVYU
@ NVBUF_COLOR_FORMAT_YVYU
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:142
NVBUF_COLOR_FORMAT_NV12_10LE_ER
@ NVBUF_COLOR_FORMAT_NV12_10LE_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:184
NVBUF_COLOR_FORMAT_NV12_2020
@ NVBUF_COLOR_FORMAT_NV12_2020
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:182
NVBUF_COLOR_FORMAT_xBGR
@ NVBUF_COLOR_FORMAT_xBGR
Specifies xBGR-8-8-8-8 single plane.
Definition: nvbufsurface.h:162
NVBUF_COLOR_FORMAT_YUYV
@ NVBUF_COLOR_FORMAT_YUYV
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:138
NVBUF_COLOR_FORMAT_NV16_709
@ NVBUF_COLOR_FORMAT_NV16_709
Specifies BT.709 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:222
NVBUF_COLOR_FORMAT_B32F_G32F_R32F
@ NVBUF_COLOR_FORMAT_B32F_G32F_R32F
Specifies BGR-32bit Floating point multiplanar plane.
Definition: nvbufsurface.h:200
NvBufSurfaceParams::bufferDesc
uint64_t bufferDesc
Holds a DMABUF FD.
Definition: nvbufsurface.h:500
NvBufSurface::isContiguous
bool isContiguous
Holds an "is contiguous" flag.
Definition: nvbufsurface.h:530
NVBUF_COLOR_FORMAT_YUV444_12LE_ER
@ NVBUF_COLOR_FORMAT_YUV444_12LE_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:4:4 12-bit multi-planar.
Definition: nvbufsurface.h:272
STRUCTURE_PADDING
#define STRUCTURE_PADDING
Defines the default padding length for reserved fields of structures.
Definition: nvbufsurface.h:50
NvBufSurfacePlaneParamsEx::_reserved
void * _reserved[(STRUCTURE_PADDING - 1) *NVBUF_MAX_PLANES]
Definition: nvbufsurface.h:360
NvBufSurfaceParams::paramex
NvBufSurfaceParamsEx * paramex
pointers of extended parameters of single buffer in the batch.
Definition: nvbufsurface.h:512
NvBufSurfaceParams::layout
NvBufSurfaceLayout layout
Holds BL or PL.
Definition: nvbufsurface.h:497
NVBUF_COLOR_FORMAT_YUV444_ER
@ NVBUF_COLOR_FORMAT_YUV444_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:4:4 multi-planar.
Definition: nvbufsurface.h:252
NvBufSurfaceParams
struct NvBufSurfaceParams NvBufSurfaceParams
Hold the information of single buffer in the batch.
NvBufSurfaceParams
Hold the information of single buffer in the batch.
Definition: nvbufsurface.h:487
NvBufSurfaceParamsEx
Hold the information(extended) of single buffer in the batch.
Definition: nvbufsurface.h:466
NVBUF_COLOR_FORMAT_YUV444_10LE_ER
@ NVBUF_COLOR_FORMAT_YUV444_10LE_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:262
NvBufSurfaceMapPlaneParams::psize
uint32_t psize
Holds the sizes of planes in bytes.
Definition: nvbufsurface.h:553
NVBUF_COLOR_FORMAT_NV21
@ NVBUF_COLOR_FORMAT_NV21
Specifies BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:126
NvBufSurfaceGetMapParams
int NvBufSurfaceGetMapParams(const NvBufSurface *surf, int index, NvBufSurfaceMapParams *params)
Get buffer information to map the buffer in another process.
NvBufSurfaceAllocateParams::chromaSubsampling
NvBufSurfaceChromaSubsamplingParams chromaSubsampling
Chroma Subsampling parameters.
Definition: nvbufsurface.h:436
NVBUF_COLOR_FORMAT_BGRA_10_10_10_2_709
@ NVBUF_COLOR_FORMAT_BGRA_10_10_10_2_709
Specifies Non-linear RGB BT.709 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbufsurface.h:242
NvBufSurfaceMappedAddr
Hold the pointers of mapped buffer.
Definition: nvbufsurface.h:454
NvBufSurface2Raw
int NvBufSurface2Raw(NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int out_width, unsigned int out_height, unsigned char *ptr)
Copies the NvBufSurface plane memory content to a raw buffer plane for a specific batched buffer.
NvBufSurfaceMappedAddr::addr
void * addr[NVBUF_MAX_PLANES]
Holds planewise pointers to a CPU mapped buffer.
Definition: nvbufsurface.h:456
NVBUF_COLOR_FORMAT_SIGNED_R16G16
@ NVBUF_COLOR_FORMAT_SIGNED_R16G16
Specifies color format for packed 2 signed shorts
Definition: nvbufsurface.h:192
NVBUF_COLOR_FORMAT_RGBA_10_10_10_2_2020
@ NVBUF_COLOR_FORMAT_RGBA_10_10_10_2_2020
Specifies Non-linear RGB BT.2020 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbufsurface.h:240
NVBUF_COLOR_FORMAT_INVALID
@ NVBUF_COLOR_FORMAT_INVALID
Specifies an invalid color format.
Definition: nvbufsurface.h:110
NvBufSurfaceMapPlaneParams::pitch
uint32_t pitch
Holds the pitches of planes in bytes.
Definition: nvbufsurface.h:549
NVBUF_COLOR_FORMAT_RGB
@ NVBUF_COLOR_FORMAT_RGB
Specifies RGB-8-8-8 single plane.
Definition: nvbufsurface.h:164
NVBUF_COLOR_FORMAT_RGBA_10_10_10_2_709
@ NVBUF_COLOR_FORMAT_RGBA_10_10_10_2_709
Specifies Non-linear RGB BT.709 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbufsurface.h:238
NvBufSurfaceParams::mappedAddr
NvBufSurfaceMappedAddr mappedAddr
Holds pointers to mapped buffers.
Definition: nvbufsurface.h:510
NVBUF_COLOR_FORMAT_R8_G8_B8
@ NVBUF_COLOR_FORMAT_R8_G8_B8
Specifies RGB- unsigned 8 bit multiplanar plane.
Definition: nvbufsurface.h:194
NvBufSurfaceMapParams::gpuId
uint32_t gpuId
Holds a GPU ID.
Definition: nvbufsurface.h:571
NvBufSurfaceParams::pitch
uint32_t pitch
Holds the pitch of the buffer.
Definition: nvbufsurface.h:493
NVBUF_COLOR_FORMAT_UYVY_709
@ NVBUF_COLOR_FORMAT_UYVY_709
Specifies BT.709 colorspace - Y/CbCr 4:2:2 planar.
Definition: nvbufsurface.h:288
NvBufSurface::numFilled
uint32_t numFilled
Holds the number valid and filled buffers.
Definition: nvbufsurface.h:527
NvBufSurfaceParamsEx::chromaSubsampling
NvBufSurfaceChromaSubsamplingParams chromaSubsampling
chroma subsampling parameters.
Definition: nvbufsurface.h:475
NvBufSurfaceFromFd
int NvBufSurfaceFromFd(int dmabuf_fd, void **buffer)
Gets the NvBufSurface from the DMABUF FD.
NvBufSurfaceUnMap
int NvBufSurfaceUnMap(NvBufSurface *surf, int index, int plane)
Unmaps previously mapped buffer(s).
NvBufSurfaceMapParams::totalSize
uint32_t totalSize
Holds the total size of allocated memory.
Definition: nvbufsurface.h:575
NVBUF_DISPLAYSCANFORMAT_PROGRESSIVE
@ NVBUF_DISPLAYSCANFORMAT_PROGRESSIVE
Progessive scan formats.
Definition: nvbufsurface.h:338
NVBUF_COLOR_FORMAT_YUV444_12LE_2020
@ NVBUF_COLOR_FORMAT_YUV444_12LE_2020
Specifies BT.2020 colorspace - Y/CbCr 4:4:4 12-bit multi-planar.
Definition: nvbufsurface.h:278
NVBUF_COLOR_FORMAT_YUV444_2020
@ NVBUF_COLOR_FORMAT_YUV444_2020
Specifies BT.2020 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:258
NvBufSurfaceMapPlaneParams::blockheightlog2
uint32_t blockheightlog2
Holds block height of the planes for blockLinear layout buffer.
Definition: nvbufsurface.h:557
NVBUF_COLOR_FORMAT_UYVY_ER
@ NVBUF_COLOR_FORMAT_UYVY_ER
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:132
NvBufSurfaceMapPlaneParams
struct NvBufSurfaceMapPlaneParams NvBufSurfaceMapPlaneParams
Holds plane parameters to map the buffer received from another process.
NVBUF_COLOR_FORMAT_NV24_10LE_709
@ NVBUF_COLOR_FORMAT_NV24_10LE_709
Specifies BT.709 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:230
NVBUF_COLOR_FORMAT_UYVY_2020
@ NVBUF_COLOR_FORMAT_UYVY_2020
Specifies BT.2020 colorspace - Y/CbCr 4:2:2 planar.
Definition: nvbufsurface.h:292
NVBUF_MAP_READ_WRITE
@ NVBUF_MAP_READ_WRITE
Specifies NvBufSurface mapping type "read/write.".
Definition: nvbufsurface.h:76
NvBufSurfaceTag
NvBufSurfaceTag
Defines tags that identify the components requesting a memory allocation.
Definition: nvbufsurface.h:86
NVBUF_COLOR_FORMAT_LAST
@ NVBUF_COLOR_FORMAT_LAST
Definition: nvbufsurface.h:295
NvBufSurfaceMemType
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Definition: nvbufsurface.h:312
NvBufSurfaceAllocateParams
Hold extended parameters required to allocate NvBufSurface.
Definition: nvbufsurface.h:430
NvBufSurfacePlaneParamsEx
struct NvBufSurfacePlaneParamsEx NvBufSurfacePlaneParamsEx
Holds plane wise parameters(extended) of a buffer.
NVBUF_COLOR_FORMAT_YVU420
@ NVBUF_COLOR_FORMAT_YVU420
Specifies BT.601 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:116
Raw2NvBufSurface
int Raw2NvBufSurface(unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int in_width, unsigned int in_height, NvBufSurface *Surf)
Copies the raw buffer plane memory content to the NvBufSurface plane memory of a specific batched buf...
NvBufSurfaceParams::planeParams
NvBufSurfacePlaneParams planeParams
Holds planewise information (width, height, pitch, offset, etc.).
Definition: nvbufsurface.h:507
NVBUF_COLOR_FORMAT_YUV444_12LE_709_ER
@ NVBUF_COLOR_FORMAT_YUV444_12LE_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:4:4 12-bit multi-planar.
Definition: nvbufsurface.h:276
NVBUF_COLOR_FORMAT_UYVP_ER
@ NVBUF_COLOR_FORMAT_UYVP_ER
Specifies BT.601 colorspace - 10 bit YUV ER 4:2:2 interleaved.
Definition: nvbufsurface.h:250
NvBufSurfaceMapParams::colorFormat
NvBufSurfaceColorFormat colorFormat
Holds the color format.
Definition: nvbufsurface.h:583
NVBUF_COLOR_FORMAT_YVYU_ER
@ NVBUF_COLOR_FORMAT_YVYU_ER
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:144
NvBufSurfaceParams::height
uint32_t height
Holds the height of the buffer.
Definition: nvbufsurface.h:491
NVBUF_COLOR_FORMAT_NV21_10LE
@ NVBUF_COLOR_FORMAT_NV21_10LE
Specifies BT.601 colorspace - Y/CrCb 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:204
NvBufSurfaceAllocateParams::memtag
NvBufSurfaceTag memtag
components tag to be used for memory allocation
Definition: nvbufsurface.h:438
NvBufSurfaceCopy
int NvBufSurfaceCopy(NvBufSurface *srcSurf, NvBufSurface *dstSurf)
Copies the content of source batched buffer(s) to destination batched buffer(s).
NvBufSurfaceLayout
NvBufSurfaceLayout
Specifies layout formats for NvBufSurface video planes.
Definition: nvbufsurface.h:301
NVBUF_COLOR_FORMAT_GRAY8_ER
@ NVBUF_COLOR_FORMAT_GRAY8_ER
Specifies 8 bit GRAY scale ER - single plane.
Definition: nvbufsurface.h:286
NvBufSurfacePlaneParams::num_planes
uint32_t num_planes
Holds the number of planes.
Definition: nvbufsurface.h:369
NvBufSurfacePlaneParamsEx::blockheightlog2
uint32_t blockheightlog2[NVBUF_MAX_PLANES]
block height of the planes for blockLinear layout buffer.
Definition: nvbufsurface.h:353
NvBufSurfaceSyncForCpu
int NvBufSurfaceSyncForCpu(NvBufSurface *surf, int index, int plane)
Syncs the HW memory cache for the CPU.
NvBufSurfaceParamsEx::startofvaliddata
int32_t startofvaliddata
offset in bytes from the start of the buffer to the first valid byte.
Definition: nvbufsurface.h:469
NvBufSurfaceChromaSubsamplingParams::chromaLocVert
uint8_t chromaLocVert
Definition: nvbufsurface.h:398
NvBufSurfaceMapPlaneParams::reserved
uint8_t reserved[64]
Reserved.
Definition: nvbufsurface.h:561
NvBufSurfaceCreateParams::size
uint32_t size
Holds the amount of memory to be allocated.
Definition: nvbufsurface.h:413
NVBUF_COLOR_FORMAT_YUV422
@ NVBUF_COLOR_FORMAT_YUV422
Specifies BT.601 colorspace - YUV422 multi-planar.
Definition: nvbufsurface.h:202
NVBUF_COLOR_FORMAT_NV21_ER
@ NVBUF_COLOR_FORMAT_NV21_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:128
NVBUF_COLOR_FORMAT_YUV444_709_ER
@ NVBUF_COLOR_FORMAT_YUV444_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:4:4 multi-planar.
Definition: nvbufsurface.h:256
NVBUF_COLOR_FORMAT_NV12_ER
@ NVBUF_COLOR_FORMAT_NV12_ER
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:124
NvBufSurfaceParams::dataSize
uint32_t dataSize
Holds the amount of allocated memory.
Definition: nvbufsurface.h:502
NvBufSurface::gpuId
uint32_t gpuId
Holds a GPU ID.
Definition: nvbufsurface.h:522
NvBufSurfaceCreateParams
struct NvBufSurfaceCreateParams NvBufSurfaceCreateParams
Holds parameters required to allocate an NvBufSurface.
NVBUF_MAP_READ
@ NVBUF_MAP_READ
Specifies NvBufSurface mapping type "read.".
Definition: nvbufsurface.h:73
NVBUF_LAYOUT_BLOCK_LINEAR
@ NVBUF_LAYOUT_BLOCK_LINEAR
Specifies block linear layout.
Definition: nvbufsurface.h:306
NvBufSurface::batchSize
uint32_t batchSize
Holds the batch size.
Definition: nvbufsurface.h:524
NvBufSurfacePlaneParamsEx::physicaladdress
uint32_t physicaladdress[NVBUF_MAX_PLANES]
physical address of allocated planes.
Definition: nvbufsurface.h:355
NVBUF_COLOR_FORMAT_NV24_ER
@ NVBUF_COLOR_FORMAT_NV24_ER
Specifies BT.601_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:220
NvBufSurfacePlaneParams::pitch
uint32_t pitch[NVBUF_MAX_PLANES]
Holds the pitches of planes in bytes.
Definition: nvbufsurface.h:375
NVBUF_COLOR_FORMAT_YUV444
@ NVBUF_COLOR_FORMAT_YUV444
Specifies BT.601 colorspace - YUV444 multi-planar.
Definition: nvbufsurface.h:146
NVBUF_COLOR_FORMAT_NV24_10LE
@ NVBUF_COLOR_FORMAT_NV24_10LE
Specifies BT.601 colorspace - Y/CrCb 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:216
NvBufSurfaceMapParams::planes
NvBufSurfaceMapPlaneParams planes[NVBUF_MAX_PLANES]
Holds plane parameters.
Definition: nvbufsurface.h:587
NvBufSurfaceParamsEx::_reserved
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:481
NvBufSurfaceCreateParams::isContiguous
bool isContiguous
Holds a "contiguous memory" flag.
Definition: nvbufsurface.h:416
NVBUF_COLOR_FORMAT_YUV444_12LE
@ NVBUF_COLOR_FORMAT_YUV444_12LE
Specifies BT.601 colorspace - Y/CbCr 4:4:4 12-bit multi-planar.
Definition: nvbufsurface.h:270
NvBufSurfaceMappedAddr::eglImage
void * eglImage
Holds a pointer to a mapped EGLImage.
Definition: nvbufsurface.h:458
NVBUF_COLOR_FORMAT_ABGR
@ NVBUF_COLOR_FORMAT_ABGR
Specifies ABGR-8-8-8-8 single plane.
Definition: nvbufsurface.h:154
NvBufSurfaceImport
int NvBufSurfaceImport(NvBufSurface **out_nvbuf_surf, const NvBufSurfaceMapParams *in_params)
Import parameters received from another process and create hardware buffer.
NVBUF_COLOR_FORMAT_NV12_10LE_709
@ NVBUF_COLOR_FORMAT_NV12_10LE_709
Specifies BT.709 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:186
NVBUF_MAP_WRITE
@ NVBUF_MAP_WRITE
Specifies NvBufSurface mapping type "write.".
Definition: nvbufsurface.h:74
NvBufSurfacePlaneParams
Holds plane wise parameters of a buffer.
Definition: nvbufsurface.h:366
NvBufSurfaceMapPlaneParams::width
uint32_t width
Holds the widths of planes.
Definition: nvbufsurface.h:545
NVBUF_COLOR_FORMAT_NV16_ER
@ NVBUF_COLOR_FORMAT_NV16_ER
Specifies BT.601_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:218
NvBufSurfaceParams::_reserved
void * _reserved[STRUCTURE_PADDING - 1]
Definition: nvbufsurface.h:514
NVBUF_COLOR_FORMAT_NV12
@ NVBUF_COLOR_FORMAT_NV12
Specifies BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:122
NvBufSurfaceTag_VIDEO_ENC
@ NvBufSurfaceTag_VIDEO_ENC
tag for H264/H265 Video Encoder.
Definition: nvbufsurface.h:97
NvBufSurfaceCreate
int NvBufSurfaceCreate(NvBufSurface **surf, uint32_t batchSize, NvBufSurfaceCreateParams *params)
Allocates a batch of buffers.
NVBUF_COLOR_FORMAT_NV12_12LE_2020
@ NVBUF_COLOR_FORMAT_NV12_12LE_2020
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:208
NvBufSurfaceMapParams::num_planes
uint32_t num_planes
Holds the number of planes.
Definition: nvbufsurface.h:569
NvBufSurfaceMappedAddr::_reserved
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:460
NVBUF_COLOR_FORMAT_BGR
@ NVBUF_COLOR_FORMAT_BGR
Specifies BGR-8-8-8 single plane.
Definition: nvbufsurface.h:166
NvBufSurfaceTag_JPEG
@ NvBufSurfaceTag_JPEG
tag for Jpeg Encoder/Decoder.
Definition: nvbufsurface.h:93
NvBufSurfaceChromaSubsamplingParams
struct NvBufSurfaceChromaSubsamplingParams NvBufSurfaceChromaSubsamplingParams
Holds Chroma Subsampling parameters for NvBufSurface allocation.
NVBUF_MEM_SURFACE_ARRAY
@ NVBUF_MEM_SURFACE_ARRAY
Specifies NVRM Surface Array type.
Definition: nvbufsurface.h:325
NVBUF_COLOR_FORMAT_NV12_10LE_2020
@ NVBUF_COLOR_FORMAT_NV12_10LE_2020
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:190
NvBufSurfaceMapEglImage
int NvBufSurfaceMapEglImage(NvBufSurface *surf, int index)
Creates an EGLImage from the memory of one or more NvBufSurface buffers.
NVBUF_COLOR_FORMAT_RGBA
@ NVBUF_COLOR_FORMAT_RGBA
Specifies RGBA-8-8-8-8 single plane.
Definition: nvbufsurface.h:148
NvBufSurfacePlaneParamsEx::flags
uint64_t flags[NVBUF_MAX_PLANES]
flags associated with planes
Definition: nvbufsurface.h:357
NVBUF_COLOR_FORMAT_BGRA_10_10_10_2_2020
@ NVBUF_COLOR_FORMAT_BGRA_10_10_10_2_2020
Specifies Non-linear RGB BT.2020 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbufsurface.h:244
NvBufSurfaceAllocateParams::params
NvBufSurfaceCreateParams params
Hold legacy NvBufSurface creation parameters.
Definition: nvbufsurface.h:432
NvBufSurfacePlaneParams::bytesPerPix
uint32_t bytesPerPix[NVBUF_MAX_PLANES]
Holds the number of bytes occupied by a pixel in each plane.
Definition: nvbufsurface.h:381
NvBufSurfacePlaneParamsEx::drmModifier
uint64_t drmModifier[NVBUF_MAX_PLANES]
DRM modifier for plane.
Definition: nvbufsurface.h:359
NvBufSurfaceMapPlaneParams::secondfieldoffset
uint32_t secondfieldoffset
Holds offset of the second field for interlaced buffer.
Definition: nvbufsurface.h:555
NVBUF_COLOR_FORMAT_UYVY_709_ER
@ NVBUF_COLOR_FORMAT_UYVY_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:2:2 planar.
Definition: nvbufsurface.h:290
NvBufSurfaceCreateParams
Holds parameters required to allocate an NvBufSurface.
Definition: nvbufsurface.h:404
NvBufSurfaceMapParams::scanformat
NvBufSurfaceDisplayScanFormat scanformat
Holds display scan format.
Definition: nvbufsurface.h:581
NvBufSurfaceParams::width
uint32_t width
Holds the width of the buffer.
Definition: nvbufsurface.h:489
NvBufSurfaceMapParams::chromaSubsampling
NvBufSurfaceChromaSubsamplingParams chromaSubsampling
Holds chroma subsampling parameters.
Definition: nvbufsurface.h:585
NvBufSurfaceMemMapFlags
NvBufSurfaceMemMapFlags
Defines mapping types of NvBufSurface.
Definition: nvbufsurface.h:71
NVBUF_COLOR_FORMAT_NV24_10LE_2020
@ NVBUF_COLOR_FORMAT_NV24_10LE_2020
Specifies BT.2020 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:234
NvBufSurfaceCreateParams::gpuId
uint32_t gpuId
Holds the GPU ID.
Definition: nvbufsurface.h:406
NVBUF_COLOR_FORMAT_YUV444_10LE_2020
@ NVBUF_COLOR_FORMAT_YUV444_10LE_2020
Specifies BT.2020 colorspace - Y/CbCr 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:268
NVBUF_COLOR_FORMAT_NV12_709_ER
@ NVBUF_COLOR_FORMAT_NV12_709_ER
Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:178
NVBUF_COLOR_FORMAT_YUV420
@ NVBUF_COLOR_FORMAT_YUV420
Specifies BT.601 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:114
NvBufSurface::_reserved
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:536
NvBufSurfaceColorFormat
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.
Definition: nvbufsurface.h:107
NvBufSurfaceChromaSubsamplingParams::chromaLocHoriz
uint8_t chromaLocHoriz
location settings
Definition: nvbufsurface.h:397
NvBufSurfaceTag_NONE
@ NvBufSurfaceTag_NONE
tag None.
Definition: nvbufsurface.h:89
NVBUF_COLOR_FORMAT_R32F_G32F_B32F
@ NVBUF_COLOR_FORMAT_R32F_G32F_B32F
Specifies RGB-32bit Floating point multiplanar plane.
Definition: nvbufsurface.h:198
NVBUF_COLOR_FORMAT_NV24_12LE_2020
@ NVBUF_COLOR_FORMAT_NV24_12LE_2020
Specifies BT.2020 colorspace - Y/CbCr 12 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:236
NVBUF_COLOR_FORMAT_RGBx
@ NVBUF_COLOR_FORMAT_RGBx
Specifies RGBx-8-8-8-8 single plane.
Definition: nvbufsurface.h:156
NVBUF_COLOR_FORMAT_NV24_10LE_709_ER
@ NVBUF_COLOR_FORMAT_NV24_10LE_709_ER
Specifies BT.709 ER colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:232