TNG version 1.7.3
[gromacs.git] / src / external / tng_io / include / compression / huffman.h
blobf2ce1875b6af33dec84de286ba226684a94c1793
1 /* This code is part of the tng compression routines.
3 * Written by Daniel Spangberg
4 * Copyright (c) 2010, 2013, The GROMACS development team.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the Revised BSD License.
9 */
12 #ifndef HUFFMAN_H
13 #define HUFFMAN_H
15 void Ptngc_comp_conv_to_huffman(unsigned int *vals, const int nvals,
16 unsigned int *dict, const 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);
25 void Ptngc_comp_conv_from_huffman(unsigned char *huffman,
26 unsigned int *vals, const int nvals,
27 const int ndict,
28 unsigned char *huffman_dict,
29 const int huffman_dictlen,
30 unsigned int *huffman_dict_unpacked,
31 const int huffman_dict_unpackedlen);
33 #endif