NVIDIA DeepStream SDK API Reference

6.4 Release
ds3d Namespace Reference

Namespaces

 app
 
 config
 
 gst
 
 impl
 
 lidarinfer
 
 profiling
 

Data Structures

struct  __DataTypeTrait
 
struct  __DataTypeVal
 
struct  __TypeID
 
union  __x
 
union  __xy
 
union  __xyz
 
union  __xyzw
 
struct  abi2DFrame
 
struct  abiCallBackT
 
class  abiDataBridge
 
class  abiDataFilter
 
class  abiDataLoader
 
class  abiDataMap
 
class  abiDataMixer
 
class  abiDataRender
 
struct  abiFrame
 
class  abiProcess
 
class  abiRefCast
 
struct  abiRefObj
 
struct  abiRefT
 
class  abiWindow
 
class  BufferPool
 
class  CBObjT
 
class  CpuMemBuf
 
class  CudaStream
 
class  CustomLibFactory
 
struct  DataProcessUserData
 
struct  DepthScale
 
class  Exception
 
struct  ExtrinsicsParam
 
struct  Frame2DPlane
 
struct  FusedDetection
 Object fused bounding box description. More...
 
class  GpuCudaMemBuf
 
class  GuardCB
 
class  GuardDataBridge
 GuardDataBridge is the safe access entry for abiDataBridge. More...
 
class  GuardDataFilter
 GuardDataFilter is the safe access entry for abiDataFilter. More...
 
class  GuardDataLoader
 GuardDataLoader is the safe access entry for abiDataLoader. More...
 
class  GuardDataMap
 
class  GuardDataMixer
 GuardDataMixer is the safe access entry for abiDataMixer. More...
 
class  GuardDataProcess
 
class  GuardDataRender
 GuardDataRender is the safe access entry for abiDataRender. More...
 
class  GuardDataT
 
class  GuardRef
 Guard to wrapper all abiRefObj& data. More...
 
class  IInferCustomPreprocessor
 
struct  IntrinsicsParam
 
struct  Lidar3DBbox
 Object 3D bounding box description. More...
 
struct  MemData
 
struct  NativeData
 
struct  NativeData< DataType::kDouble >
 
struct  NativeData< DataType::kFp16 >
 
struct  NativeData< DataType::kFp32 >
 
struct  NativeData< DataType::kInt16 >
 
struct  NativeData< DataType::kInt32 >
 
struct  NativeData< DataType::kInt64 >
 
struct  NativeData< DataType::kInt8 >
 
struct  NativeData< DataType::kUint16 >
 
struct  NativeData< DataType::kUint32 >
 
struct  NativeData< DataType::kUint8 >
 
struct  Object2DBbox
 Object 2D bounding box description. More...
 
class  SafeQueue
 
struct  Shape
 
class  SharedRefObj
 
class  SignalShot
 
struct  TimeStamp
 
struct  TpId
 
struct  TpId< bool >
 
struct  TpId< double >
 
struct  TpId< float >
 
struct  TpId< int16_t >
 
struct  TpId< int32_t >
 
struct  TpId< int64_t >
 
struct  TpId< int8_t >
 
struct  TpId< uint16_t >
 
struct  TpId< uint32_t >
 
struct  TpId< uint8_t >
 
struct  TransformMatrix
 
struct  VideoBridge2dInput
 

Typedefs

using LockMutex = std::unique_lock< std::mutex >
 
typedef abiRefT< void > abiRefAny
 
typedef abiRefT< abiDataMapabiRefDataMap
 
typedef abiCallBackT< ErrCode, const char * > abiErrorCB
 
typedef abiCallBackT< ErrCode, const abiRefDataMap * > abiOnDataCB
 
typedef abiCallBackT< ErrCode, const struct VideoBridge2dInput * > abiOnBridgeDataCB
 
template<typename T >
using vec4 = __xyzw< T >
 
template<typename T >
using vec3 = __xyz< T >
 
template<typename T >
using vec2 = __xy< T >
 
template<typename T >
using vec1 = __x< T >
 
using vec4f = vec4< float >
 
using vec3f = vec3< float >
 
using vec2f = vec2< float >
 
using vec1f = vec1< float >
 
using vec4b = vec4< uint8_t >
 
using vec3b = vec3< uint8_t >
 
