NVIDIA DeepStream SDK API Reference

6.1.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvbufsurface.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2022, 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 
28 #ifndef NVBUFSURFACE_H_
29 #define NVBUFSURFACE_H_
30 
31 #include <stdint.h>
32 #include <stdbool.h>
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
46 #define STRUCTURE_PADDING 4
47 
49 #define NVBUF_MAX_PLANES 4
50 
55 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_HORIZ_DEFAULT 0
56 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_VERT_DEFAULT 1
57 
58 #define NVBUFSURFACE_CHROMA_SUBSAMPLING_PARAMS_DEFAULT \
59  { \
60  NVBUFSURFACE_CHROMA_SUBSAMPLING_HORIZ_DEFAULT, \
61  NVBUFSURFACE_CHROMA_SUBSAMPLING_VERT_DEFAULT \
62  }
63 
67 typedef enum
68 {
75 
82 typedef enum
83 {
99 
103 typedef enum
104 {
247 
250 
254 typedef enum
255 {
261 
265 typedef enum
266 {
284 
288 typedef enum
289 {
295 
300 {
311 
314 
319 {
321  uint32_t num_planes;
334 
337 
338 
343 {
345  uint8_t chromaLocHoriz;
346  uint8_t chromaLocVert;
348 
352 typedef struct NvBufSurfaceCreateParams {
354  uint32_t gpuId;
356  uint32_t width;
358  uint32_t height;
361  uint32_t size;
373 
387 
390 
394 typedef struct NvBufSurfaceMappedAddr {
398  void *eglImage;
399 
402 
406 typedef struct NvBufSurfaceParamsEx {
420 
423 
427 typedef struct NvBufSurfaceParams {
429  uint32_t width;
431  uint32_t height;
433  uint32_t pitch;
440  uint64_t bufferDesc;
442  uint32_t dataSize;
445  void * dataPtr;
453 
456 
460 typedef struct NvBufSurface {
462  uint32_t gpuId;
464  uint32_t batchSize;
467  uint32_t numFilled;
475 
477 } NvBufSurface;
478 
498 int NvBufSurfaceCreate (NvBufSurface **surf, uint32_t batchSize,
499  NvBufSurfaceCreateParams *params);
500 
517 int NvBufSurfaceAllocate (NvBufSurface **surf, uint32_t batchSize,
518  NvBufSurfaceAllocateParams *paramsext);
519 
528 
568 int NvBufSurfaceMap (NvBufSurface *surf, int index, int plane, NvBufSurfaceMemMapFlags type);
569 
581 int NvBufSurfaceUnMap (NvBufSurface *surf, int index, int plane);
582 
599 int NvBufSurfaceCopy (NvBufSurface *srcSurf, NvBufSurface *dstSurf);
600 
617 int NvBufSurface2Raw (NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int outwidth, unsigned int outheight, unsigned char *ptr);
618 
635 int Raw2NvBufSurface (unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int inwidth, unsigned int inheight, NvBufSurface *Surf);
636 
651 int NvBufSurfaceSyncForCpu (NvBufSurface *surf, int index, int plane);
652 
667 int NvBufSurfaceSyncForDevice (NvBufSurface *surf, int index, int plane);
668 
677 int NvBufSurfaceFromFd (int dmabuf_fd, void **buffer);
678 
694 int NvBufSurfaceMemSet (NvBufSurface *surf, int index, int plane, uint8_t value);
695 
722 int NvBufSurfaceMapEglImage (NvBufSurface *surf, int index);
723 
733 int NvBufSurfaceUnMapEglImage (NvBufSurface *surf, int index);
734 
737 #ifdef __cplusplus
738 }
739 #endif
740 #endif /* NVBUFSURFACE_H_ */
Specifies BT.601 colorspace - YUV444 multi-planar.
Definition: nvbufsurface.h:142
Specifies CUDA Device memory type.
Definition: nvbufsurface.h:274
NvBufSurfaceColorFormat
Defines color formats for NvBufSurface.
Definition: nvbufsurface.h:103
int32_t startofvaliddata
offset in bytes from the start of the buffer to the first valid byte.
Definition: nvbufsurface.h:409
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:388
struct NvBufSurfaceCreateParams NvBufSurfaceCreateParams
Holds parameters required to allocate an NvBufSurface.
Specifies color format for packed 2 signed shorts.
Definition: nvbufsurface.h:188
uint32_t secondfieldoffset[NVBUF_MAX_PLANES]
offset of the second field for interlaced buffer.
Definition: nvbufsurface.h:304
uint64_t flags[NVBUF_MAX_PLANES]
flags associated with planes
Definition: nvbufsurface.h:310
uint32_t size
Holds the amount of memory to be allocated.
Definition: nvbufsurface.h:361
Specifies Non-linear RGB BT.709 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbufsurface.h:234
NvBufSurfaceLayout layout
Holds BL or PL.
Definition: nvbufsurface.h:437
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:128
Specifies BT.2020 colorspace - Y/CbCr 12 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:232
uint8_t chromaLocHoriz
location settings
Definition: nvbufsurface.h:345
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:476
Specifies BT.601 colorspace - YVU420 ER multi-planar.
Definition: nvbufsurface.h:116
#define NVBUF_MAX_PLANES
Defines the maximum number of planes.
Definition: nvbufsurface.h:49
uint32_t pitch[NVBUF_MAX_PLANES]
Holds the pitches of planes in bytes.
Definition: nvbufsurface.h:327
NvBufSurfaceTag memtag
components tag to be used for memory allocation
Definition: nvbufsurface.h:386
int NvBufSurfaceUnMapEglImage(NvBufSurface *surf, int index)
Destroys the previously created EGLImage object(s).
int NvBufSurfaceDestroy(NvBufSurface *surf)
Free the batched buffers previously allocated through NvBufSurfaceCreate.
Specifies BT.601 colorspace - YUV422 multi-planar.
Definition: nvbufsurface.h:198
void * dataPtr
Holds a pointer to allocated memory.
Definition: nvbufsurface.h:445
NvBufSurfaceColorFormat colorFormat
Holds the color format of the buffer.
Definition: nvbufsurface.h:435
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:120
struct NvBufSurfaceMappedAddr NvBufSurfaceMappedAddr
Hold the pointers of mapped buffer.
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:140
Specifies block linear layout.
Definition: nvbufsurface.h:259
int NvBufSurfaceSyncForDevice(NvBufSurface *surf, int index, int plane)
Syncs the hardware memory cache for the device.
Specifies NVRM Surface Array type.
Definition: nvbufsurface.h:278
uint32_t num_planes
Holds the number of planes.
Definition: nvbufsurface.h:321
Specifies Non-linear RGB BT.2020 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbufsurface.h:240
Specifies an invalid color format.
Definition: nvbufsurface.h:106
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:124
void * _reserved[STRUCTURE_PADDING-1]
Definition: nvbufsurface.h:454
uint32_t bytesPerPix[NVBUF_MAX_PLANES]
Holds the number of bytes occupied by a pixel in each plane.
Definition: nvbufsurface.h:333
Specifies RGB-8-8-8 single plane.
Definition: nvbufsurface.h:160
Specifies RGBA-8-8-8-8 single plane.
Definition: nvbufsurface.h:144
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:204
Specifies RGB- unsigned 8 bit multiplanar plane.
Definition: nvbufsurface.h:190
Hold the information of single buffer in the batch.
Definition: nvbufsurface.h:427
NvBufSurfaceCreateParams params
Hold legacy NvBufSurface creation parameters.
Definition: nvbufsurface.h:380
NvBufSurfaceDisplayScanFormat scanformat[NVBUF_MAX_PLANES]
display scan format - progressive/interlaced.
Definition: nvbufsurface.h:302
Specifies NvBufSurface mapping type "write.".
Definition: nvbufsurface.h:70
int NvBufSurfaceAllocate(NvBufSurface **surf, uint32_t batchSize, NvBufSurfaceAllocateParams *paramsext)
Allocate batch of buffers.
Specifies ABGR-8-8-8-8 single plane.
Definition: nvbufsurface.h:150
struct NvBufSurfaceChromaSubsamplingParams NvBufSurfaceChromaSubsamplingParams
Holds Chroma Subsampling parameters for NvBufSurface allocation.
struct NvBufSurfacePlaneParams NvBufSurfacePlaneParams
Holds plane wise parameters of a buffer.
Specifies NvBufSurface mapping type "read.".
Definition: nvbufsurface.h:69
bool isContiguous
Holds a "contiguous memory" flag.
Definition: nvbufsurface.h:364
Specifies BGR-8-8-8 single plane.
Definition: nvbufsurface.h:162
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:186
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:126
Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 multi-planar.
Definition: nvbufsurface.h:174
Specifies BT.601 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:164
void * addr[NVBUF_MAX_PLANES]
Holds planewise pointers to a CPU mapped buffer.
Definition: nvbufsurface.h:396
NvBufSurfaceMappedAddr mappedAddr
Holds pointers to mapped buffers.
Definition: nvbufsurface.h:450
struct NvBufSurfaceAllocateParams NvBufSurfaceAllocateParams
Hold extended parameters required to allocate NvBufSurface.
Specifies BGRA-8-8-8-8 single plane.
Definition: nvbufsurface.h:146
Specifies CUDA Host memory type.
Definition: nvbufsurface.h:272
Specifies BT.601_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:214
tag for H264/H265 Video Encoder.
Definition: nvbufsurface.h:93
Specifies BT.709 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:220
Specifies RGBx-8-8-8-8 single plane.
Definition: nvbufsurface.h:152
Specifies BT.601 colorspace - Y/CrCb 4:4:4 10-bit multi-planar.
Definition: nvbufsurface.h:212
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:421
uint32_t numFilled
Holds the number valid and filled buffers.
Definition: nvbufsurface.h:467
Specifies BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:118
Specifies memory allocated by malloc().
Definition: nvbufsurface.h:282
int NvBufSurfaceFromFd(int dmabuf_fd, void **buffer)
Gets the NvBufSurface from the DMABUF FD.
int NvBufSurfaceCopy(NvBufSurface *srcSurf, NvBufSurface *dstSurf)
Copies the content of source batched buffer(s) to destination batched buffer(s).
Specifies BT.2020 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:176
Specifies BT.2020 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:230
uint32_t pitch
Holds the pitch of the buffer.
Definition: nvbufsurface.h:433
uint32_t psize[NVBUF_MAX_PLANES]
Holds the sizes of planes in bytes.
Definition: nvbufsurface.h:331
Specifies BT.601 colorspace - Y/CrCb 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:202
NvBufSurfaceParams * surfaceList
Holds a pointer to an array of batched buffers.
Definition: nvbufsurface.h:474
uint32_t batchSize
Holds the batch size.
Definition: nvbufsurface.h:464
Specifies Optical flow SAD calculation Buffer format.
Definition: nvbufsurface.h:242
struct NvBufSurfaceParamsEx NvBufSurfaceParamsEx
Hold the information(extended) of single buffer in the batch.
Holds plane wise parameters(extended) of a buffer.
Definition: nvbufsurface.h:299
Specifies BT.601 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:110
int NvBufSurfaceSyncForCpu(NvBufSurface *surf, int index, int plane)
Syncs the HW memory cache for the CPU.
Holds parameters required to allocate an NvBufSurface.
Definition: nvbufsurface.h:352
Hold extended parameters required to allocate NvBufSurface.
Definition: nvbufsurface.h:378
Specifies BGR- unsigned 8 bit multiplanar plane.
Definition: nvbufsurface.h:192
tag for H264/H265/VP9 Video Decoder.
Definition: nvbufsurface.h:95
Specifies CUDA Unified memory type.
Definition: nvbufsurface.h:276
int NvBufSurface2Raw(NvBufSurface *Surf, unsigned int index, unsigned int plane, unsigned int outwidth, unsigned int outheight, unsigned char *ptr)
Copies the NvBufSurface plane memory content to a raw buffer plane for a specific batched buffer...
Specifies BT.601 colorspace - YUV420 ER multi-planar.
Definition: nvbufsurface.h:114
Specifies 8 bit GRAY scale - single plane.
Definition: nvbufsurface.h:108
Specifies BT.709 ER colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:228
NvBufSurfaceMemType memType
Holds type of memory for buffers in the batch.
Definition: nvbufsurface.h:472
Interlaced scan formats.
Definition: nvbufsurface.h:293
tag for Video Transform/Composite/Blend.
Definition: nvbufsurface.h:97
struct NvBufSurface NvBufSurface
Holds information about batched buffers.
bool is_protected
get buffer vpr information.
Definition: nvbufsurface.h:417
tag for VPR Buffers.
Definition: nvbufsurface.h:91
#define STRUCTURE_PADDING
Defines the default padding length for reserved fields of structures.
Definition: nvbufsurface.h:46
Holds Chroma Subsampling parameters for NvBufSurface allocation.
Definition: nvbufsurface.h:342
NvBufSurfacePlaneParams planeParams
Holds planewise information (width, height, pitch, offset, etc.).
Definition: nvbufsurface.h:447
Holds plane wise parameters of a buffer.
Definition: nvbufsurface.h:318
uint32_t width
Holds the width of the buffer.
Definition: nvbufsurface.h:429
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:130
uint32_t height
Holds the height of the buffer.
Definition: nvbufsurface.h:431
Specifies BT.601 colorspace - Y/CbCr 4:2:0 12-bit multi-planar.
Definition: nvbufsurface.h:166
Hold the information(extended) of single buffer in the batch.
Definition: nvbufsurface.h:406
uint64_t bufferDesc
Holds a DMABUF FD.
Definition: nvbufsurface.h:440
uint32_t height
Holds the height of the buffer.
Definition: nvbufsurface.h:358
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:132
NvBufSurfaceChromaSubsamplingParams chromaSubsampling
Chroma Subsampling parameters.
Definition: nvbufsurface.h:384
Specifies BT.709_ER colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:222
Specifies ARGB-8-8-8-8 single plane.
Definition: nvbufsurface.h:148
Holds information about batched buffers.
Definition: nvbufsurface.h:460
void * _reserved[STRUCTURE_PADDING *NVBUF_MAX_PLANES]
Definition: nvbufsurface.h:312
NvBufSurfaceTag
Defines tags that identify the components requesting a memory allocation.
Definition: nvbufsurface.h:82
uint32_t offset[NVBUF_MAX_PLANES]
Holds the offsets of planes in bytes.
Definition: nvbufsurface.h:329
NvBufSurfaceMemType
Specifies memory types for NvBufSurface.
Definition: nvbufsurface.h:265
Specifies BT.709 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:172
uint32_t width[NVBUF_MAX_PLANES]
Holds the widths of planes.
Definition: nvbufsurface.h:323
Specifies the default memory type, i.e.
Definition: nvbufsurface.h:270
NvBufSurfacePlaneParamsEx planeParamsex
plane wise extended info
Definition: nvbufsurface.h:419
uint32_t gpuId
Holds the GPU ID.
Definition: nvbufsurface.h:354
Specifies BT.601 colorspace - YUV ER 4:2:2 planar.
Definition: nvbufsurface.h:136
int NvBufSurfaceUnMap(NvBufSurface *surf, int index, int plane)
Unmaps previously mapped buffer(s).
uint32_t gpuId
Holds a GPU ID.
Definition: nvbufsurface.h:462
struct NvBufSurfaceParams NvBufSurfaceParams
Hold the information of single buffer in the batch.
Specifies BGRx-8-8-8-8 single plane.
Definition: nvbufsurface.h:154
Specifies BT.601 colorspace - Y/CbCr 4:2:2 10-bit semi-planar.
Definition: nvbufsurface.h:208
int Raw2NvBufSurface(unsigned char *ptr, unsigned int index, unsigned int plane, unsigned int inwidth, unsigned int inheight, NvBufSurface *Surf)
Copies the raw buffer plane memory content to the NvBufSurface plane memory of a specific batched buf...
Specifies BT.709 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:168
Specifies BT.601 colorspace - YUV420 multi-planar.
Definition: nvbufsurface.h:112
NvBufSurfaceMemType memType
Holds the type of memory to be allocated.
Definition: nvbufsurface.h:371
NvBufSurfaceParamsEx * paramex
pointers of extended parameters of single buffer in the batch.
Definition: nvbufsurface.h:452
int32_t sizeofvaliddatainbytes
size of the valid data from the first to the last valid byte.
Definition: nvbufsurface.h:412
Specifies NVRM Handle type.
Definition: nvbufsurface.h:280
uint32_t height[NVBUF_MAX_PLANES]
Holds the heights of planes.
Definition: nvbufsurface.h:325
Specifies BT.709_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:224
Specifies pitch layout.
Definition: nvbufsurface.h:257
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:134
int NvBufSurfaceCreate(NvBufSurface **surf, uint32_t batchSize, NvBufSurfaceCreateParams *params)
Allocates a batch of buffers.
Specifies Non-linear RGB BT.2020 colorspace - RGBA-10-10-10-2 planar.
Definition: nvbufsurface.h:236
Specifies BT.601 colorspace - YUV 4:2:2 planar.
Definition: nvbufsurface.h:138
struct NvBufSurfacePlaneParamsEx NvBufSurfacePlaneParamsEx
Holds plane wise parameters(extended) of a buffer.
void * _reserved[STRUCTURE_PADDING]
Definition: nvbufsurface.h:400
NvBufSurfaceLayout
Specifies layout formats for NvBufSurface video planes.
Definition: nvbufsurface.h:254
Specifies BT.709 colorspace - Y/CbCr ER 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:184
Specifies BT.709 colorspace - Y/CbCr 10 bit 4:4:4 multi-planar.
Definition: nvbufsurface.h:226
uint32_t width
Holds the width of the buffer.
Definition: nvbufsurface.h:356
NvBufSurfaceLayout layout
Holds the surface layout.
Definition: nvbufsurface.h:369
bool isContiguous
Holds an "is contiguous" flag.
Definition: nvbufsurface.h:470
Specifies BT.601 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:122
Specifies xBGR-8-8-8-8 single plane.
Definition: nvbufsurface.h:158
Specifies RGB-32bit Floating point multiplanar plane.
Definition: nvbufsurface.h:194
Specifies NvBufSurface mapping type "read/write.".
Definition: nvbufsurface.h:72
NvBufSurfaceMemMapFlags
Defines mapping types of NvBufSurface.
Definition: nvbufsurface.h:67
void * eglImage
Holds a pointer to a mapped EGLImage.
Definition: nvbufsurface.h:398
Specifies BT.601 colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:210
Specifies BT.709 colorspace - YUV420 ER multi-planar.
Definition: nvbufsurface.h:170
Specifies BT.601 colorspace - Y/CbCr ER 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:180
Specifies BT.2020 colorspace - Y/CbCr 4:2:0 multi-planar.
Definition: nvbufsurface.h:178
NvBufSurfaceColorFormat colorFormat
Holds the color format of the buffer.
Definition: nvbufsurface.h:366
Specifies BT.601 colorspace - 10 bit YUV 4:2:2 interleaved.
Definition: nvbufsurface.h:244
NvBufSurfaceDisplayScanFormat displayscanformat
Display scan format.
Definition: nvbufsurface.h:382
int NvBufSurfaceMap(NvBufSurface *surf, int index, int plane, NvBufSurfaceMemMapFlags type)
Maps hardware batched buffers to the HOST or CPU address space.
uint32_t blockheightlog2[NVBUF_MAX_PLANES]
block height of the planes for blockLinear layout buffer.
Definition: nvbufsurface.h:306
Specifies Non-linear RGB BT.709 colorspace - BGRA-10-10-10-2 planar.
Definition: nvbufsurface.h:238
Specifies BT.709 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:218
Progessive scan formats.
Definition: nvbufsurface.h:291
Specifies BT.601 colorspace - Y/CrCb 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:200
Specifies BGR-32bit Floating point multiplanar plane.
Definition: nvbufsurface.h:196
Specifies xRGB-8-8-8-8 single plane.
Definition: nvbufsurface.h:156
Specifies BT.601 colorspace - Y/CbCr 4:2:2 multi-planar.
Definition: nvbufsurface.h:206
Hold the pointers of mapped buffer.
Definition: nvbufsurface.h:394
uint32_t dataSize
Holds the amount of allocated memory.
Definition: nvbufsurface.h:442
uint32_t physicaladdress[NVBUF_MAX_PLANES]
physical address of allocated planes.
Definition: nvbufsurface.h:308
Specifies BT.709 colorspace - Y/CbCr 4:2:0 10-bit multi-planar.
Definition: nvbufsurface.h:182
int NvBufSurfaceMapEglImage(NvBufSurface *surf, int index)
Creates an EGLImage from the memory of one or more NvBufSurface buffers.
NvBufSurfaceDisplayScanFormat
Defines display scan formats for NvBufSurface video planes.
Definition: nvbufsurface.h:288
NvBufSurfaceChromaSubsamplingParams chromaSubsampling
chroma subsampling parameters.
Definition: nvbufsurface.h:415
void * _reserved[STRUCTURE_PADDING *NVBUF_MAX_PLANES]
Definition: nvbufsurface.h:335
Specifies BT.601 colorspace - 10 bit YUV ER 4:2:2 interleaved.
Definition: nvbufsurface.h:246
tag for Jpeg Encoder/Decoder.
Definition: nvbufsurface.h:89
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.
tag for Camera.
Definition: nvbufsurface.h:87
Specifies BT.601_ER colorspace - Y/CbCr 4:4:4 multi-planar.
Definition: nvbufsurface.h:216