summaryrefslogtreecommitdiffstats
blob: 810d5ae199caa80ceeadf40d944f2ec8953d567e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (c) 2012 Yoann Blein
 * Licensed under the simplified BSD license.
 * See Documentation/Licenses/BSD-simplified.txt for more information.
 */

#pragma once

#include <Swiften/Base/boost_bsignals.h>
#include <boost/shared_ptr.hpp>
#include <stdint.h>

namespace Swift {
	class Image;

	class VideoDecoder {
		public:
			VideoDecoder() {}
			virtual ~VideoDecoder() {}

			virtual void decodeFrame(const std::vector<uint8_t>& frame) = 0;

		public:
			boost::signal<void (const Image&)> onNewImageDecoded;
	};
}