using vec2b = vec2< uint8_t >
 
using vec1b = vec1< uint8_t >
 
typedef abiRefT< abiFrameabiRefFrame
 
typedef abiRefT< abi2DFrameabiRef2DFrame
 
typedef abiRefT< abiDataLoaderabiRefDataLoader
 
typedef abiRefT< abiDataFilterabiRefDataFilter
 
typedef abiRefT< abiDataBridgeabiRefDataBridge
 
typedef abiRefT< abiDataRenderabiRefDataRender
 
typedef abiRefT< abiDataMixerabiRefDataMixer
 
typedef abiRefT< abiWindowabiRefWindow
 
using TIdType = uint64_t
 
template<class T >
using ShrdPtr = std::shared_ptr< T >
 
template<class T >
using UniqPtr = std::unique_ptr< T, std::function< void(T *)> >
 
template<class T >
using Ptr = ShrdPtr< T >
 
template<typename T >
using _EnableIfValidIdType = typename std::enable_if_t< TpId< std::remove_cv_t< T > >::__typeid() >=0, bool >
 
template<typename T , typename... Args>
using _IsConstructible = typename std::is_constructible< T, Args... >::value
 
template<typename T , typename... Args>
using _EnableIfConstructible = typename std::enable_if< std::is_constructible< T, Args... >::value, bool >::type
 
template<class From , class To >
using _Convertible = std::enable_if_t< std::is_convertible< From, To >::value||std::is_constructible< std::remove_reference< To >, std::remove_reference< From > >::value, bool >
 
template<class Base , class Derived >
using _EnableIfBaseOf = std::enable_if_t< std::is_base_of< Base, Derived >::value, bool >
 
template<class From , class To >
using _PtrConvertible = std::enable_if_t< std::is_convertible< From *, To * >::value||std::is_constructible< std::remove_reference< To * >, std::remove_reference< From * > >::value||std::is_base_of< From, To >::value, bool >
 
using RefDataMapObj = SharedRefObj< abiRefDataMap >
 
using GuardWindow = GuardDataT< abiWindow >
 
using FrameGuard = GuardDataT< abiFrame >
 
using Frame2DGuard = GuardDataT< abi2DFrame >
 

Enumerations

enum  DataMapPolicy : int {
  DataMapPolicy::kCopyPolicyNone = 0,
  DataMapPolicy::kCopyWithIntegerId = 1
}
 
enum  DataType : int {
  DataType::kFp32 = 0,
  DataType::kFp16 = 1,
  DataType::kInt8 = 2,
  DataType::kInt32 = 3,
  DataType::kInt16 = 7,
  DataType::kUint8,
  DataType::kUint16,
  DataType::kUint32,
  DataType::kDouble,
  DataType::kInt64
}
 
enum  FrameType : int {
  FrameType::kUnknown = 0,
  FrameType::kDepth = 1,
  FrameType::kColorRGBA = 2,
  FrameType::kColorRGB = 3,
  FrameType::kPointXYZ = 32,
  FrameType::kPointCoordUV = 33,
  FrameType::kLidarXYZI = 34,
  FrameType::kCustom = 255
}
 
enum  MemType : int {
  MemType::kNone = 0,
  MemType::kGpuCuda = 1,
  MemType::kCpu = 2,
  MemType::kCpuPinned = 3
}
 
enum  State : int {
  State::kNone = 0,
  State::kStarting,
  State::kRunning,
  State::kStopped
}
 All custom-libs need create the abi reference for DataLoader, DataRender, and DataFilter. More...
 
enum  MixerUpdate : int {
  MixerUpdate::kPortAdded = 0,
  MixerUpdate::kPortRemoved = 1
}
 
enum  CapsPort : int {
  CapsPort::kInput = 0,
  CapsPort::kOutput
}
 
enum  ErrCode : int {
  ErrCode::kGood = 0,
  ErrCode::kByPass = 1,
  ErrCode::KEndOfStream = 2,
  ErrCode::kLoadLib = -1,
  ErrCode::kMem = -2,
  ErrCode::kParam = -3,
  ErrCode::kNotFound = -4,
  ErrCode::kTimeOut = -5,
  ErrCode::kTypeId = -6,
  ErrCode::kNvDsMeta = -7,
  ErrCode::kUnsupported = -8,
  ErrCode::kConfig = -9,
  ErrCode::kRealSense = -10,
  ErrCode::kNullPtr = -11,
  ErrCode::kOutOfRange = -12,
  ErrCode::kGst = -13,
  ErrCode::kState = -14,
  ErrCode::kGL = -15,
  ErrCode::kLockWakeup = -16,
  ErrCode::kCuda = -17,
  ErrCode::kIncompatible = -18,
  ErrCode::kUnknown = -255
}
 

