File: Predictor.h

package info (click to toggle)
libjmac-java 1.74-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,780 kB
  • sloc: java: 9,279; cpp: 4,375; xml: 369; makefile: 31; sh: 12
file content (30 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (5)
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
#ifndef APE_PREDICTOR_H
#define APE_PREDICTOR_H

/*************************************************************************************************
IPredictorCompress - the interface for compressing (predicting) data
*************************************************************************************************/
class IPredictorCompress
{
public:
    IPredictorCompress(int nCompressionLevel) {}
    virtual ~IPredictorCompress() {}

    virtual int CompressValue(int nA, int nB = 0) = 0;
    virtual int Flush() = 0;
};

/*************************************************************************************************
IPredictorDecompress - the interface for decompressing (un-predicting) data
*************************************************************************************************/
class IPredictorDecompress
{
public:
    IPredictorDecompress(int nCompressionLevel, int nVersion) {}
    virtual ~IPredictorDecompress() {}

    virtual int DecompressValue(int nA, int nB = 0) = 0;
    virtual int Flush() = 0;
};

#endif // #ifndef APE_PREDICTOR_H