Represent a custom object for the purpose of probing output buffers.
Appropriate interface must be implemented and assigned to an BufferProbe instance for it to work.
BufferProbe instances are not copyable/movable.
Definition at line 58 of file buffer_probe.hpp.
Data Structures | |
class | IBatchMetadataObserver |
Readonly interface for handling batch metadata. More... | |
class | IBatchMetadataOperator |
Read/write interface for handling batch metadata. More... | |
class | IBufferHandler |
Derived interface for handling buffer itself. More... | |
class | IBufferObserver |
Readonly interface for handling buffer. More... | |
class | IBufferOperator |
Read/write interface for handling buffer. More... | |
class | IHandler |
Root interface required by a BufferProbe instance. More... | |
class | IMetadataHandler |
Derived interface for handling metadata. More... | |
Public Member Functions | |
BufferProbe (const std::string &name, IHandler *handler) | |
Constructor. More... | |
BufferProbe (const std::string &name, const char *factory, IHandler *handler) | |
Constructor for factory. More... | |
virtual | ~BufferProbe () |
Destructor. More... | |
BufferProbe & | attach (Element *target, Pad pad) |
Attach the BufferProbe instance to an Element instance. More... | |
Element * | getTarget () |
Return the pointer to the element where the probe is attached. More... | |
const Pad & | getPad () |
Return the pad from which the probe takes buffers. More... | |
template<typename T > | |
bool | query (T *&interface) const |
Template class to query the type of the handler inteface. More... | |
const std::string | getName () const |
Return the name assigned during the construction. More... | |
operator bool () const noexcept | |
Check if the object is void. More... | |
bool | operator== (const Object &other) noexcept |
Check if the two objects are the same. More... | |
GstObject * | give () |
Give up the ownership and return the opaque pointer. More... | |
GstObject * | getGObject () |
Return the opaque object pointer. More... | |
Object & | take (GstObject *object) |
Takes the ownership of a object through the opaque pointer. More... | |
Object & | seize (GstObject *object) |
Seize a opaque object to prevent it from being destroyed somewhere. More... | |
Object & | set (const YAML::Node ¶ms) |
Set the properties from key/value pairs in the yaml format. More... | |
Object & | set (const std::string &name, const Value &value) |
template<typename T , typename... Args> | |
Object & | set (const std::string &name, const T &value, const Args &... args) |
template<typename T , typename... Args> | |
Object & | getProperty (const std::string &name, T &value, Args &... args) |
Template for getting multiple properties. More... | |
std::vector< std::string > | listSignals (bool is_action) |
List all the supported signals from the object. More... | |
bool | connectSignal (const std::string &signal_name, SignalHandler &handler) |
Connect a signal handler to the object. More... | |
void | emitSignal (const std::string &signal_name, va_list args) |
Emit a signal. More... | |
Static Public Member Functions | |
static unsigned long | type () |
Get the unique id associated with this type of BufferProbe. More... | |
Protected Member Functions | |
virtual void | set_ (const std::string &name, const Value &value) |
virtual void | set_ (const std::string &name, const YAML::Node &value) |
virtual Value | get_ (const std::string &name) |
Protected Attributes | |
std::unique_ptr< IHandler > | metadata_handler_ |
Buffer probe takes the ownership of the handler instance assigned to it during construction. More... | |
Pad | pad_ |
the Pad from which the probe takes buffers, More... | |
Element * | target_ |
weak reference to the target element to which it is attached, More... | |
std::string | param_spec_ |
property spec in YAML format More... | |
std::map< std::string, Object::Value > | properties_ |
property map More... | |
GstObject * | object_ |
deepstream::BufferProbe::BufferProbe | ( | const std::string & | name, |
IHandler * | handler | ||
) |
Constructor.
Create a BufferProbe instance with user implemented handler interface
[in] | name | name of the instance |
[in] | handler | implementation of the IHandler interface |
deepstream::BufferProbe::BufferProbe | ( | const std::string & | name, |
const char * | factory, | ||
IHandler * | handler | ||
) |
Constructor for factory.
Create a BufferProbe instance with user implemented handler interface
[in] | name | name of the instance |
[in] | handler | implementation of the IHandler interface |
|
virtual |
Destructor.
BufferProbe& deepstream::BufferProbe::attach | ( | Element * | target, |
Pad | pad | ||
) |
Attach the BufferProbe instance to an Element instance.
The probe must be attached to the output.
[in] | target | pointer to the Element instance |
[in] | pad | target pad from which the probe takes buffers |
|
inherited |
Connect a signal handler to the object.
[in] | signal_name | name of the signal to be connected |
[in] | handler | handler for the signal |
|
inherited |
Emit a signal.
|
protectedvirtualinherited |
Reimplemented from deepstream::Object.
|
inlineinherited |
Return the opaque object pointer.
Definition at line 140 of file object.hpp.
References deepstream::Object::object_.
|
inherited |
Return the name assigned during the construction.
|
inline |
Return the pad from which the probe takes buffers.
Definition at line 169 of file buffer_probe.hpp.
References pad_.
|
inlineinherited |
Template for getting multiple properties.
Definition at line 171 of file object.hpp.
References deepstream::Object::get_().
Referenced by deepstream::CountMarker::handleData(), deepstream::TensorMetaParser::handleData(), deepstream::MsgMetaGenerator::handleData(), deepstream::NvDsKittiDump::handleData(), deepstream::LiDARDataSource::initialize(), deepstream::SmartRecordingAction::onAttached(), and deepstream::FileDataSource::read().
|
inline |
Return the pointer to the element where the probe is attached.
Definition at line 163 of file buffer_probe.hpp.
References target_.
|
inherited |
Give up the ownership and return the opaque pointer.
|
inherited |
List all the supported signals from the object.
|
inlineexplicitnoexceptinherited |
Check if the object is void.
Definition at line 131 of file object.hpp.
References deepstream::Object::object_.
|
inlinenoexceptinherited |
Check if the two objects are the same.
Definition at line 134 of file object.hpp.
References deepstream::Object::object_.
|
inline |
Template class to query the type of the handler inteface.
Definition at line 176 of file buffer_probe.hpp.
References metadata_handler_.
Seize a opaque object to prevent it from being destroyed somewhere.
|
inlineinherited |
Definition at line 161 of file object.hpp.
References deepstream::Object::set(), and deepstream::Object::set_().
Definition at line 154 of file object.hpp.
References deepstream::Object::set_().
|
inherited |
Set the properties from key/value pairs in the yaml format.
Referenced by deepstream::Pipeline::add(), and deepstream::Object::set().
|
protectedvirtualinherited |
Reimplemented from deepstream::Object.
|
protectedvirtualinherited |
Reimplemented from deepstream::Object.
Takes the ownership of a object through the opaque pointer.
|
static |
Get the unique id associated with this type of BufferProbe.
An unique number is assigned for each BufferProbe class defined within a custom plugin.
|
protected |
Buffer probe takes the ownership of the handler instance assigned to it during construction.
Definition at line 187 of file buffer_probe.hpp.
Referenced by query().
|
protectedinherited |
Definition at line 198 of file object.hpp.
Referenced by deepstream::Object::getGObject(), deepstream::Object::operator bool(), and deepstream::Object::operator==().
|
protected |
the Pad from which the probe takes buffers,
Definition at line 189 of file buffer_probe.hpp.
Referenced by getPad().
|
protectedinherited |
property spec in YAML format
Definition at line 51 of file custom_object.hpp.
|
protectedinherited |
property map
Definition at line 53 of file custom_object.hpp.
|
protected |
weak reference to the target element to which it is attached,
Definition at line 194 of file buffer_probe.hpp.
Referenced by getTarget().