|
NVIDIA DeepStream SDK API Reference
|
8.0 Release
|
Go to the documentation of this file.
26 #ifndef NVIDIA_DEEPSTREAM_BUFFER_PROBE
27 #define NVIDIA_DEEPSTREAM_BUFFER_PROBE
147 static unsigned long type();
178 interface = dynamic_cast<T*>(ptr);
179 return interface != nullptr;
@ Probe_Ok
Nothing abnormal, the buffer will be treated as usual.
Read/write interface for handling buffer.
virtual ~IBufferHandler()
std::unique_ptr< IHandler > metadata_handler_
Buffer probe takes the ownership of the handler instance assigned to it during construction.
Pad is an abstraction of the I/O with an Element,.
const Pad & getPad()
Return the pad from which the probe takes buffers.
Base class for all the custom objects.
Derived interface for handling buffer itself.
Element class definition.
Represent a custom object for the purpose of probing output buffers.
BufferProbe & attach(Element *target, Pad pad)
Attach the BufferProbe instance to an Element instance.
Root interface required by a BufferProbe instance.
Element * target_
weak reference to the target element to which it is attached,
virtual ~BufferProbe()
Destructor.
probeReturn
Return values from user implemented probe interfaces.
virtual probeReturn handleBuffer(BufferProbe &probe, Buffer &)=0
Readonly interface for handling buffer.
Element * getTarget()
Return the pointer to the element where the probe is attached.
static unsigned long type()
Get the unique id associated with this type of BufferProbe.
Pad pad_
the Pad from which the probe takes buffers,
BufferProbe(const std::string &name, IHandler *handler)
Constructor.
@ Probe_Drop
Something wrong, indicating the pipeline to drop the buffer.
virtual probeReturn handleBuffer(BufferProbe &probe, const Buffer &)=0
bool query(T *&interface) const
Template class to query the type of the handler inteface.