AlcapDAQ
1
|
#include <stdio.h>
#include <assert.h>
#include "midas.h"
#include "mucap_compress.h"
#include "mucap_structures.h"
Go to the source code of this file.
Functions | |
void | hits_optimize () |
void | hits_load () |
int | encode_hits (channel_hit *input, int input_size, io_buffer *output, int *uncompressed_size_p) |
int | hits_compress (channel_hit *input, int input_size, unsigned char *output, int userParam) |
void | decode_hits (io_buffer *input, channel_hit *output) |
int | hits_expand (unsigned char *input, int input_size, channel_hit *output, int userParam) |
Variables | |
huffman_table | hits_parameter_huffman |
BOOL | should_compress_hits = TRUE |
void decode_hits | ( | io_buffer * | input, |
channel_hit * | output | ||
) |
Definition at line 106 of file hits_compress.cpp.
References huffman_get_symbol(), i, io_buffer_get(), parameter, channel_hit::parameter, and channel_hit::time.
Referenced by hits_expand().
int encode_hits | ( | channel_hit * | input, |
int | input_size, | ||
io_buffer * | output, | ||
int * | uncompressed_size_p | ||
) |
Definition at line 34 of file hits_compress.cpp.
References flush_output_buffer(), huffman_put_symbol(), i, io_buffer_put(), parameter, channel_hit::parameter, and time.
Referenced by hits_compress().
int hits_compress | ( | channel_hit * | input, |
int | input_size, | ||
unsigned char * | output, | ||
int | userParam | ||
) |
Definition at line 77 of file hits_compress.cpp.
References encode_hits(), rle_bits_setup(), and start_output_buffer().
Referenced by compress_event_skim().
int hits_expand | ( | unsigned char * | input, |
int | input_size, | ||
channel_hit * | output, | ||
int | userParam | ||
) |
Definition at line 148 of file hits_compress.cpp.
References decode_hits(), rle_bits_setup(), and start_input_buffer().
Referenced by expand_event().
void hits_load | ( | ) |
Definition at line 24 of file hits_compress.cpp.
References hDB, huffman_init_default(), load_huffman(), should_compress_hits, size, and TRUE.
Referenced by compress_load_all().
void hits_optimize | ( | ) |
Definition at line 18 of file hits_compress.cpp.
References huffman_optimize_tree(), and save_huffman().
Referenced by compress_optimize_skim().
huffman_table hits_parameter_huffman |
Definition at line 15 of file hits_compress.cpp.
BOOL should_compress_hits = TRUE |
Definition at line 16 of file hits_compress.cpp.
Referenced by hits_load().