Functions

template<class T >
T * dlsym_ptr (void *handle, char const *name)
 
bool isGood (ErrCode c)
 
bool isNotBad (ErrCode c)
 
bool isCpuMem (MemType t)
 
bool isGpuMem (MemType t)
 
const char * ErrCodeStr (ErrCode code)
 
void throwError (ErrCode code, const std::string &msg)
 
template<class F , typename... Args>
ErrCode CatchError (F f, Args... args)
 
ErrCode CatchVoidCall (std::function< void()> f)
 
std::string cppString (const char *str, size_t len=0)
 
template<typename T >
uint32_t bytesPerPixel (FrameType f)
 
uint32_t dataTypeBytes (DataType t)
 
size_t ShapeSize (const Shape &shape)
 
bool operator== (const Shape &a, const Shape &b)
 
bool operator!= (const Shape &a, const Shape &b)
 
bool readFile (const std::string &path, std::string &context)
 
bool NvDs3dEnableDebug ()
 
template<typename Data >
void array2Vec3 (Data *from, vec3< Data > &to)
 
bool isNear (float a, float b)
 
TransformMatrix getIntrinsicMat (IntrinsicsParam &param)
 
template<class T >
void DeleteTFunc (T *t)
 
template<class From , class To , class convertType >
To * pointerCast (From *a)
 
template<class Tp >
abiRefT< Tp > * NewAbiRef (Tp *rawAbiObj)
 
template<class From , class To = From>
SharedRefObj< To > * PtrToAbiRef (ShrdPtr< From > &&p)
 
template<class From , class To = From>
ShrdPtr< To > AbiRefToPtr (const abiRefT< From > &p)
 

Variables

constexpr uint32_t kDataProcessUserDataMagic = NVDS3D_MAGIC_ID('D', '3', 'U', 'D')
 
constexpr const size_t kMaxShapeDims = 8
 
static constexpr const char * kTimeStamp = DS3D_KEY_NAME("Timestamp")
 
static constexpr const char * kColorFrame = DS3D_KEY_NAME("ColorFrame")
 
static constexpr const char * kDepthFrame = DS3D_KEY_NAME("DepthFrame")
 
static constexpr const char * kDepthScaleUnit = DS3D_KEY_NAME("DepthScaleUnit")
 
static constexpr const char * kDepthIntrinsics = DS3D_KEY_NAME("DepthIntrinsics")
 
static constexpr const char * kColorIntrinsics = DS3D_KEY_NAME("ColorIntrinsics")
 
static constexpr const char * kDepth2ColorExtrinsics = DS3D_KEY_NAME("Depth2ColorExtrinsics")
 
static constexpr const char * kColorDepthAligned = DS3D_KEY_NAME("ColorDepthAligned")
 
static constexpr const char * kTextureVertexKey = DS3D_KEY_NAME("TextureVertexKey")
 
static constexpr const char * kTextureCoordinateKey = DS3D_KEY_NAME("TextureCoordKey")
 
static constexpr const char * kEOS = DS3D_KEY_NAME("EndOfStream")
 
static constexpr const char * kPointXYZ = DS3D_KEY_NAME("PointXYZ")
 
static constexpr const char * kPointCoordUV = DS3D_KEY_NAME("PointColorCoord")
 
static constexpr const char * kLidarXYZI = DS3D_KEY_NAME("LidarXYZI")
 
static constexpr const char * kLidarInferenceParas = DS3D_KEY_NAME("LidarInferenceParas")
 
static constexpr const char * kDs3dInferenceParas = DS3D_KEY_NAME("DS3DInferneceParasKey")
 
static constexpr const char * kLidarRefDataMap = DS3D_KEY_NAME("LidarRefDataMap")
 
