NVIDIA DeepStream SDK API Reference

6.4 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"
 Copyright (c) 2021, NVIDIA CORPORATION. More...
 
#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 88 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 78 of file seq_process_common.h.

◆ CUSTOM_CONFIG_CHANNEL_MEANS

#define CUSTOM_CONFIG_CHANNEL_MEANS   "channel-mean-offsets"

Definition at line 54 of file seq_process_common.h.

◆ CUSTOM_CONFIG_CHANNEL_SCALE_FACTORS

#define CUSTOM_CONFIG_CHANNEL_SCALE_FACTORS   "channel-scale-factors"

Definition at line 53 of file seq_process_common.h.

◆ CUSTOM_CONFIG_STRIDE

#define CUSTOM_CONFIG_STRIDE   "stride"

Definition at line 52 of file seq_process_common.h.

◆ CUSTOM_CONFIG_SUBSAMPLE

#define CUSTOM_CONFIG_SUBSAMPLE   "subsample"

Copyright (c) 2021, NVIDIA CORPORATION.

All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 51 of file seq_process_common.h.

◆ DSASSERT

#define DSASSERT   assert

Definition at line 57 of file seq_process_common.h.

◆ FRAME_NO_NOT_SET

#define FRAME_NO_NOT_SET   UINT64_MAX

Definition at line 106 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 68 of file seq_process_common.h.

◆ LOG_ERROR

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

Definition at line 75 of file seq_process_common.h.

◆ LOG_INFO

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

Definition at line 73 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 65 of file seq_process_common.h.

◆ NVDSPREPROCESS_SKIP_FRAME

#define NVDSPREPROCESS_SKIP_FRAME   (NvDsPreProcessStatus)255

Definition at line 103 of file seq_process_common.h.

◆ PROCESS_EXPORT_API

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

Definition at line 100 of file seq_process_common.h.

◆ UNUSED

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

Definition at line 60 of file seq_process_common.h.

Typedef Documentation

◆ SourceKey

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

Definition at line 109 of file seq_process_common.h.

◆ SrcDestBufMap

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

Definition at line 160 of file seq_process_common.h.

◆ UniqPtr

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

Definition at line 164 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:62
kEnableDebug
bool kEnableDebug
NVDSPREPROCESS_CUDA_ERROR
@ NVDSPREPROCESS_CUDA_ERROR
CUDA error was encountered.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:77