NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinfer_conversion.h
Go to the documentation of this file.
1 
16 #ifndef __NVDSINFER_CONVERSION_H__
17 #define __NVDSINFER_CONVERSION_H__
18 
39 void
41  float *outBuffer,
42  unsigned char *inBuffer,
43  unsigned int width,
44  unsigned int height,
45  unsigned int pitch,
46  float scaleFactor,
47  float *meanDataBuffer,
48  cudaStream_t stream);
49 
70 void
72  float *outBuffer,
73  unsigned char *inBuffer,
74  unsigned int width,
75  unsigned int height,
76  unsigned int pitch,
77  float scaleFactor,
78  float *meanDataBuffer,
79  cudaStream_t stream);
80 
101 void
103  float *outBuffer,
104  unsigned char *inBuffer,
105  unsigned int width,
106  unsigned int height,
107  unsigned int pitch,
108  float scaleFactor,
109  float *meanDataBuffer,
110  cudaStream_t stream);
111 
132 void
134  float *outBuffer,
135  unsigned char *inBuffer,
136  unsigned int width,
137  unsigned int height,
138  unsigned int pitch,
139  float scaleFactor,
140  float *meanDataBuffer,
141  cudaStream_t stream);
142 
163 void
165  float *outBuffer,
166  unsigned char *inBuffer,
167  unsigned int width,
168  unsigned int height,
169  unsigned int pitch,
170  float scaleFactor,
171  float *meanDataBuffer,
172  cudaStream_t stream);
173 
194 void
196  float *outBuffer,
197  unsigned char *inBuffer,
198  unsigned int width,
199  unsigned int height,
200  unsigned int pitch,
201  float scaleFactor,
202  float *meanDataBuffer,
203  cudaStream_t stream);
204 
225 void
227  float *outBuffer,
228  unsigned char *inBuffer,
229  unsigned int width,
230  unsigned int height,
231  unsigned int pitch,
232  float scaleFactor,
233  float *meanDataBuffer,
234  cudaStream_t stream);
235 
256 void
258  float *outBuffer,
259  unsigned char *inBuffer,
260  unsigned int width,
261  unsigned int height,
262  unsigned int pitch,
263  float scaleFactor,
264  float *meanDataBuffer,
265  cudaStream_t stream);
266 
285 void
287  float *outBuffer,
288  unsigned char *inBuffer,
289  unsigned int width,
290  unsigned int height,
291  unsigned int pitch,
292  float scaleFactor,
293  float *meanDataBuffer,
294  cudaStream_t stream);
295 
296 void
298  float *outBuffer,
299  float *inBuffer,
300  unsigned int width,
301  unsigned int height,
302  unsigned int pitch,
303  float scaleFactor,
304  float *meanDataBuffer,
305  cudaStream_t stream);
306 
307 
312 typedef void (* NvDsInferConvertFcn)(
313  float *outBuffer,
314  unsigned char *inBuffer,
315  unsigned int width,
316  unsigned int height,
317  unsigned int pitch,
318  float scaleFactor,
319  float *meanDataBuffer,
320  cudaStream_t stream);
321 
322 typedef void (* NvDsInferConvertFcnFloat)(
323  float *outBuffer,
324  float *inBuffer,
325  unsigned int width,
326  unsigned int height,
327  unsigned int pitch,
328  float scaleFactor,
329  float *meanDataBuffer,
330  cudaStream_t stream);
331 
332 #endif /* __NVDSINFER_CONVERSION_H__ */
NvDsInferConvert_C3ToL3RFloat
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...
NvDsInferConvert_C4ToL3RFloat
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...
NvDsInferConvert_C1ToP1Float
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...
NvDsInferConvert_C3ToP3Float
void NvDsInferConvert_C3ToP3Float(float *outBuffer, unsigned char *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
Copyright (c) 2018-2020, NVIDIA CORPORATION.
NvDsInferConvertFcn
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.
Definition: nvdsinfer_conversion.h:312
NvDsInferConvert_C4ToL3Float
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...
NvDsInferConvert_C4ToP3RFloat
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...
NvDsInferConvert_FtFTensor
void NvDsInferConvert_FtFTensor(float *outBuffer, float *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
NvDsInferConvert_C4ToP3Float
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...
cudaStream_t
struct CUstream_st * cudaStream_t
Forward declaration of cudaStream_t.
Definition: nvbufsurftransform.h:29
NvDsInferConvert_C3ToP3RFloat
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...
NvDsInferConvertFcnFloat
void(* NvDsInferConvertFcnFloat)(float *outBuffer, float *inBuffer, unsigned int width, unsigned int height, unsigned int pitch, float scaleFactor, float *meanDataBuffer, cudaStream_t stream)
Definition: nvdsinfer_conversion.h:322
NvDsInferConvert_C3ToL3Float
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...