m2.enlarge-your-data/src/rle1/eydrle.hh
2006-01-03 10:47:46 +00:00

33 lines
568 B
C++

#ifndef _EYDRLE_HH
#define _EYDRLE_HH
#include <stdio.h>
#include <stdlib.h>
#include <exception>
#include <vector>
#include "eyd.hh"
namespace EydTools {
typedef enum { EYDRLE_MODE_COMPRESS, EYDRLE_MODE_UNCOMPRESS, EYDRLE_MODE_UNDEF } eydrle_mode_t;
class EydRle {
private:
// la config
eydrle_mode_t _mode_compress;
std::string _input_file;
std::string _output_file;
int _cellsize;
EydLib::BitGroup _rle;
public:
EydRle();
bool init(int argc, char **argv);
void run();
void compress();
void uncompress();
};
}
#endif