|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
18 #ifndef __NVDSINFER_PREPROCESS_KERNEL_H__
19 #define __NVDSINFER_PREPROCESS_KERNEL_H__
22 #include <cuda_fp16.h>
24 #define NVDSINFER_MAX_PREPROC_CHANNELS 4
25 #define NVDSINFER_INVALID_CONVERSION_KEY UINT32_MAX
49 float scaleFactor,
float* meanDataBuffer,
61 float scaleFactor,
float* meanDataBuffer,
void(* NvDsInferConvertFcn)(void *outBuffer, int outDataType, BatchSurfaceInfo outBufferInfo, void *inBuffer, int inDatatype, BatchSurfaceInfo inBufferInfo, int validN, int cropC, int cropH, int cropW, float scaleFactor, float *meanDataBuffer, int fromChannelIndices[NVDSINFER_MAX_PREPROC_CHANNELS], int toNCHW, cudaStream_t stream)
Function pointer type to which any of the NvDsInferConvert functions can be assigned.
bool NvDsInferConvert_CxToPx(void *outBuffer, int outDataType, BatchSurfaceInfo outBufferInfo, void *inBuffer, int inDatatype, BatchSurfaceInfo inBufferInfo, int validN, int cropC, int cropH, int cropW, float scaleFactor, float meanOffsets[NVDSINFER_MAX_PREPROC_CHANNELS], int fromChannelIndices[NVDSINFER_MAX_PREPROC_CHANNELS], int toNCHW, cudaStream_t stream)
bool NvDsInferConvert_CxToPxWithMeanBuffer(void *outBuffer, int outDataType, BatchSurfaceInfo outBufferInfo, void *inBuffer, int inDatatype, BatchSurfaceInfo inBufferInfo, int validN, int cropC, int cropH, int cropW, float scaleFactor, float *meanDataBuffer, int fromChannelIndices[NVDSINFER_MAX_PREPROC_CHANNELS], int toNCHW, cudaStream_t stream)
#define NVDSINFER_MAX_PREPROC_CHANNELS
Header file for pre-processing CUDA kernels with normalization and mean subtraction required by nvdsi...
unsigned int channelAlign
unsigned int dataSizePerBatch