~ubuntu-branches/ubuntu/lucid/kmess/lucid

« back to all changes in this revision

Viewing changes to contrib/isf-qt/src/data/algorithms/huffman.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2009-12-05 21:19:26 UTC
  • mfrom: (1.1.7 upstream) (0.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20091205211926-r26u8j38kysf6o2p
Tags: 2.0.2-1
* New upstream release 
  - Fixes friendly names (LP: #485640)
* Update Homepage: http://kmess.org
* Add Build-Depends: libphonon-dev | libqt4-phonon-dev (ubuntu friendly)
* kmess.1 fix lintian:hyphen-used-as-minus-sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2008 by Valerio Pilo                                    *
 
3
 *   valerio@kmess.org                                                     *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU Lesser General Public License as        *
 
7
 *   published by the Free Software Foundation; either version 2.1 of the  *
 
8
 *   License, or (at your option) any later version.                       *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU Lesser General Public      *
 
16
 *   License along with this program; if not, write to the                 *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef ISFCOMPRESSION_HUFFMAN_H
 
22
#define ISFCOMPRESSION_HUFFMAN_H
 
23
 
 
24
#include "../datasource.h"
 
25
 
 
26
 
 
27
 
 
28
namespace Isf
 
29
{
 
30
  namespace Compress
 
31
  {
 
32
    namespace HuffmanAlgorithm
 
33
    {
 
34
 
 
35
      bool   deflate( QByteArray &encodedData, quint8 index, const QList<qint64> &source );
 
36
      bool   inflate( DataSource &source, quint64 length, quint8 index, QList<qint64> &decodedData );
 
37
      quint8 index( const QList<qint64> &data );
 
38
 
 
39
      // Internal use methods
 
40
 
 
41
      bool   deflateValue( DataSource &output, quint8 index, qint64 value );
 
42
 
 
43
    }
 
44
  }
 
45
}
 
46
 
 
47
 
 
48
 
 
49
#endif