summaryrefslogtreecommitdiff
path: root/src/lib/matcher.h
blob: 5f1a75ef9db4c192901d1af89d2e5a3e3eb82333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <boost/optional.hpp>
#include "processor.h"

class Matcher : public AudioVideoProcessor
{
public:
	Matcher (Log* log, int sample_rate, float frames_per_second);
	void process_video (boost::shared_ptr<Image> i, boost::shared_ptr<Subtitle> s);
	void process_audio (boost::shared_ptr<AudioBuffers>);
	void process_end ();

private:
	int _sample_rate;
	float _frames_per_second;
	int _video_frames;
	int64_t _audio_frames;
	boost::optional<AVPixelFormat> _pixel_format;
	boost::optional<Size> _size;
	boost::optional<int> _channels;
};