-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClassDecoder.h
52 lines (40 loc) · 957 Bytes
/
ClassDecoder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* ClassDecoder.h
*
*
* Created by Narendra Chaudhary on 2/27/2015.
* Texas A&M University.
*
*/
#ifndef ClassDecoder_H_
#define ClassDecoder_H_
#ifndef Parameters_H_
#include "Parameters.h"
#endif
#ifndef ClassPNG_H_
#include "ClassPNG.h"
#endif
#include <iostream>
#include <string>
using namespace std;
class ClassDecoder: public ClassPNG
{
public:
ClassDecoder();
~ClassDecoder();
/* Inverse Transform + RLE + EOB decoding : Corner -> Image */
int Transform_RLE_EOB_decoding();
/* all of decoding in one function */
int Complete_Decoding(string filename);
/* Entropy Decoder: AC */
int EntropyDecoder_AC(string filename);
//inflate (LZ77+Huffman)
int inflate_decompression(string filename);
//LineDiff decompression
int LineDiff_Decompression();
//Triline Decompression
int Triline_Decompression();
//Read RLE data from text
void ReadRLE(string filename,int flag); // flag 1 for text, 0 for binary
};
#endif