00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _RVLCOMPRESS_HPP
00013 #define _RVLCOMPRESS_HPP
00014
00015 #include "common_headers.hpp"
00016
00017 #define pow2_7 128
00018 #define pow2_14 16384
00019 #define pow2_21 2097152
00020 #define pow2_28 268435456
00021
00022 #define pow2_31 2147483648U
00023
00024
00025 class RVLCompress {
00026 public:
00028 static int compress_ints (int *data_ptr, unsigned char *out_ptr, int size);
00029
00031 static int decompress_ints(unsigned char *data_ptr, int *out_ptr, int num_bytes);
00032
00033 };
00034
00035 #endif