Namespaces | |
app | |
config | |
gst | |
impl | |
lidarinfer | |
profiling | |
Typedefs | |
using | LockMutex = std::unique_lock< std::mutex > |
typedef abiRefT< void > | abiRefAny |
typedef abiRefT< abiDataMap > | abiRefDataMap |
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< abiFrame > | abiRefFrame |
typedef abiRefT< abi2DFrame > | abiRef2DFrame |
typedef abiRefT< abiDataLoader > | abiRefDataLoader |
typedef abiRefT< abiDataFilter > | abiRefDataFilter |
typedef abiRefT< abiDataBridge > | abiRefDataBridge |
typedef abiRefT< abiDataRender > | abiRefDataRender |
typedef abiRefT< abiDataMixer > | abiRefDataMixer |
typedef abiRefT< abiWindow > | abiRefWindow |
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 > |
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 ¶m) |
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 * | kVideoPreProcTensor = DS3D_KEY_NAME("VideoPreprocessTensor") |
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 * | kLidarFeatureTensor = DS3D_KEY_NAME("LidarFeatureTensor") |
static constexpr const char * | kLidarCoordTensor = DS3D_KEY_NAME("LidarCoordTensor") |
static constexpr const char * | kLidarPointNumTensor = DS3D_KEY_NAME("LidarPointNumTensor") |
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" |
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> |
using ds3d::_EnableIfBaseOf = typedef std::enable_if_t<std::is_base_of<Base, Derived>::value, bool> |
using ds3d::_EnableIfConstructible = typedef typename std::enable_if<std::is_constructible<T, Args...>::value, bool>::type |
using ds3d::_EnableIfValidIdType = typedef typename std::enable_if_t<TpId<std::remove_cv_t<T> >::__typeid() >= 0, bool> |
using ds3d::_IsConstructible = typedef typename std::is_constructible<T, Args...>::value |
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> |
typedef abiCallBackT<ErrCode, const char*> ds3d::abiErrorCB |
typedef abiCallBackT<ErrCode, const struct VideoBridge2dInput*> ds3d::abiOnBridgeDataCB |
typedef abiCallBackT<ErrCode, const abiRefDataMap*> ds3d::abiOnDataCB |
typedef abiRefT<abi2DFrame> ds3d::abiRef2DFrame |
Definition at line 58 of file abi_frame.h.
typedef abiRefT<void> ds3d::abiRefAny |
typedef abiRefT<abiDataBridge> ds3d::abiRefDataBridge |
Definition at line 171 of file abi_dataprocess.h.
typedef abiRefT<abiDataFilter> ds3d::abiRefDataFilter |
Definition at line 168 of file abi_dataprocess.h.
typedef abiRefT<abiDataLoader> ds3d::abiRefDataLoader |
Definition at line 165 of file abi_dataprocess.h.
typedef abiRefT<abiDataMap> ds3d::abiRefDataMap |
typedef abiRefT<abiDataMixer> ds3d::abiRefDataMixer |
Definition at line 177 of file abi_dataprocess.h.
typedef abiRefT<abiDataRender> ds3d::abiRefDataRender |
Definition at line 174 of file abi_dataprocess.h.
typedef abiRefT<abiFrame> ds3d::abiRefFrame |
Definition at line 41 of file abi_frame.h.
typedef abiRefT<abiWindow> ds3d::abiRefWindow |
Definition at line 52 of file abi_window.h.
using ds3d::Frame2DGuard = typedef GuardDataT<abi2DFrame> |
using ds3d::FrameGuard = typedef GuardDataT<abiFrame> |
using ds3d::GuardWindow = typedef GuardDataT<abiWindow> |
Definition at line 23 of file datarender.hpp.
using ds3d::LockMutex = typedef std::unique_lock<std::mutex> |
Definition at line 25 of file func_utils.h.
using ds3d::RefDataMapObj = typedef SharedRefObj<abiRefDataMap> |
using ds3d::ShrdPtr = typedef std::shared_ptr<T> |
using ds3d::TIdType = typedef uint64_t |
using ds3d::UniqPtr = typedef std::unique_ptr<T, std::function<void(T*)> > |
using ds3d::vec1 = typedef __x<T> |
Definition at line 64 of file idatatype.h.
using ds3d::vec1b = typedef vec1<uint8_t> |
Definition at line 74 of file idatatype.h.
using ds3d::vec1f = typedef vec1<float> |
Definition at line 69 of file idatatype.h.
using ds3d::vec2 = typedef __xy<T> |
Definition at line 62 of file idatatype.h.
using ds3d::vec2b = typedef vec2<uint8_t> |
Definition at line 73 of file idatatype.h.
using ds3d::vec2f = typedef vec2<float> |
Definition at line 68 of file idatatype.h.
using ds3d::vec3 = typedef __xyz<T> |
Definition at line 60 of file idatatype.h.
using ds3d::vec3b = typedef vec3<uint8_t> |
Definition at line 72 of file idatatype.h.
using ds3d::vec3f = typedef vec3<float> |
Definition at line 67 of file idatatype.h.
using ds3d::vec4 = typedef __xyzw<T> |
Definition at line 58 of file idatatype.h.
using ds3d::vec4b = typedef vec4<uint8_t> |
Definition at line 71 of file idatatype.h.
using ds3d::vec4f = typedef vec4<float> |
Definition at line 66 of file idatatype.h.
|
strong |
Enumerator | |
---|---|
kInput | |
kOutput |
Definition at line 61 of file abi_dataprocess.h.
|
strong |
|
strong |
Enumerator | |
---|---|
kFp32 | |
kFp16 | |
kInt8 | |
kInt32 | |
kInt16 | |
kUint8 | |
kUint16 | |
kUint32 | |
kDouble | |
kInt64 |
Definition at line 77 of file idatatype.h.
|
strong |
|
strong |
Enumerator | |
---|---|
kUnknown | |
kDepth | |
kColorRGBA | |
kColorRGB | |
kPointXYZ | |
kPointCoordUV | |
kLidarXYZI | |
kCustom |
Definition at line 90 of file idatatype.h.
|
strong |
Enumerator | |
---|---|
kNone | |
kGpuCuda | |
kCpu | |
kCpuPinned |
Definition at line 101 of file idatatype.h.
|
strong |
Enumerator | |
---|---|
kPortAdded | |
kPortRemoved |
Definition at line 58 of file abi_dataprocess.h.
|
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.
|
inline |
Definition at line 171 of file obj.hpp.
References ds3d::abiRefT< T >::data(), DS_ASSERT, and ds3d::abiRefT< T >::refCopy().
Referenced by ds3d::GuardDataT< void >::operator ShrdPtr< void >().
void ds3d::array2Vec3 | ( | Data * | from, |
vec3< Data > & | to | ||
) |
Definition at line 222 of file func_utils.h.
References ds3d::__xyz< T >::data.
|
inline |
Definition at line 118 of file func_utils.h.
References DS_ASSERT, kColorRGB, kColorRGBA, kDepth, kLidarXYZI, kPointCoordUV, kPointXYZ, and LOG_ERROR.
|
inline |
Definition at line 87 of file func_utils.h.
References ds3d::Exception::code(), DS3D_CATCH_ANY, DS3D_CATCH_ERROR, DS3D_TRY, kGood, and kUnknown.
|
inline |
Definition at line 98 of file func_utils.h.
References ds3d::Exception::code(), DS3D_CATCH_ANY, DS3D_CATCH_ERROR, DS3D_TRY, kGood, and kUnknown.
|
inline |
Definition at line 108 of file func_utils.h.
Referenced by ds3d::GuardDataProcess< abiDataBridge >::getCaps(), ds3d::GuardDataLoader::getOutputCaps(), and ds3d::impl::BaseImplDataProcessor< abiDataBridge >::start_i().
|
inline |
Definition at line 142 of file func_utils.h.
References __DS3D_DATATYPE_BYTES, kDouble, nvdsinferserver::kFp16, nvdsinferserver::kFp32, nvdsinferserver::kInt16, nvdsinferserver::kInt32, nvdsinferserver::kInt64, nvdsinferserver::kInt8, nvdsinferserver::kUint16, nvdsinferserver::kUint32, and nvdsinferserver::kUint8.
T* ds3d::dlsym_ptr | ( | void * | handle, |
char const * | name | ||
) |
Definition at line 27 of file custom_lib_factory.h.
Referenced by ds3d::CustomLibFactory::CreateCtx().
|
inline |
Definition at line 52 of file func_utils.h.
References __DS3D_ERR_STR_DEF, kByPass, kConfig, kCuda, kGL, kGood, kGst, kIncompatible, kLoadLib, kLockWakeup, kMem, kNotFound, kNullPtr, kNvDsMeta, kOutOfRange, kParam, kRealSense, kState, kTimeOut, kTypeId, nvdsinferserver::kUnknown, and kUnsupported.
|
inline |
Definition at line 238 of file func_utils.h.
References ds3d::IntrinsicsParam::centerX, ds3d::IntrinsicsParam::centerY, ds3d::IntrinsicsParam::fx, and ds3d::IntrinsicsParam::fy.
|
inline |
Definition at line 40 of file func_utils.h.
References kCpu, and kCpuPinned.
|
inline |
Definition at line 28 of file func_utils.h.
References kGood.
Referenced by ds3d::GuardDataMap::getData(), ds3d::GuardDataMap::getPtrData(), ds3d::GuardDataMap::getRefData(), ds3d::GuardDataMap::setPtrData(), ds3d::GuardDataMap::setRefData(), ds3d::impl::BaseImplDataProcessor< abiDataBridge >::start_i(), ds3d::lidarinfer::DsLidarInferAppContext::stop(), ds3d::app::Ds3dAppContext::stop(), Ds3dAppContext::stop(), ds3d::gst::PipelineContext::stopPipeline(), and throwError().
|
inline |
Definition at line 46 of file func_utils.h.
References kGpuCuda.
|
inline |
Definition at line 230 of file func_utils.h.
|
inline |
Definition at line 34 of file func_utils.h.
References kGood.
abiRefT<Tp>* ds3d::NewAbiRef | ( | Tp * | rawAbiObj | ) |
|
inline |
Definition at line 214 of file func_utils.h.
Definition at line 194 of file func_utils.h.
Definition at line 180 of file func_utils.h.
References ds3d::Shape::d, and ds3d::Shape::numDims.
To * ds3d::pointerCast | ( | From * | a | ) |
|
inline |
|
inline |
Definition at line 200 of file func_utils.h.
References DS3D_FAILED_RETURN.
|
inline |
Definition at line 166 of file func_utils.h.
References ds3d::Shape::d, and ds3d::Shape::numDims.
Referenced by ds3d::impl::wrapLidarXYZIFrame(), ds3d::impl::wrapPointCoordUVFrame(), and ds3d::impl::wrapPointXYZFrame().
|
inline |
Definition at line 77 of file func_utils.h.
References isGood().
Referenced by ds3d::impl::Frame2DBaseImpl< DataTypeTP, ft >::getPlane().
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 34 of file nvds3d_gst_plugin.h.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
get array of FusedDetection from FrameGuard [N, sizeof(FusedDetection)]
|
staticconstexpr |
|
staticconstexpr |
get array of Lidar3DBbox from FrameGuard [N, sizeof(Lidar3DBbox)]
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 115 of file idatatype.h.
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
get array of Object2DBbox from FrameGuard [N, sizeof(Object2DBbox)]
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |