summaryrefslogtreecommitdiffstats
blob: fdec6b312b3ac7cb5d64f9d0af762f1c5f3301ab (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
27
/*
 * 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, int pictureID) = 0;

		public:
			boost::signal<void (int pictureID, bool success)> onNewFrameDecoded;
			boost::signal<void (const Image&)> onNewImageAvailable;
	};
}