This commit is contained in:
parent
4e231572bd
commit
9b3b2b7bda
1 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
#ifndef _EYDRLE_HH
|
||||
#define _EYDRLE_HH
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <eyd.hh>
|
||||
#include <exception>
|
||||
#include <vector>
|
||||
|
||||
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
|
Loading…
Reference in a new issue