X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.h;h=10298cb74297babfebcb03d0ddc377d77591d482;hp=4019b5863249e6d6b5ee9b1ea864021f025920bc;hb=HEAD;hpb=3c29aa6531a4046a8db72dcac81189eb8893233c diff --git a/src/lib/filter_graph.h b/src/lib/filter_graph.h index 4019b5863..e474f851f 100644 --- a/src/lib/filter_graph.h +++ b/src/lib/filter_graph.h @@ -28,19 +28,21 @@ #define DCPOMATIC_FILTER_GRAPH_H -#include "util.h" +#include "filter.h" #include LIBDCP_DISABLE_WARNINGS extern "C" { #include } LIBDCP_ENABLE_WARNINGS +#include +#include +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); + void setup(std::vector 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;