static constexpr const char * kLidar3DBboxRawData = DS3D_KEY_NAME("Lidar3DBboxRawData")
 get array of Lidar3DBbox from FrameGuard [N, sizeof(Lidar3DBbox)] More...
 
static constexpr const char * kLidarAlignedXYZI = DS3D_KEY_NAME("LidarAlignedXYZIKey")
 
static constexpr const char * kCamIntrinsicParm = DS3D_KEY_NAME("CameraIntrinsicParm")
 
static constexpr const char * kCamIntrinsicMat = DS3D_KEY_NAME("CameraIntrinsicMatrix")
 
static constexpr const char * kLidarToCamExtrinsicMat = DS3D_KEY_NAME("LidarToCameraExtrinsicMatrix")
 
static constexpr const char * kVideoBridge2dData = DS3D_KEY_NAME("VideoBridge2dInput")
 
static constexpr const char * kGstBuffer = DS3D_KEY_NAME("GstBuffer")
 
static constexpr const char * kNvBufSurface = DS3D_KEY_NAME("NvBufSurface")
 
static constexpr const char * kNvDsBatchMeta = DS3D_KEY_NAME("NvDsBatchMeta")
 
static constexpr const char * kFirstSourceFrame = DS3D_KEY_NAME("FirstSourceFrame")
 
static constexpr const char * kSourceId = DS3D_KEY_NAME("SourceId")
 
static constexpr const char * kObject2DBboxKey = DS3D_KEY_NAME("Object2DBboxKey")
 get array of Object2DBbox from FrameGuard [N, sizeof(Object2DBbox)] More...
 
static constexpr const char * kFusedDetectionKey = DS3D_KEY_NAME("FusedDetectionKey")
 get array of FusedDetection from FrameGuard [N, sizeof(FusedDetection)] More...
 
static constexpr const char * kDefaultDs3dCaps = "ds3d/datamap"
 

Typedef Documentation

◆ _Convertible

template<class From , class To >
using ds3d::_Convertible = typedef std::enable_if_t< std::is_convertible<From, To>::value || std::is_constructible<std::remove_reference<To>, std::remove_reference<From> >::value, bool>

Definition at line 59 of file obj.hpp.

◆ _EnableIfBaseOf

template<class Base , class Derived >
using ds3d::_EnableIfBaseOf = typedef std::enable_if_t<std::is_base_of<Base, Derived>::value, bool>

Definition at line 61 of file obj.hpp.

◆ _EnableIfConstructible

template<typename T , typename... Args>
using ds3d::_EnableIfConstructible = typedef typename std::enable_if<std::is_constructible<T, Args...>::value, bool>::type

Definition at line 53 of file obj.hpp.

◆ _EnableIfValidIdType

template<typename T >
using ds3d::_EnableIfValidIdType = typedef typename std::enable_if_t<TpId<std::remove_cv_t<T> >::__typeid() >= 0, bool>

Definition at line 46 of file obj.hpp.

◆ _IsConstructible

template<typename T , typename... Args>
using ds3d::_IsConstructible = typedef typename std::is_constructible<T, Args...>::value

Definition at line 49 of file obj.hpp.

◆ _PtrConvertible

template<class From , class To >
using ds3d::_PtrConvertible = typedef std::enable_if_t< std::is_convertible<From*, To*>::value || std::is_constructible<std::remove_reference<To*>, std::remove_reference<From*> >::value || std::is_base_of<From, To>::value, bool>

Definition at line 68 of file obj.hpp.

◆ abiErrorCB

typedef abiCallBackT<ErrCode, const char*> ds3d::abiErrorCB

Definition at line 77 of file abi_obj.h.

◆ abiOnBridgeDataCB

Definition at line 79 of file abi_obj.h.

◆ abiOnDataCB

Definition at line 78 of file abi_obj.h.

◆ abiRef2DFrame

Definition at line 58 of file abi_frame.h.

◆ abiRefAny

typedef abiRefT<void> ds3d::abiRefAny

Definition at line 44 of file abi_obj.h.

◆ abiRefDataBridge

Definition at line 171 of file abi_dataprocess.h.

◆ abiRefDataFilter

Definition at line 168 of file abi_dataprocess.h.

◆ abiRefDataLoader

Definition at line 165 of file abi_dataprocess.h.

◆ abiRefDataMap

Definition at line 67 of file abi_obj.h.

◆ abiRefDataMixer

