NVIDIA DeepStream SDK API Reference

7.0 Release
nvdsinfer_context_impl.h File Reference

Go to the source code of this file.

Data Structures

struct  nvdsinfer::NvDsInferBatch
 Holds information for one batch for processing. More...
 
class  nvdsinfer::InferPreprocessor
 Provides pre-processing functionality like mean subtraction and normalization. More...
 
class  nvdsinfer::InferPostprocessor
 Base class for post-processing on inference output. More...
 
class  nvdsinfer::DetectPostprocessor
 Implementation of post-processing class for object detection networks. More...
 
class  nvdsinfer::InstanceSegmentPostprocessor
 Implementation of post-processing class for instance segmentation networks. More...
 
class  nvdsinfer::ClassifyPostprocessor
 Implementation of post-processing class for classification networks. More...
 
class  nvdsinfer::SegmentPostprocessor
 Implementation of post-processing class for segmentation networks. More...
 
class  nvdsinfer::OtherPostprocessor
 
class  nvdsinfer::NvDsInferContextImpl
 Implementation of the INvDsInferContext interface. More...
 

Namespaces

 nvdsinfer
 

Macros

#define printMsg(level, tag_str, fmt, ...)
 
#define printError(fmt, ...)
 
#define printWarning(fmt, ...)
 
#define printInfo(fmt, ...)
 
#define printDebug(fmt, ...)
 

Typedefs

using nvdsinfer::NvDsInferLoggingFunc = std::function< void(NvDsInferLogLevel, const char *msg)>
 

Macro Definition Documentation

◆ printDebug

#define printDebug (   fmt,
  ... 
)
Value:
do { \
printMsg (NVDSINFER_LOG_DEBUG, "DEBUG", fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 534 of file nvdsinfer_context_impl.h.

◆ printError

#define printError (   fmt,
  ... 
)
Value:
do { \
printMsg (NVDSINFER_LOG_ERROR, "Error in", fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 519 of file nvdsinfer_context_impl.h.

◆ printInfo

#define printInfo (   fmt,
  ... 
)
Value:
do { \
printMsg (NVDSINFER_LOG_INFO, "Info from", fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 529 of file nvdsinfer_context_impl.h.

◆ printMsg

#define printMsg (   level,
  tag_str,
  fmt,
  ... 
)
Value:
do { \
char* baseName = strrchr((char*)__FILE__, '/'); \
baseName = (baseName) ? (baseName + 1) : (char*)__FILE__; \
char logMsgBuffer[5 * _MAX_STR_LENGTH + 1]; \
snprintf(logMsgBuffer, 5 * _MAX_STR_LENGTH, \
tag_str " NvDsInferContextImpl::%s() <%s:%d> [UID = %d]: " fmt, \
__func__, baseName, __LINE__, m_UniqueID, ##__VA_ARGS__); \
if (m_LoggingFunc) { \
m_LoggingFunc(level, logMsgBuffer); \
} else { \
fprintf(stderr, "%s\n", logMsgBuffer); \
} \
} while (0)

Definition at line 504 of file nvdsinfer_context_impl.h.

◆ printWarning

#define printWarning (   fmt,
  ... 
)
Value:
do { \
printMsg (NVDSINFER_LOG_WARNING, "Warning from", fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 524 of file nvdsinfer_context_impl.h.

NVDSINFER_LOG_ERROR
@ NVDSINFER_LOG_ERROR
Definition: nvdsinfer.h:250
NVDSINFER_LOG_INFO
@ NVDSINFER_LOG_INFO
Definition: nvdsinfer.h:252
NVDSINFER_LOG_WARNING
@ NVDSINFER_LOG_WARNING
Definition: nvdsinfer.h:251
NVDSINFER_LOG_DEBUG
@ NVDSINFER_LOG_DEBUG
Definition: nvdsinfer.h:253
_MAX_STR_LENGTH
#define _MAX_STR_LENGTH
Definition: post_processor_struct.h:38