1
// Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
2
// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
4
// This file is part of the VNC system.
6
// The VNC system is free software; you can redistribute it and/or modify
7
// it under the terms of the GNU General Public License as published by
8
// the Free Software Foundation; either version 2 of the License, or
9
// (at your option) any later version.
11
// This program is distributed in the hope that it will be useful,
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
// GNU General Public License for more details.
16
// You should have received a copy of the GNU General Public License
17
// along with this program; if not, write to the Free Software
18
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
23
// If the source code for the VNC system is not available from the place
24
// whence you received this file, check http://www.uk.research.att.com/vnc or contact
25
// the authors on vnc@uk.research.att.com for information on obtaining it.
28
// vncEncodeHexT object
30
// The vncEncodeHexT object uses a compression encoding to send rectangles
35
#if !defined(_WINVNC_ENCODEHEXTILE)
36
#define _WINVNC_ENCODEHEXTILE
39
#include "vncEncoder.h"
43
class vncEncodeHexT : public vncEncoder
50
// Create/Destroy methods
55
virtual const char* GetEncodingName() { return "Hextile"; }
57
virtual UINT RequiredBuffSize(UINT width, UINT height);
58
virtual UINT NumCodedRects(RECT &rect);
60
virtual UINT EncodeRect(BYTE *source, BYTE *dest, const RECT &rect, int offsetx, int offsety);
63
virtual UINT EncodeHextiles8(BYTE *source, BYTE *dest,
64
int x, int y, int w, int h);
65
virtual UINT EncodeHextiles16(BYTE *source, BYTE *dest,
66
int x, int y, int w, int h);
67
virtual UINT EncodeHextiles32(BYTE *source, BYTE *dest,
68
int x, int y, int w, int h);
74
#endif // _WINVNC_ENCODEHEXTILE