TNG version 1.7.3
[alexxy/gromacs.git] / src / external / tng_io / include / compression / mtf.h
1 /* This code is part of the tng compression routines.
2  *
3  * Written by Daniel Spangberg
4  * Copyright (c) 2010, 2013, The GROMACS development team.
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the Revised BSD License.
9  */
10
11
12 #ifndef MTF_H
13 #define MTF_H
14
15 void Ptngc_comp_conv_to_mtf(unsigned int *vals, const int nvals,
16                       unsigned int *dict, const int ndict,
17                       unsigned int *valsmtf);
18
19 void Ptngc_comp_conv_from_mtf(unsigned int *valsmtf, const int nvals,
20                         unsigned int *dict, const int ndict,
21                         unsigned int *vals);
22
23 void Ptngc_comp_conv_to_mtf_partial(unsigned int *vals, const int nvals,
24                               unsigned int *valsmtf);
25
26 void Ptngc_comp_conv_from_mtf_partial(unsigned int *valsmtf, const int nvals,
27                                 unsigned int *vals);
28
29 void Ptngc_comp_conv_to_mtf_partial3(unsigned int *vals, const int nvals,
30                                unsigned char *valsmtf);
31
32 void Ptngc_comp_conv_from_mtf_partial3(unsigned char *valsmtf, const int nvals,
33                                  unsigned int *vals);
34
35 #endif