Port filter graphs to new FFmpeg API.
[dcpomatic.git] / src / lib / video_filter_graph.h
index 19cb24e363c4b34c540fa6b8df5dcc2129bcf633..d887e551bda8e586b5bcedd67137048b0ca6a019 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 */
 
+
 #include "filter_graph.h"
 
+
 class VideoFilterGraph : public FilterGraph
 {
 public:
        VideoFilterGraph (dcp::Size s, AVPixelFormat p, dcp::Fraction r);
 
        bool can_process (dcp::Size s, AVPixelFormat p) const;
-       std::list<std::pair<boost::shared_ptr<Image>, int64_t> > process (AVFrame * frame);
+       std::list<std::pair<std::shared_ptr<Image>, int64_t>> process (AVFrame * frame);
 
 protected:
-       std::string src_parameters () const;
-       std::string src_name () const;
-       void* sink_parameters () const;
-       std::string sink_name () const;
+       std::string src_parameters () const override;
+       std::string src_name () const override;
+       void set_parameters (AVFilterContext* context) const override;
+       std::string sink_name () const override;
 
 private:
        dcp::Size _size; ///< size of the images that this chain can process