|
NVIDIA DeepStream SDK API Reference
|
7.1 Release
|
Go to the documentation of this file.
14 #ifndef DS3D_COMMON_HPP_DATA_PROCESS_HPP
15 #define DS3D_COMMON_HPP_DATA_PROCESS_HPP
28 template <
class abiDataProcessorT, _EnableIfBaseOf<abiProcess, abiDataProcessorT> = true>
34 template <
typename... Args >
43 template <
typename DelF>
48 ptr()->setUserData_i(
nullptr);
52 ptr()->setUserData_i(&uData);
59 return (udata ? udata->
data() :
nullptr);
66 guardErrCb.
setFn<
ErrCode,
const char*>(std::move(errCb));
67 ptr()->setErrorCallback_i(*guardErrCb.
abiRef());
70 ErrCode start(
const std::string& content,
const std::string& path =
"")
73 return ptr()->start_i(content.c_str(), content.size(), path.c_str());
79 return ptr()->flush_i();
85 return ptr()->stop_i();
91 return ptr()->state_i();
106 #endif // DS3D_COMMON_HPP_DATA_PROCESS_HPP
std::string getOutputCaps()
std::string getInputCaps()
virtual void * getUserData() const
GuardDataProcess(Args &&... args)
void setErrorCallback(abiErrorCB::CppFunc errCb)
~GuardDataProcess()=default
std::string getCaps(CapsPort port)
State
All custom-libs need create the abi reference for DataLoader, DataRender, and DataFilter.
abiDataProcessorT * ptr() const
void setUserData(void *data, DelF delF)
ErrCode start(const std::string &content, const std::string &path="")
std::string cppString(const char *str, size_t len=0)
virtual T * data() const =0
std::function< void(Args...)> CppFunc
GuardDataProcess()=default