| 
      
        
       | 
    
    
        
            NVIDIA DeepStream SDK API Reference
         | 
        
            
                8.0 Release
            
         | 
    
  
 
 
Go to the documentation of this file.
   17 #ifndef __NVDSINFER_CONVERSION_H__ 
   18 #define __NVDSINFER_CONVERSION_H__ 
   43     unsigned char *inBuffer,
 
   48     float *meanDataBuffer,
 
   74     unsigned char *inBuffer,
 
   79     float *meanDataBuffer,
 
  105     unsigned char *inBuffer,
 
  110     float *meanDataBuffer,
 
  136     unsigned char *inBuffer,
 
  141     float *meanDataBuffer,
 
  167     unsigned char *inBuffer,
 
  172     float *meanDataBuffer,
 
  198     unsigned char *inBuffer,
 
  203     float *meanDataBuffer,
 
  229     unsigned char *inBuffer,
 
  234     float *meanDataBuffer,
 
  260     unsigned char *inBuffer,
 
  265     float *meanDataBuffer,
 
  289         unsigned char *inBuffer,
 
  294         float *meanDataBuffer,
 
  305         float *meanDataBuffer,
 
  315         unsigned char *inBuffer,
 
  320         float *meanDataBuffer,
 
  330         float *meanDataBuffer,
 
  
 
void NvDsInferConvert_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...
 
void NvDsInferConvert_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...
 
void NvDsInferConvert_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 widt...
 
void NvDsInferConvert_C3ToP3Float(float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
This is a header file for pre-processing cuda kernels with normalization and mean subtraction require...
 
void(* NvDsInferConvertFcn)(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 NvDsInferConvert functions can be assigned.
 
void NvDsInferConvert_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...
 
void NvDsInferConvert_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...
 
void NvDsInferConvert_FtFTensor(float *outBuffer, float *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 
void NvDsInferConvert_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...
 
void NvDsInferConvert_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...
 
void(* NvDsInferConvertFcnFloat)(float *outBuffer, float *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
 
void NvDsInferConvert_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...