]> icculus.org git repositories - icculus/xz.git/blob - src/liblzma/lzma/lzma_encoder_features.c
Imported to git.
[icculus/xz.git] / src / liblzma / lzma / lzma_encoder_features.c
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       lzma_encoder_features.c
4 /// \brief      Information about features enabled at compile time
5 //
6 //  Copyright (C) 2007 Lasse Collin
7 //
8 //  This library is free software; you can redistribute it and/or
9 //  modify it under the terms of the GNU Lesser General Public
10 //  License as published by the Free Software Foundation; either
11 //  version 2.1 of the License, or (at your option) any later version.
12 //
13 //  This library is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 //  Lesser General Public License for more details.
17 //
18 ///////////////////////////////////////////////////////////////////////////////
19
20 #include "common.h"
21
22
23 static lzma_mode modes[] = {
24         LZMA_MODE_FAST,
25         LZMA_MODE_BEST,
26         LZMA_MODE_INVALID
27 };
28
29
30 LZMA_API const lzma_mode *const lzma_available_modes = modes;
31
32
33 static lzma_match_finder match_finders[] = {
34 #ifdef HAVE_MF_HC3
35         LZMA_MF_HC3,
36 #endif
37
38 #ifdef HAVE_MF_HC4
39         LZMA_MF_HC4,
40 #endif
41
42 #ifdef HAVE_MF_BT2
43         LZMA_MF_BT2,
44 #endif
45
46 #ifdef HAVE_MF_BT3
47         LZMA_MF_BT3,
48 #endif
49
50 #ifdef HAVE_MF_BT4
51         LZMA_MF_BT4,
52 #endif
53
54         LZMA_MF_INVALID
55 };
56
57
58 LZMA_API const lzma_match_finder *const lzma_available_match_finders
59                 = match_finders;