Definition at line 177 of file abi_dataprocess.h.

◆ abiRefDataRender

Definition at line 174 of file abi_dataprocess.h.

◆ abiRefFrame

Definition at line 41 of file abi_frame.h.

◆ abiRefWindow

Definition at line 52 of file abi_window.h.

◆ Frame2DGuard

Definition at line 53 of file frame.hpp.

◆ FrameGuard

Definition at line 25 of file frame.hpp.

◆ GuardWindow

Definition at line 23 of file datarender.hpp.

◆ LockMutex

using ds3d::LockMutex = typedef std::unique_lock<std::mutex>

Definition at line 25 of file func_utils.h.

◆ Ptr

template<class T >
using ds3d::Ptr = typedef ShrdPtr<T>

Definition at line 33 of file obj.hpp.

◆ RefDataMapObj

Definition at line 160 of file obj.hpp.

◆ ShrdPtr

template<class T >
using ds3d::ShrdPtr = typedef std::shared_ptr<T>

Definition at line 29 of file obj.hpp.

◆ TIdType

using ds3d::TIdType = typedef uint64_t

Definition at line 69 of file common.h.

◆ UniqPtr

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

Definition at line 31 of file obj.hpp.

◆ vec1

template<typename T >
using ds3d::vec1 = typedef __x<T>

Definition at line 64 of file idatatype.h.

◆ vec1b

using ds3d::vec1b = typedef vec1<uint8_t>

Definition at line 74 of file idatatype.h.

◆ vec1f

using ds3d::vec1f = typedef vec1<float>

Definition at line 69 of file idatatype.h.

◆ vec2

template<typename T >
using ds3d::vec2 = typedef __xy<T>

Definition at line 62 of file idatatype.h.

◆ vec2b

using ds3d::vec2b = typedef vec2<uint8_t>

Definition at line 73 of file idatatype.h.

◆ vec2f

using ds3d::vec2f = typedef vec2<float>

Definition at line 68 of file idatatype.h.

◆ vec3

template<typename T >
using ds3d::vec3 = typedef __xyz<T>

Definition at line 60 of file idatatype.h.

◆ vec3b

using ds3d::vec3b = typedef vec3<uint8_t>

Definition at line 72 of file idatatype.h.

◆ vec3f

using ds3d::vec3f = typedef vec3<float>

Definition at line 67 of file idatatype.h.

◆ vec4

template<typename T >
using ds3d::vec4 = typedef __xyzw<T>

Definition at line 58 of file idatatype.h.

◆ vec4b

using ds3d::vec4b = typedef vec4<uint8_t>

Definition at line 71 of file idatatype.h.

◆ vec4f

using ds3d::vec4f = typedef vec4<float>

Definition at line 66 of file idatatype.h.

Enumeration Type Documentation

◆ CapsPort

enum ds3d::CapsPort : int
strong
Enumerator
kInput 
kOutput 

Definition at line 61 of file abi_dataprocess.h.

◆ DataMapPolicy

enum ds3d::DataMapPolicy : int
strong
Enumerator
kCopyPolicyNone 
kCopyWithIntegerId 

copy from one datamap to another with key_string manipulated with d+key_string+d where d is an integer Id passed with copy_i() @policyData (int32_t*)

Definition at line 29 of file abi_obj.h.

◆ DataType

enum ds3d::DataType : int
strong
Enumerator
kFp32 
kFp16 
kInt8 
kInt32 
kInt16 
kUint8 
kUint16 
kUint32 
kDouble 
kInt64 

Definition at line 77 of file idatatype.h.

◆ ErrCode

enum ds3d::ErrCode : int
strong
Enumerator
kGood 
kByPass 
KEndOfStream 
kLoadLib 
kMem 
kParam 
kNotFound 
kTimeOut 
kTypeId 
kNvDsMeta 
kUnsupported 
kConfig 
kRealSense 
kNullPtr 
kOutOfRange 
kGst 
kState 
kGL 
kLockWakeup 
kCuda 
kIncompatible 
kUnknown 

Definition at line 43 of file common.h.

◆ FrameType

enum ds3d::FrameType : int
strong
Enumerator
kUnknown 
kDepth 
kColorRGBA 
kColorRGB 
kPointXYZ 
kPointCoordUV 
kLidarXYZI 
kCustom 

