5f1a75ef9db4c192901d1af89d2e5a3e3eb82333
[dcpomatic.git] / src / lib / matcher.h
1 #include <boost/optional.hpp>
2 #include "processor.h"
3
4 class Matcher : public AudioVideoProcessor
5 {
6 public:
7         Matcher (Log* log, int sample_rate, float frames_per_second);
8         void process_video (boost::shared_ptr<Image> i, boost::shared_ptr<Subtitle> s);
9         void process_audio (boost::shared_ptr<AudioBuffers>);
10         void process_end ();
11
12 private:
13         int _sample_rate;
14         float _frames_per_second;
15         int _video_frames;
16         int64_t _audio_frames;
17         boost::optional<AVPixelFormat> _pixel_format;
18         boost::optional<Size> _size;
19         boost::optional<int> _channels;
20 };