Use plain git hash for VERSION when there is no exact tag.
[dcpomatic.git] / src / lib / filter_graph.h
index 4019b5863249e6d6b5ee9b1ea864021f025920bc..e474f851f47af56ffe6096b583a937202d82ad86 100644 (file)
 #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
@@ -55,7 +57,7 @@ public:
        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:
@@ -66,7 +68,7 @@ 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;