Signal/Geometry Processing Library (SPL)  2.0.4
demo/arithCoder.hpp
1 // Copyright (c) 2013 Michael D. Adams
2 // All rights reserved.
3 
4 // __START_OF_LICENSE__
5 //
6 // Copyright (c) 2015 Michael D. Adams
7 // All rights reserved.
8 //
9 // This file is part of the Signal Processing Library (SPL).
10 //
11 // This program is free software; you can redistribute it and/or
12 // modify it under the terms of the GNU General Public License as
13 // published by the Free Software Foundation; either version 3,
14 // or (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public
22 // License along with this program; see the file LICENSE. If not,
23 // see <http://www.gnu.org/licenses/>.
24 //
25 // __END_OF_LICENSE__
26 
27 #define ARITHCODER_METHOD_MULTI 0
28 #define ARITHCODER_METHOD_BIN 1
29 #define ARITHCODER_METHOD_M 2
30 
31 //#define ARITHCODER_METHOD ARITHCODER_METHOD_MULTI
32 #define ARITHCODER_METHOD ARITHCODER_METHOD_BIN
33 //#define ARITHCODER_METHOD ARITHCODER_METHOD_M
34 
35 //#define ARITHCODER_DEBUG
36 #undef ARITHCODER_DEBUG