Add TNG writing and reading support
[alexxy/gromacs.git] / src / external / tng_io / include / compression / huffman.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 HUFFMAN_H
13 #define HUFFMAN_H
14
15 void Ptngc_comp_conv_to_huffman(unsigned int *vals, int nvals,
16                           unsigned int *dict, int ndict,
17                           unsigned int *prob,
18                           unsigned char *huffman,
19                           int *huffman_len,
20                           unsigned char *huffman_dict,
21                           int *huffman_dictlen,
22                           unsigned int *huffman_dict_unpacked,
23                           int *huffman_dict_unpackedlen);
24
25 void Ptngc_comp_conv_from_huffman(unsigned char *huffman,
26                             unsigned int *vals, int nvals,
27                             int ndict,
28                             unsigned char *huffman_dict,
29                             int huffman_dictlen,
30                             unsigned int *huffman_dict_unpacked,
31                             int huffman_dict_unpackedlen);
32
33 #endif