#ifndef PIPELINE_HH_ # define PIPELINE_HH_ # include # include # include # include "opencv2/opencv.hpp" # include "tbb/pipeline.h" # include "encoder/video.hh" # include "encoder/video_reader.hh" # include "encoder/video_writer.hh" # define CHUNK_SIZE 16 class Pipeline { public: Pipeline(std::list input, VideoWriter output); bool add_filter(std::string filter, std::vector args); void run(); private: std::list> filters_; std::list input_; std::list::const_iterator input_it_; VideoWriter output_; tbb::pipeline pipeline_; }; #endif /* !PIPELINE_HH_ */