X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.h;h=9ee628d4cd097fa9b2bae97e08ac793986be4261;hb=ccacce39c39d16977ab6c1592fcb6e941b05ddff;hp=eccfe4954ea1442e421f863f5a5462638c3c1325;hpb=6f792158e88d9426a0eafc7f1724a33ddbd453e5;p=dcpomatic.git diff --git a/src/lib/filter_graph.h b/src/lib/filter_graph.h index eccfe4954..9ee628d4c 100644 --- a/src/lib/filter_graph.h +++ b/src/lib/filter_graph.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2015 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,30 +18,38 @@ */ + /** @file src/lib/filter_graph.h * @brief A graph of FFmpeg filters. */ + #ifndef DCPOMATIC_FILTER_GRAPH_H #define DCPOMATIC_FILTER_GRAPH_H + #include "util.h" +#include "warnings.h" +DCPOMATIC_DISABLE_WARNINGS extern "C" { #include } +DCPOMATIC_ENABLE_WARNINGS + struct AVFilterContext; struct AVFrame; class Image; class Filter; + /** @class FilterGraph * @brief A graph of FFmpeg filters. */ class FilterGraph { public: - FilterGraph (); + FilterGraph() = default; virtual ~FilterGraph (); FilterGraph (FilterGraph const&) = delete; @@ -56,12 +64,13 @@ protected: virtual void set_parameters (AVFilterContext* context) const = 0; virtual std::string sink_name () const = 0; - AVFilterGraph* _graph; + AVFilterGraph* _graph = nullptr; /** true if this graph has no filters in, so it just copies stuff straight through */ - bool _copy; - AVFilterContext* _buffer_src_context; - AVFilterContext* _buffer_sink_context; - AVFrame* _frame; + bool _copy = false; + AVFilterContext* _buffer_src_context = nullptr; + AVFilterContext* _buffer_sink_context = nullptr; + AVFrame* _frame = nullptr; }; + #endif