NVIDIA DeepStream SDK API Reference

7.0 Release
seq_process_common.h File Reference

Go to the source code of this file.

Data Structures

struct  FullBatchBlock
 
struct  RoiProcessedBuf
 
struct  ReadyResult
 

Macros

#define CUSTOM_CONFIG_SUBSAMPLE   "subsample"
 
#define CUSTOM_CONFIG_STRIDE   "stride"
 
#define CUSTOM_CONFIG_CHANNEL_SCALE_FACTORS   "channel-scale-factors"
 
#define CUSTOM_CONFIG_CHANNEL_MEANS   "channel-mean-offsets"
 
#define DSASSERT   assert
 
#define UNUSED(var)   (void)(var)
 
#define LOG_PRINT_(out, level, fmt, ...)   fprintf(out, "%s:%d, [%s: CUSTOM_LIB] " fmt "\n", __FILE__, __LINE__, #level, ##__VA_ARGS__)
 
#define LOG_DEBUG(fmt, ...)
 
#define LOG_INFO(fmt, ...)   LOG_PRINT_(stdout, INFO, fmt, ##__VA_ARGS__)
 
#define LOG_ERROR(fmt, ...)   LOG_PRINT_(stderr, ERROR, fmt, ##__VA_ARGS__)
 
#define CHECK_PROCESS_ERROR(err, fmt, ...)
 
#define CHECK_CUDA_ERR(err, fmt, ...)
 
#define PROCESS_EXPORT_API   __attribute__((__visibility__("default")))
 
#define NVDSPREPROCESS_SKIP_FRAME   (NvDsPreProcessStatus)255
 
#define FRAME_NO_NOT_SET   UINT64_MAX
 

Typedefs

using SourceKey = std::tuple< uint64_t, int64_t, int64_t >
 
using SrcDestBufMap = std::map< SourceKey, std::unique_ptr< RoiProcessedBuf > >
 
template<class T >
using UniqPtr = std::unique_ptr< T, std::function< void(T *)> >
 

Variables

bool kEnableDebug
 

Macro Definition Documentation

◆ CHECK_CUDA_ERR

#define CHECK_CUDA_ERR (   err,
  fmt,
  ... 
)
Value:
do { \
cudaError_t _errnum_ = (err); \
if (_errnum_ != cudaSuccess) { \
LOG_ERROR( \
fmt ", cuda err_no: %d, err_str: %s", ##__VA_ARGS__, (int)_errnum_, \
cudaGetErrorName(_errnum_)); \
} \
} while (0)

Definition at line 78 of file seq_process_common.h.

◆ CHECK_PROCESS_ERROR

#define CHECK_PROCESS_ERROR (   err,
  fmt,
  ... 
)
Value:
do { \
NvDsPreProcessStatus _sno_ = (err); \
if (_sno_ != NVDSPREPROCESS_SUCCESS) { \
LOG_ERROR(fmt ", seq_process error: %d", ##__VA_ARGS__, (int)_sno_); \
return _sno_; \
} \
} while (0)

Definition at line 68 of file seq_process_common.h.

◆ CUSTOM_CONFIG_CHANNEL_MEANS

#define CUSTOM_CONFIG_CHANNEL_MEANS   "channel-mean-offsets"

Definition at line 44 of file seq_process_common.h.

◆ CUSTOM_CONFIG_CHANNEL_SCALE_FACTORS

#define CUSTOM_CONFIG_CHANNEL_SCALE_FACTORS   "channel-scale-factors"

Definition at line 43 of file seq_process_common.h.

◆ CUSTOM_CONFIG_STRIDE

#define CUSTOM_CONFIG_STRIDE   "stride"

Definition at line 42 of file seq_process_common.h.

◆ CUSTOM_CONFIG_SUBSAMPLE

#define CUSTOM_CONFIG_SUBSAMPLE   "subsample"

Definition at line 41 of file seq_process_common.h.

◆ DSASSERT

#define DSASSERT   assert

Definition at line 47 of file seq_process_common.h.

◆ FRAME_NO_NOT_SET

#define FRAME_NO_NOT_SET   UINT64_MAX

Definition at line 96 of file seq_process_common.h.

◆ LOG_DEBUG

#define LOG_DEBUG (   fmt,
  ... 
)
Value:
if (kEnableDebug) { \
LOG_PRINT_(stdout, DEBUG, fmt, ##__VA_ARGS__); \
}

Definition at line 58 of file seq_process_common.h.

◆ LOG_ERROR

#define LOG_ERROR (   fmt,
  ... 
)    LOG_PRINT_(stderr, ERROR, fmt, ##__VA_ARGS__)

Definition at line 65 of file seq_process_common.h.

◆ LOG_INFO

#define LOG_INFO (   fmt,
  ... 
)    LOG_PRINT_(stdout, INFO, fmt, ##__VA_ARGS__)

Definition at line 63 of file seq_process_common.h.

◆ LOG_PRINT_

#define LOG_PRINT_ (   out,
  level,
  fmt,
  ... 
)    fprintf(out, "%s:%d, [%s: CUSTOM_LIB] " fmt "\n", __FILE__, __LINE__, #level, ##__VA_ARGS__)

Definition at line 55 of file seq_process_common.h.

◆ NVDSPREPROCESS_SKIP_FRAME

#define NVDSPREPROCESS_SKIP_FRAME   (NvDsPreProcessStatus)255

Definition at line 93 of file seq_process_common.h.

◆ PROCESS_EXPORT_API

#define PROCESS_EXPORT_API   __attribute__((__visibility__("default")))

Definition at line 90 of file seq_process_common.h.

◆ UNUSED

#define UNUSED (   var)    (void)(var)

Definition at line 50 of file seq_process_common.h.

Typedef Documentation

◆ SourceKey

using SourceKey = std::tuple<uint64_t, int64_t, int64_t>

Definition at line 99 of file seq_process_common.h.

◆ SrcDestBufMap

using SrcDestBufMap = std::map<SourceKey, std::unique_ptr<RoiProcessedBuf> >

Definition at line 150 of file seq_process_common.h.

◆ UniqPtr

template<class T >
using UniqPtr = std::unique_ptr<T, std::function<void(T*)> >

Definition at line 154 of file seq_process_common.h.

Variable Documentation

◆ kEnableDebug

bool kEnableDebug
NVDSPREPROCESS_SUCCESS
@ NVDSPREPROCESS_SUCCESS
NvDsPreprocess operation succeeded.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:52
kEnableDebug
bool kEnableDebug
NVDSPREPROCESS_CUDA_ERROR
@ NVDSPREPROCESS_CUDA_ERROR
CUDA error was encountered.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:67