#define DCPOMATIC_FILTER_GRAPH_H
-#include "util.h"
+#include "filter.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
extern "C" {
#include <libavfilter/buffersink.h>
}
LIBDCP_ENABLE_WARNINGS
+#include <string>
+#include <vector>
+class Filter;
+class Image;
struct AVFilterContext;
struct AVFrame;
-class Image;
-class Filter;
/** @class FilterGraph
FilterGraph (FilterGraph const&) = delete;
FilterGraph& operator== (FilterGraph const&) = delete;
- void setup (std::vector<Filter const *>);
+ void setup(std::vector<Filter> const&);
AVFilterContext* get (std::string name);
protected:
AVFilterGraph* _graph = nullptr;
/** true if this graph has no filters in, so it just copies stuff straight through */
- bool _copy = false;
+ bool _copy = true;
AVFilterContext* _buffer_src_context = nullptr;
AVFilterContext* _buffer_sink_context = nullptr;
AVFrame* _frame = nullptr;