This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
prpa/src/pipeline.cc

24 lines
586 B
C++

#include "tbb/pipeline.h"
#include "pipeline.hh"
bool Pipeline::add_filter(std::string filter)
{
return true;
}
void Pipeline::run()
{
int minframe = this->input_.front().framecount_get();
for (auto it = this->input_.begin(); it != this->input_.end(); ++it)
if (minframe > it->framecount_get())
minframe = it->framecount_get();
for (auto it = this->input_.begin(); it != this->input_.end(); ++it)
it->maxframe_set(minframe);
this->pipeline_.add_filter(this->input_.front());
this->pipeline_.add_filter(this->output_);
this->pipeline_.run(CHUNK_SIZE);
}