Definition at line 90 of file idatatype.h.

◆ MemType

enum ds3d::MemType : int
strong
Enumerator
kNone 
kGpuCuda 
kCpu 
kCpuPinned 

Definition at line 101 of file idatatype.h.

◆ MixerUpdate

enum ds3d::MixerUpdate : int
strong
Enumerator
kPortAdded 
kPortRemoved 

Definition at line 58 of file abi_dataprocess.h.

◆ State

enum ds3d::State : int
strong

All custom-libs need create the abi reference for DataLoader, DataRender, and DataFilter.

Take dataloader for example, custom-lib: libnvds_custom_loader.so has exported function: NvDsCreateFakeDataloader Users can get this loader through typedef abiRefDataLoader*(LoaderCreateFunc)(); void handle = dlopen("libnvds_custom_loader.so"); auto creator = (LoaderCreateFunc)dlsym(handle, "NvDsCreateFakeDataloader"); abiRefDataLoader* loader = creator(); GuardDataLoader guardLoader(loader, true); // true for take ownership loader.setUserData(ctx, [ctx](void*){ delete ctx }); loader.setErrorCallback([](ErrCode c, const char* msg){ printf("error msg: %s", msg); }); ErrCode c = loader.start(config, configpath); DS_ASSERT(isGood(c)); DS_ASSERT(loader.getState() == State::kRunning) while(...) { GuardDataMap datamap; ErrCode c = loader.readData(datamap); // process datamap } c = loader.stop(); DS_ASSERT(loader.getState() == State::kStopped) loader.reset(); // destroy dataloader reference, when last reference // destroyed, actual derived dataLoader will be deleted.

Enumerator
kNone 
kStarting 
kRunning 
kStopped 

Definition at line 51 of file abi_dataprocess.h.

Function Documentation

◆ AbiRefToPtr()

template<class From , class To = From>
ShrdPtr<To> ds3d::AbiRefToPtr ( const abiRefT< From > &  p)
inline

◆ array2Vec3()

template<typename Data >
void ds3d::array2Vec3 ( Data *  from,
vec3< Data > &  to 
)

Definition at line 222 of file func_utils.h.

References ds3d::__xyz< T >::data.

◆ bytesPerPixel()

template<typename T >
uint32_t ds3d::bytesPerPixel ( FrameType  f)
inline

Definition at line 118 of file func_utils.h.

References DS_ASSERT, kColorRGB, kColorRGBA, kDepth, kLidarXYZI, kPointCoordUV, kPointXYZ, and LOG_ERROR.

◆ CatchError()

template<class F , typename... Args>
ErrCode ds3d::CatchError ( f,
Args...  args 
)
inline

◆ CatchVoidCall()

ErrCode ds3d::CatchVoidCall ( std::function< void()>  f)
inline

◆ cppString()

std::string ds3d::cppString ( const char *  str,
size_t  len = 0 
)
inline

◆ dataTypeBytes()

◆ DeleteTFunc()

template<class T >
void ds3d::DeleteTFunc ( T *  t)

Definition at line 37 of file obj.hpp.

◆ dlsym_ptr()

template<class T >
T* ds3d::dlsym_ptr ( void *  handle,
char const *  name 
)

Definition at line 27 of file custom_lib_factory.h.

Referenced by ds3d::CustomLibFactory::CreateCtx().

◆ ErrCodeStr()

◆ getIntrinsicMat()

◆ isCpuMem()

bool ds3d::isCpuMem ( MemType  t)
inline

Definition at line 40 of file func_utils.h.

References kCpu, and kCpuPinned.

◆ isGood()

◆ isGpuMem()

bool ds3d::isGpuMem ( MemType  t)
inline

Definition at line 46 of file func_utils.h.

References kGpuCuda.

◆ isNear()

bool ds3d::isNear ( float  a,
float  b 
)
inline

Definition at line 230 of file func_utils.h.

◆ isNotBad()

bool ds3d::isNotBad ( ErrCode  c)
inline

Definition at line 34 of file func_utils.h.

References kGood.

◆ NewAbiRef()

template<class Tp >
abiRefT<Tp>* ds3d::NewAbiRef ( Tp *  rawAbiObj)

Definition at line 155 of file obj.hpp.

◆ NvDs3dEnableDebug()

