NVIDIA DeepStream SDK API Reference

6.4 Release
nvdspreprocess_conversion.h File Reference

Detailed Description

NVIDIA DeepStream Preprocess lib implementation

Description: This file contains cuda kernels used for custom tensor preparation after normalization and mean subtraction for 2d conv NCHW/NHWC models.

Definition in file nvdspreprocess_conversion.h.

Go to the source code of this file.

Typedefs

typedef void(* NvDsPreProcessConvertFcn) (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Function pointer type to which any of the NvDsPreProcessConvert functions can be assigned. More...
 

Functions

void NvDsPreProcessConvert_C3ToP3Float (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an planar 3-channel float buffer of width x height resolution. More...
 
void NvDsPreProcessConvert_C3ToL3Float (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an linear 3-channel float buffer of width x height resolution. More...
 
void NvDsPreProcessConvert_C4ToP3Float (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an planar 3-channel float buffer of width x height resolution. More...
 
void NvDsPreProcessConvert_C4ToL3Float (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an linear 3-channel float buffer of width x height resolution. More...
 
void NvDsPreProcessConvert_C3ToP3RFloat (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an planar 3-channel float buffer of width x height resolution with plane order reversed. More...
 
void NvDsPreProcessConvert_C3ToL3RFloat (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 3 channel buffer of width x height resolution into an linear 3-channel float buffer of width x height resolution with plane order reversed. More...
 
void NvDsPreProcessConvert_C4ToP3RFloat (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 4 channel buffer of width x height resolution into an planar 3-channel float buffer of width x height resolution with plane order reversed. More...
 
void NvDsPreProcessConvert_C4ToL3RFloat (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an input packed 4 channel buffer of width x height resolution into an linear 3-channel float buffer of width x height resolution with plane order reversed. More...
 
void NvDsPreProcessConvert_C1ToP1Float (float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 Converts an 1 channel UINT8 input of width x height resolution into an 1 channel float buffer of width x height resolution. More...
 
void NvDsPreProcessConvert_FtFTensor (float *outBuffer, float *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)