NVIDIA DeepStream SDK API Reference

7.1 Release
nvdsinfer_conversion.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2020 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
17 #ifndef __NVDSINFER_CONVERSION_H__
18 #define __NVDSINFER_CONVERSION_H__
19 
40 void
42  float *outBuffer,
43  unsigned char *inBuffer,
44  unsigned int width,
45  unsigned int height,
46  unsigned int pitch,
47  float scaleFactor,
48  float *meanDataBuffer,
49  cudaStream_t stream);
50 
71 void
73  float *outBuffer,
74  unsigned char *inBuffer,
75  unsigned int width,
76  unsigned int height,
77  unsigned int pitch,
78  float scaleFactor,
79  float *meanDataBuffer,
80  cudaStream_t stream);
81 
102 void
104  float *outBuffer,
105  unsigned char *inBuffer,
106  unsigned int width,
107  unsigned int height,
108  unsigned int pitch,
109  float scaleFactor,
110  float *meanDataBuffer,
111  cudaStream_t stream);
112 
133 void
135  float *outBuffer,
136  unsigned char *inBuffer,
137  unsigned int width,
138  unsigned int height,
139  unsigned int pitch,
140  float scaleFactor,
141  float *meanDataBuffer,
142  cudaStream_t stream);
143 
164 void
166  float *outBuffer,
167  unsigned char *inBuffer,
168  unsigned int width,
169  unsigned int height,
170  unsigned int pitch,
171  float scaleFactor,
172  float *meanDataBuffer,
173  cudaStream_t stream);
174 
195 void
197  float *outBuffer,
198  unsigned char *inBuffer,
199  unsigned int width,
200  unsigned int height,
201  unsigned int pitch,
202  float scaleFactor,
203  float *meanDataBuffer,
204  cudaStream_t stream);
205 
226 void
228  float *outBuffer,
229  unsigned char *inBuffer,
230  unsigned int width,
231  unsigned int height,
232  unsigned int pitch,
233  float scaleFactor,
234  float *meanDataBuffer,
235  cudaStream_t stream);
236 
257 void
259  float *outBuffer,
260  unsigned char *inBuffer,
261  unsigned int width,
262  unsigned int height,
263  unsigned int pitch,
264  float scaleFactor,
265  float *meanDataBuffer,
266  cudaStream_t stream);
267 
286 void
288  float *outBuffer,
289  unsigned char *inBuffer,
290  unsigned int width,
291  unsigned int height,
292  unsigned int pitch,
293  float scaleFactor,
294  float *meanDataBuffer,
295  cudaStream_t stream);
296 
297 void
299  float *outBuffer,
300  float *inBuffer,
301  unsigned int width,
302  unsigned int height,
303  unsigned int pitch,
304  float scaleFactor,
305  float *meanDataBuffer,
306  cudaStream_t stream);
307 
308 
313 typedef void (* NvDsInferConvertFcn)(
314  float *outBuffer,
315  unsigned char *inBuffer,
316  unsigned int width,
317  unsigned int height,
318  unsigned int pitch,
319  float scaleFactor,
320  float *meanDataBuffer,
321  cudaStream_t stream);
322 
323 typedef void (* NvDsInferConvertFcnFloat)(
324  float *outBuffer,
325  float *inBuffer,
326  unsigned int width,
327  unsigned int height,
328  unsigned int pitch,
329  float scaleFactor,
330  float *meanDataBuffer,
331  cudaStream_t stream);
332 
333 #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)
This is a header file for pre-processing cuda kernels with normalization and mean subtraction require...
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:313
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:34
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:323
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...