|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
19 #ifndef __NVDSINFERSERVER_DATA_TYPES_H__
20 #define __NVDSINFERSERVER_DATA_TYPES_H__
27 #include <condition_variable>
216 virtual void*
getBufPtr(uint32_t batchIdx)
const = 0;
219 virtual size_t getBufOffset(uint32_t batchIdx)
const = 0;
232 virtual uint32_t
getSize()
const = 0;
@ kBGR
24-bit interleaved B-G-R
This is a header file for pre-processing cuda kernels with normalization and mean subtraction require...
InferDataType
Datatype of the tensor buffer.
@ kLinear
NCHW (batch-channels-height-width) tensor order.
InferMediaFormat
Image formats.
std::shared_ptr< IBatchBuffer > SharedIBatchBuffer
@ kBGRx
32-bit interleaved B-G-R-x
InferPostprocessType
Inference post processing types.
virtual const IBatchBuffer * getBuffer(uint32_t arrayIdx) const =0
InferTensorOrder
The type of tensor order.
unsigned int numDims
Number of dimensions of the layer.
virtual uint32_t getBatchSize() const =0
@ kDetector
Post processing for object detection.
virtual SharedIBatchBuffer getSafeBuf(uint32_t arrayIdx) const =0
Interface class for a batch buffer.
virtual size_t getBufOffset(uint32_t batchIdx) const =0
InferMemType memType
Memory type of the buffer allocation.
@ kRGB
24-bit interleaved R-G-B
virtual const IOptions * getOptions() const =0
@ kNHWC
NHWC (batch-height-width-channels) tensor order.
Holds full dimensions (including batch size) for a layer.
@ kRGBA
32-bit interleaved R-G-B-A
@ kOther
Custom post processing.
@ FLOAT
Specifies FP32 format.
@ kGpuCuda
GPU CUDA memory.
#define NVDSINFER_MAX_DIMS
std::shared_ptr< IBatchArray > SharedIBatchArray
@ HALF
Specifies FP16 format.
@ INT32
Specifies INT32 format.
virtual const InferBufferDescription & getBufDesc() const =0
@ INT8
Specifies INT8 format.
@ kClassifier
Post processing for object classification.
@ kTrtIsClassifier
Post processing using Triton Classifier.
@ kNvSurface
NVRM surface memory.
int d[NVDSINFER_MAX_DIMS]
Size of the layer in each dimension.
InferDataType dataType
Datatype associated with the buffer.
InferMemType
The memory types of inference buffers.
Holds the information about the dimensions of a neural network layer.
std::shared_ptr< IOptions > SharedIOptions
bool isInput
Boolean indicating input or output buffer.
virtual ~IBatchBuffer()=default
@ kNvSurfaceArray
NVRM surface array memory.
unsigned int numElements
Number of elements in the layer including all dimensions.
InferDims dims
Dimensions of the tensor.
virtual void appendIBatchBuf(SharedIBatchBuffer buf)=0
virtual uint64_t getTotalBytes() const =0
uint32_t elementSize
Per element bytes, except kString (with elementSize is 0)
@ kSegmentation
Post processing for image segmentation.
virtual void * getBufPtr(uint32_t batchIdx) const =0
Interface class for an array of batch buffers.
virtual ~IBatchArray()=default
virtual void setIOptions(SharedIOptions o)=0
@ kCpuCuda
CUDA pinned memory.
virtual uint32_t getSize() const =0
long int devId
Device (GPU) ID where the buffer is allocated.
std::string name
Name of the buffer.
Holds the information about a inference buffer.