AlcapDAQ
1
|
#include <stdio.h>
#include <stdlib.h>
#include "midas.h"
#include "mucap_compress.h"
#include "mucap_structures.h"
Go to the source code of this file.
Functions | |
void | tdc400_optimize () |
void | tdc400_load () |
void | binary_print (unsigned char c) |
void | event_display (tdc400_word *input, int length) |
int | encode_times (tdc400_word *input, int input_size, io_buffer *output) |
void | decode_times (io_buffer *input, tdc400_word *output) |
int | encode_bits (tdc400_word *input, int input_size, io_buffer *output) |
void | decode_bits (io_buffer *input, tdc400_word *output, int output_size) |
int | tdc400_compress (tdc400_word *input, int input_size, unsigned char *output, int userParam) |
int | tdc400_expand (unsigned char *input, int input_size, tdc400_word *output, int userParam) |
Variables | |
huffman_table | bits_huffman [2] |
huffman_table | time_huffman |
BOOL | should_compress_tdc400 = TRUE |
void binary_print | ( | unsigned char | c) |
void decode_bits | ( | io_buffer * | input, |
tdc400_word * | output, | ||
int | output_size | ||
) |
void decode_times | ( | io_buffer * | input, |
tdc400_word * | output | ||
) |
Definition at line 133 of file tdc400_compress.cpp.
References huffman_get_symbol(), i, io_buffer_get(), io_buffer::num_codes, and tdc400_word::time.
int encode_bits | ( | tdc400_word * | input, |
int | input_size, | ||
io_buffer * | output | ||
) |
Definition at line 162 of file tdc400_compress.cpp.
References flush_rle(), i, rle_put(), s, and tdc400_byte().
int encode_times | ( | tdc400_word * | input, |
int | input_size, | ||
io_buffer * | output | ||
) |
Definition at line 74 of file tdc400_compress.cpp.
References event_display(), flush_output_buffer(), huffman_put_symbol(), i, io_buffer_put(), io_buffer::num_codes, and tdc400_word::time.
void event_display | ( | tdc400_word * | input, |
int | length | ||
) |
Definition at line 58 of file tdc400_compress.cpp.
References binary_print(), i, length, printf(), tdc400_byte(), and time.
Referenced by encode_times().
int tdc400_compress | ( | tdc400_word * | input, |
int | input_size, | ||
unsigned char * | output, | ||
int | userParam | ||
) |
Definition at line 207 of file tdc400_compress.cpp.
References encode_bits(), encode_times(), rle_bits_setup(), and start_output_buffer().
Referenced by compress_event().
int tdc400_expand | ( | unsigned char * | input, |
int | input_size, | ||
tdc400_word * | output, | ||
int | userParam | ||
) |
Definition at line 255 of file tdc400_compress.cpp.
References decode_bits(), decode_times(), rle_bits_setup(), and start_input_buffer().
Referenced by expand_event().
void tdc400_load | ( | ) |
Definition at line 30 of file tdc400_compress.cpp.
References hDB, huffman_init_default(), load_huffman(), should_compress_tdc400, size, and TRUE.
Referenced by compress_load_all().
void tdc400_optimize | ( | ) |
Definition at line 19 of file tdc400_compress.cpp.
References huffman_optimize_tree(), and save_huffman().
Referenced by compress_optimize_all().
huffman_table bits_huffman[2] |
Definition at line 15 of file tdc400_compress.cpp.
BOOL should_compress_tdc400 = TRUE |
Definition at line 17 of file tdc400_compress.cpp.
Referenced by compress_event(), and tdc400_load().
huffman_table time_huffman |
Definition at line 16 of file tdc400_compress.cpp.