|
|
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
58 class BufferProbe :
public CustomObject {
71 class IMetadataHandler :
public IHandler {
79 class IBufferHandler :
public IHandler {
87 class IBufferObserver :
public IBufferHandler {
95 class IBufferOperator :
public IBufferHandler {
103 class IBatchMetadataObserver :
public IMetadataHandler {
111 class IBatchMetadataOperator :
public IMetadataHandler {
124 BufferProbe(
const std::string& name, IHandler* handler);
134 BufferProbe(
const std::string& name,
const char* factory, IHandler* handler);
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.
virtual ~IBufferHandler()
Pad is an abstraction of the I/O with an Element,.
const Pad & getPad()
Return the pad from which the probe takes buffers.
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.
virtual ~BufferProbe()
Destructor.
probeReturn
Return values from user implemented probe interfaces.
virtual probeReturn handleBuffer(BufferProbe &probe, Buffer &)=0
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
std::unique_ptr< IHandler > metadata_handler_
Buffer probe takes the ownership of the handler instance assigned to it during construction.
Element * target_
weak reference to the target element to which it is attached,
bool query(T *&interface) const
Template class to query the type of the handler inteface.