bool ds3d::NvDs3dEnableDebug ( )
inline

Definition at line 214 of file func_utils.h.

◆ operator!=()

bool ds3d::operator!= ( const Shape a,
const Shape b 
)
inline

Definition at line 194 of file func_utils.h.

◆ operator==()

bool ds3d::operator== ( const Shape a,
const Shape b 
)
inline

Definition at line 180 of file func_utils.h.

References ds3d::Shape::d, and ds3d::Shape::numDims.

◆ pointerCast()

template<class From , class To , class convertType >
To * ds3d::pointerCast ( From *  a)

Definition at line 75 of file obj.hpp.

◆ PtrToAbiRef()

template<class From , class To = From>
SharedRefObj<To>* ds3d::PtrToAbiRef ( ShrdPtr< From > &&  p)
inline

Definition at line 164 of file obj.hpp.

◆ readFile()

bool ds3d::readFile ( const std::string &  path,
std::string &  context 
)
inline

Definition at line 200 of file func_utils.h.

References DS3D_FAILED_RETURN.

◆ ShapeSize()

size_t ds3d::ShapeSize ( const Shape shape)
inline

◆ throwError()

void ds3d::throwError ( ErrCode  code,
const std::string &  msg 
)
inline

Definition at line 77 of file func_utils.h.

References isGood().

Referenced by ds3d::impl::Frame2DBaseImpl< DataTypeTP, ft >::getPlane().

Variable Documentation

◆ kCamIntrinsicMat

constexpr const char* ds3d::kCamIntrinsicMat = DS3D_KEY_NAME("CameraIntrinsicMatrix")
staticconstexpr

Definition at line 113 of file common.h.

◆ kCamIntrinsicParm

constexpr const char* ds3d::kCamIntrinsicParm = DS3D_KEY_NAME("CameraIntrinsicParm")
staticconstexpr

Definition at line 112 of file common.h.

◆ kColorDepthAligned

constexpr const char* ds3d::kColorDepthAligned = DS3D_KEY_NAME("ColorDepthAligned")
staticconstexpr

Definition at line 86 of file common.h.

◆ kColorFrame

constexpr const char* ds3d::kColorFrame = DS3D_KEY_NAME("ColorFrame")
staticconstexpr

Definition at line 74 of file common.h.

◆ kColorIntrinsics

constexpr const char* ds3d::kColorIntrinsics = DS3D_KEY_NAME("ColorIntrinsics")
staticconstexpr

Definition at line 82 of file common.h.

◆ kDataProcessUserDataMagic

constexpr uint32_t ds3d::kDataProcessUserDataMagic = NVDS3D_MAGIC_ID('D', '3', 'U', 'D')
constexpr

Definition at line 34 of file nvds3d_gst_plugin.h.

◆ kDefaultDs3dCaps

constexpr const char* ds3d::kDefaultDs3dCaps = "ds3d/datamap"
staticconstexpr

Definition at line 136 of file common.h.

◆ kDepth2ColorExtrinsics

constexpr const char* ds3d::kDepth2ColorExtrinsics = DS3D_KEY_NAME("Depth2ColorExtrinsics")
staticconstexpr

Definition at line 84 of file common.h.

◆ kDepthFrame

constexpr const char* ds3d::kDepthFrame = DS3D_KEY_NAME("DepthFrame")
staticconstexpr

Definition at line 76 of file common.h.

◆ kDepthIntrinsics

constexpr const char* ds3d::kDepthIntrinsics = DS3D_KEY_NAME("DepthIntrinsics")
staticconstexpr

Definition at line 80 of file common.h.

◆ kDepthScaleUnit

constexpr const char* ds3d::kDepthScaleUnit = DS3D_KEY_NAME("DepthScaleUnit")
staticconstexpr

Definition at line 78 of file common.h.

◆ kDs3dInferenceParas

constexpr const char* ds3d::kDs3dInferenceParas = DS3D_KEY_NAME("DS3DInferneceParasKey")
staticconstexpr

Definition at line 105 of file common.h.

◆ kEOS

constexpr const char* ds3d::kEOS = DS3D_KEY_NAME("EndOfStream")
staticconstexpr

Definition at line 94 of file common.h.

◆ kFirstSourceFrame

