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 | myprint_TPCstack_interval (stack_elt *stackArray, long index1, long index2) |
void | print_TPCstack_interval (stack_elt *stackArray, long index1, long index2) |
void | stck_optimize () |
void | stck_load () |
int | encode_times (stack_elt *input, int input_size, io_buffer *output) |
void | decode_times (io_buffer *input, stack_elt *output) |
int | encode_bits (stack_elt *input, int input_size, io_buffer *output) |
void | decode_bits (io_buffer *input, stack_elt *output, int output_size) |
int | stck_compress (stack_elt *input, int input_size, unsigned char *output, int userParam) |
int | stck_expand (unsigned char *input, int input_size, stack_elt *output, int userParam) |
Variables | |
huffman_table | stck_bits_huffman [2] |
huffman_table | stck_time_huffman |
BOOL | should_compress_stck = TRUE |
Definition at line 178 of file stck_compress.cpp.
References thresh_bits::Aword, i, rle_get(), s, thresh_bits::Sword, stack_elt::thr, and stack_elt::thrbits.
Referenced by stck_expand(), and tdc400_expand().
Definition at line 101 of file stck_compress.cpp.
References i, io_buffer_get(), io_buffer::num_codes, and stack_elt::time.
Referenced by stck_expand(), and tdc400_expand().
Definition at line 137 of file stck_compress.cpp.
References thresh_bits::Aword, flush_rle(), i, rle_put(), s, thresh_bits::Sword, and stack_elt::thr.
Referenced by stck_compress(), and tdc400_compress().
Definition at line 46 of file stck_compress.cpp.
References flush_output_buffer(), i, io_buffer_put(), io_buffer::num_codes, and time.
Referenced by stck_compress(), and tdc400_compress().
void myprint_TPCstack_interval | ( | stack_elt * | stackArray, |
long | index1, | ||
long | index2 | ||
) |
void print_TPCstack_interval | ( | stack_elt * | stackArray, |
long | index1, | ||
long | index2 | ||
) |
int stck_compress | ( | stack_elt * | input, |
int | input_size, | ||
unsigned char * | output, | ||
int | userParam | ||
) |
Definition at line 220 of file stck_compress.cpp.
References encode_bits(), encode_times(), rle_bits_setup(), and start_output_buffer().
Referenced by compress_event_skim().
int stck_expand | ( | unsigned char * | input, |
int | input_size, | ||
stack_elt * | output, | ||
int | userParam | ||
) |
Definition at line 269 of file stck_compress.cpp.
References decode_bits(), decode_times(), rle_bits_setup(), and start_input_buffer().
Referenced by expand_event().
void stck_load | ( | ) |
Definition at line 32 of file stck_compress.cpp.
References hDB, huffman_init_default(), load_huffman(), should_compress_stck, size, and TRUE.
Referenced by compress_load_all().
void stck_optimize | ( | ) |
Definition at line 22 of file stck_compress.cpp.
References huffman_optimize_tree(), and save_huffman().
Referenced by compress_optimize_skim().
BOOL should_compress_stck = TRUE |
Definition at line 20 of file stck_compress.cpp.
Referenced by stck_load().
huffman_table stck_bits_huffman[2] |
Definition at line 18 of file stck_compress.cpp.
huffman_table stck_time_huffman |
Definition at line 19 of file stck_compress.cpp.