Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RVLCompress.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2002 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.cs.cmu.edu/~lemur/license.html
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

Generated on Fri Jul 2 16:25:37 2004 for Lemur Toolkit by doxygen1.2.18