blob: 445601d95f90ff796611aacda3d3ef0f48afdbe4 [file] [log] [blame]
Pierre Ossman9f273e92015-11-09 16:34:54 +01001/* Copyright 2015 Pierre Ossman for Cendio AB
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18
19#ifndef __RFB_DECODEMANAGER_H__
20#define __RFB_DECODEMANAGER_H__
21
22#include <rfb/encodings.h>
23
24namespace rfb {
25 class CConnection;
26 class Decoder;
27 class ModifiablePixelBuffer;
28 class Rect;
29
30 class DecodeManager {
31 public:
32 DecodeManager(CConnection *conn);
33 ~DecodeManager();
34
35 void decodeRect(const Rect& r, int encoding,
36 ModifiablePixelBuffer* pb);
37
38 private:
39 CConnection *conn;
40 Decoder *decoders[encodingMax+1];
41 };
42}
43
44#endif