NVIDIA DeepStream SDK API Reference

7.0 Release
nvdspreprocess_impl.h File Reference

Go to the source code of this file.

Data Structures

struct  CustomMeanSubandNormParams
 Custom parameters for normalization and mean subtractions. More...
 
class  CudaStream
 Helper class for managing Cuda Streams. More...
 
class  CudaBuffer
 Helper base class for managing Cuda allocated buffers. More...
 
class  CudaDeviceBuffer
 CUDA device buffers. More...
 
class  NvDsPreProcessTensorImpl
 Provides pre-processing functionality like mean subtraction and normalization. More...
 

Macros

#define _MAX_CHANNELS   4
 Defines the maximum number of channels supported by the API for image input layers. More...
 
#define DISABLE_CLASS_COPY(NoCopyClass)
 APIs/macros for some frequently used functionality. More...
 
#define SIMPLE_MOVE_COPY(Cls)
 helper move function More...
 

Functions

const char * safeStr (const std::string &str)
 helper check safe string in C More...
 
bool file_accessible (const char *path)
 helper check if file accessible in C More...
 
bool file_accessible (const std::string &path)
 helper check if file accessible in C++ More...
 
NvDsPreProcessStatus normalization_mean_subtraction_impl_initialize (CustomMeanSubandNormParams *custom_params, NvDsPreProcessTensorParams *tensor_params, std::unique_ptr< NvDsPreProcessTensorImpl > &m_Preprocessor, int unique_id)
 Initialize for pixel normalization and mean subtraction. More...
 

Macro Definition Documentation

◆ _MAX_CHANNELS

#define _MAX_CHANNELS   4

Defines the maximum number of channels supported by the API for image input layers.

Definition at line 33 of file nvdspreprocess_impl.h.

◆ DISABLE_CLASS_COPY

#define DISABLE_CLASS_COPY (   NoCopyClass)
Value:
NoCopyClass(const NoCopyClass &) = delete; \
void operator=(const NoCopyClass &) = delete

APIs/macros for some frequently used functionality.

Definition at line 36 of file nvdspreprocess_impl.h.

◆ SIMPLE_MOVE_COPY

#define SIMPLE_MOVE_COPY (   Cls)
Value:
Cls &operator=(Cls &&o) \
{ \
move_copy(std::move(o)); \
return *this; \
} \
Cls(Cls &&o) { move_copy(std::move(o)); }

helper move function

Definition at line 41 of file nvdspreprocess_impl.h.

Function Documentation

◆ file_accessible() [1/2]

bool file_accessible ( const char *  path)
inline

helper check if file accessible in C

Definition at line 56 of file nvdspreprocess_impl.h.

Referenced by file_accessible().

◆ file_accessible() [2/2]

bool file_accessible ( const std::string &  path)
inline

helper check if file accessible in C++

Definition at line 63 of file nvdspreprocess_impl.h.

References file_accessible().

◆ normalization_mean_subtraction_impl_initialize()

NvDsPreProcessStatus normalization_mean_subtraction_impl_initialize ( CustomMeanSubandNormParams custom_params,
NvDsPreProcessTensorParams tensor_params,
std::unique_ptr< NvDsPreProcessTensorImpl > &  m_Preprocessor,
int  unique_id 
)

Initialize for pixel normalization and mean subtraction.

◆ safeStr()

const char* safeStr ( const std::string &  str)
inline

helper check safe string in C

Definition at line 50 of file nvdspreprocess_impl.h.