annotate ezBAMQC/src/htslib/cram/rANS_static.h @ 0:dfa3745e5fd8

Uploaded
author youngkim
date Thu, 24 Mar 2016 17:12:52 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
1 /*
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
2 * Copyright (c) 2014 Genome Research Ltd.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
3 * Author(s): James Bonfield
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
4 *
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
5 * Redistribution and use in source and binary forms, with or without
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
6 * modification, are permitted provided that the following conditions are met:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
7 *
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
8 * 1. Redistributions of source code must retain the above copyright notice,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
9 * this list of conditions and the following disclaimer.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
10 *
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
11 * 2. Redistributions in binary form must reproduce the above
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
12 * copyright notice, this list of conditions and the following
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
13 * disclaimer in the documentation and/or other materials provided
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
14 * with the distribution.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
15 *
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
16 * 3. Neither the names Genome Research Ltd and Wellcome Trust Sanger
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
17 * Institute nor the names of its contributors may be used to endorse
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
18 * or promote products derived from this software without specific
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
19 * prior written permission.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
20 *
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
21 * THIS SOFTWARE IS PROVIDED BY GENOME RESEARCH LTD AND CONTRIBUTORS "AS
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
22 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
23 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
24 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GENOME RESEARCH
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
25 * LTD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
32 */
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
33
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
34
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
35 #ifndef RANS_STATIC_H
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
36 #define RANS_STATIC_H
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
37
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
38 unsigned char *rans_compress(unsigned char *in, unsigned int in_size,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
39 unsigned int *out_size, int order);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
40 unsigned char *rans_uncompress(unsigned char *in, unsigned int in_size,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
41 unsigned int *out_size);
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
42
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
43
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
44 #endif /* RANS_STATIC_H */