constexpr const char* ds3d::kFirstSourceFrame = DS3D_KEY_NAME("FirstSourceFrame")
staticconstexpr

Definition at line 125 of file common.h.

◆ kFusedDetectionKey

constexpr const char* ds3d::kFusedDetectionKey = DS3D_KEY_NAME("FusedDetectionKey")
staticconstexpr

get array of FusedDetection from FrameGuard [N, sizeof(FusedDetection)]

Definition at line 133 of file common.h.

◆ kGstBuffer

constexpr const char* ds3d::kGstBuffer = DS3D_KEY_NAME("GstBuffer")
staticconstexpr

Definition at line 119 of file common.h.

◆ kLidar3DBboxRawData

constexpr const char* ds3d::kLidar3DBboxRawData = DS3D_KEY_NAME("Lidar3DBboxRawData")
staticconstexpr

get array of Lidar3DBbox from FrameGuard [N, sizeof(Lidar3DBbox)]

Definition at line 109 of file common.h.

◆ kLidarAlignedXYZI

constexpr const char* ds3d::kLidarAlignedXYZI = DS3D_KEY_NAME("LidarAlignedXYZIKey")
staticconstexpr

Definition at line 111 of file common.h.

◆ kLidarInferenceParas

constexpr const char* ds3d::kLidarInferenceParas = DS3D_KEY_NAME("LidarInferenceParas")
staticconstexpr

Definition at line 103 of file common.h.

◆ kLidarRefDataMap

constexpr const char* ds3d::kLidarRefDataMap = DS3D_KEY_NAME("LidarRefDataMap")
staticconstexpr

Definition at line 107 of file common.h.

◆ kLidarToCamExtrinsicMat

constexpr const char* ds3d::kLidarToCamExtrinsicMat = DS3D_KEY_NAME("LidarToCameraExtrinsicMatrix")
staticconstexpr

Definition at line 114 of file common.h.

◆ kLidarXYZI

constexpr const char* ds3d::kLidarXYZI = DS3D_KEY_NAME("LidarXYZI")
staticconstexpr

Definition at line 100 of file common.h.

◆ kMaxShapeDims

constexpr const size_t ds3d::kMaxShapeDims = 8
constexpr

Definition at line 115 of file idatatype.h.

◆ kNvBufSurface

constexpr const char* ds3d::kNvBufSurface = DS3D_KEY_NAME("NvBufSurface")
staticconstexpr

Definition at line 121 of file common.h.

◆ kNvDsBatchMeta

constexpr const char* ds3d::kNvDsBatchMeta = DS3D_KEY_NAME("NvDsBatchMeta")
staticconstexpr

Definition at line 123 of file common.h.

◆ kObject2DBboxKey

constexpr const char* ds3d::kObject2DBboxKey = DS3D_KEY_NAME("Object2DBboxKey")
staticconstexpr

get array of Object2DBbox from FrameGuard [N, sizeof(Object2DBbox)]

Definition at line 130 of file common.h.

◆ kPointCoordUV

constexpr const char* ds3d::kPointCoordUV = DS3D_KEY_NAME("PointColorCoord")
staticconstexpr

Definition at line 98 of file common.h.

◆ kPointXYZ

constexpr const char* ds3d::kPointXYZ = DS3D_KEY_NAME("PointXYZ")
staticconstexpr

Definition at line 96 of file common.h.

◆ kSourceId

constexpr const char* ds3d::kSourceId = DS3D_KEY_NAME("SourceId")
staticconstexpr

Definition at line 127 of file common.h.

◆ kTextureCoordinateKey

constexpr const char* ds3d::kTextureCoordinateKey = DS3D_KEY_NAME("TextureCoordKey")
staticconstexpr

Definition at line 91 of file common.h.

◆ kTextureVertexKey

constexpr const char* ds3d::kTextureVertexKey = DS3D_KEY_NAME("TextureVertexKey")
staticconstexpr

Definition at line 89 of file common.h.

◆ kTimeStamp

constexpr const char* ds3d::kTimeStamp = DS3D_KEY_NAME("Timestamp")
staticconstexpr

Definition at line 72 of file common.h.

◆ kVideoBridge2dData

constexpr const char* ds3d::kVideoBridge2dData = DS3D_KEY_NAME("VideoBridge2dInput")
staticconstexpr

Definition at line 117 of file common.h.