|
|
NVIDIA DeepStream SDK API Reference
|
9.1 Release
|
Go to the documentation of this file.
23 #ifndef __NVDSINFER_PREPROCESS_KERNEL_H__
24 #define __NVDSINFER_PREPROCESS_KERNEL_H__
27 #include <cuda_fp16.h>
29 #define NVDSINFER_MAX_PREPROC_CHANNELS 4
30 #define NVDSINFER_INVALID_CONVERSION_KEY UINT32_MAX
54 float scaleFactor,
float* meanDataBuffer,
66 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)
unsigned int channelAlign
unsigned int dataSizePerBatch
#define NVDSINFER_MAX_PREPROC_CHANNELS
Header file for pre-processing CUDA kernels with normalization and mean subtraction required by nvdsi...