|
NVIDIA DeepStream SDK API Reference
|
8.0 Release
|
Go to the documentation of this file.
18 #ifndef NVIDIA_DEEPSTREAM_DATA_FEEDER
19 #define NVIDIA_DEEPSTREAM_DATA_FEEDER
23 #include <condition_variable>
72 DataFeeder(
const std::string &name, IDataProvider* provider);
83 DataFeeder(
const std::string &name,
const char* factory, IDataProvider* provider);
89 void startFeed(
void* appsrc,
unsigned int size);
93 bool doFeed(
void* appsrc,
unsigned int size);
required interface for a data feeder
DataFeeder(const std::string &name, IDataProvider *provider)
Constructor.
A specific signal handler for feeding data.
bool doFeed(void *appsrc, unsigned int size)
Complete the feeding, called by the feeding thread.
virtual Buffer read(DataFeeder &feeder, unsigned int size, bool &eos)=0
Read a data block.
std::unique_ptr< IDataProvider > data_provider_
void startFeed(void *appsrc, unsigned int size)
Start feeding, called by the pipeline.
virtual ~DataFeeder()
Destructor.
std::condition_variable cv_data_
void stopFeed()
Stop feeding, called by the pipeline.