31 #ifndef _CRAM_ENCODINGS_H_
32 #define _CRAM_ENCODINGS_H_
118 char *in,
int in_size);
152 #define GET_BIT_MSB(b,v) (void)(v<<=1, v|=(b->data[b->byte] >> b->bit)&1, b->byte += (--b->bit<0), b->bit&=7)
Definition: cram_codecs.h:51
cram_codec * cram_decoder_init(enum cram_encoding codec, char *data, int size, enum cram_external_type option, int version)
Definition: cram_codecs.c:1752
cram_byte_array_stop_decoder byte_array_stop
Definition: cram_codecs.h:128
cram_beta_decoder e_beta
Definition: cram_codecs.h:134
int32_t offset
Definition: cram_codecs.h:80
int32_t symbol
Definition: cram_codecs.h:52
cram_external_type
Definition: cram_structs.h:111
unsigned char stop
Definition: cram_codecs.h:95
void * len_dat
Definition: cram_codecs.h:102
int(* encode)(cram_slice *slice, struct cram_codec *codec, char *in, int in_size)
Definition: cram_codecs.h:117
cram_huffman_code * codes
Definition: cram_codecs.h:60
int32_t content_id
Definition: cram_codecs.h:96
#define MAX_HUFF
Definition: cram_codecs.h:63
cram_huffman_decoder huffman
Definition: cram_codecs.h:122
int32_t len
Definition: cram_codecs.h:55
char * cram_encoding2str(enum cram_encoding t)
Definition: cram_codecs.c:1720
cram_huffman_code * codes
Definition: cram_codecs.h:65
enum cram_encoding codec
Definition: cram_codecs.h:112
int cram_codec_to_id(cram_codec *c, int *id2)
Definition: cram_codecs.c:1804
Definition: cram_codecs.h:111
int32_t nbits
Definition: cram_codecs.h:72
int(* store)(struct cram_codec *codec, cram_block *b, char *prefix, int version)
Definition: cram_codecs.h:119
Definition: cram_structs.h:518
struct cram_codec cram_codec
cram_external_decoder e_external
Definition: cram_codecs.h:131
cram_block * out
Definition: cram_codecs.h:113
int32_t offset
Definition: cram_codecs.h:76
cram_byte_array_len_encoder e_byte_array_len
Definition: cram_codecs.h:133
void(* free)(struct cram_codec *codec)
Definition: cram_codecs.h:114
cram_codec * cram_encoder_init(enum cram_encoding codec, cram_stats *st, enum cram_external_type option, void *dat, int version)
Definition: cram_codecs.c:1780
Definition: cram_structs.h:247
int nvals
Definition: cram_codecs.h:66
cram_huffman_encoder e_huffman
Definition: cram_codecs.h:130
int32_t offset
Definition: cram_codecs.h:71
cram_external_decoder external
Definition: cram_codecs.h:123
struct cram_codec * val_codec
Definition: cram_codecs.h:105
cram_subexp_decoder subexp
Definition: cram_codecs.h:126
Definition: cram_codecs.h:79
cram_byte_array_len_decoder byte_array_len
Definition: cram_codecs.h:127
Definition: cram_structs.h:90
struct cram_codec * len_codec
Definition: cram_codecs.h:104
cram_beta_decoder beta
Definition: cram_codecs.h:124
int32_t code
Definition: cram_codecs.h:54
int(* decode)(cram_slice *slice, struct cram_codec *codec, cram_block *in, char *out, int *out_size)
Definition: cram_codecs.h:115
Definition: cram_codecs.h:70
int ncodes
Definition: cram_codecs.h:59
void * val_dat
Definition: cram_codecs.h:103
Definition: cram_codecs.h:89
struct cram_codec * len_codec
Definition: cram_codecs.h:90
Definition: cram_codecs.h:84
Definition: cram_codecs.h:75
struct cram_codec * value_codec
Definition: cram_codecs.h:91
cram_encoding
Definition: cram_structs.h:98
Definition: cram_codecs.h:64
int32_t k
Definition: cram_codecs.h:81
Definition: cram_codecs.h:99
Definition: cram_codecs.h:58
cram_byte_array_stop_decoder e_byte_array_stop
Definition: cram_codecs.h:132
Definition: cram_codecs.h:94
int32_t content_id
Definition: cram_codecs.h:85
cram_gamma_decoder gamma
Definition: cram_codecs.h:125
int32_t p
Definition: cram_codecs.h:53