AlcapDAQ
1
|
Go to the source code of this file.
Functions | |
void | caen_optimize () |
void | caen_load () |
int | encode_caen (caen_word *input, int input_size, io_buffer *output, int *uncompressed_size_p) |
int | caen_compress (caen_word *input, int input_size, unsigned char *output, int userParam) |
static int | sign_extend (int in, int bits) |
void | decode_caen (io_buffer *input, caen_word *output) |
int | caen_expand (unsigned char *input, int input_size, caen_word *output, int userParam) |
Variables | |
huffman_table | caen_channel_huffman |
BOOL | should_compress_caen = TRUE |
BOOL | should_strip_trailing_edge = TRUE |
BOOL | should_strip_r1 = TRUE |
int caen_compress | ( | caen_word * | input, |
int | input_size, | ||
unsigned char * | output, | ||
int | userParam | ||
) |
Definition at line 117 of file caen_compress.cpp.
References encode_caen(), rle_bits_setup(), and start_output_buffer().
Referenced by compress_event().
int caen_expand | ( | unsigned char * | input, |
int | input_size, | ||
caen_word * | output, | ||
int | userParam | ||
) |
Definition at line 219 of file caen_compress.cpp.
References decode_caen(), rle_bits_setup(), and start_input_buffer().
Referenced by expand_event().
void caen_load | ( | ) |
Definition at line 25 of file caen_compress.cpp.
References hDB, huffman_init_default(), load_huffman(), should_compress_caen, should_strip_r1, should_strip_trailing_edge, size, and TRUE.
Referenced by compress_load_all().
void caen_optimize | ( | ) |
Definition at line 19 of file caen_compress.cpp.
References huffman_optimize_tree(), and save_huffman().
Referenced by compress_optimize_all().
Definition at line 156 of file caen_compress.cpp.
References channel, caen_word::channel, caen_word::edge, huffman_get_symbol(), i, io_buffer_get(), caen_word::r1, caen_word::r2, sign_extend(), caen_word::start, and caen_word::time.
Referenced by caen_expand().
int encode_caen | ( | caen_word * | input, |
int | input_size, | ||
io_buffer * | output, | ||
int * | uncompressed_size_p | ||
) |
Definition at line 43 of file caen_compress.cpp.
References channel, caen_word::channel, flush_output_buffer(), huffman_put_symbol(), i, io_buffer_put(), printf(), should_strip_r1, should_strip_trailing_edge, time, and caen_word::time.
Referenced by caen_compress().
|
static |
Definition at line 146 of file caen_compress.cpp.
Referenced by decode_caen().
huffman_table caen_channel_huffman |
Definition at line 14 of file caen_compress.cpp.
BOOL should_compress_caen = TRUE |
Definition at line 15 of file caen_compress.cpp.
Referenced by caen_load(), and compress_event().
BOOL should_strip_r1 = TRUE |
Definition at line 17 of file caen_compress.cpp.
Referenced by caen_load(), and encode_caen().
BOOL should_strip_trailing_edge = TRUE |
Definition at line 16 of file caen_compress.cpp.
Referenced by caen_load(), and encode_caen().