#ifndef FPL_PREDICTOR_H
#define FPL_PREDICTOR_H
#include "Defines.h"
NAMESPACE_LERC_START
#define MAX_DELTA 5
enum PredictorType { PREDICTOR_UNKNOWN = -1, PREDICTOR_NONE = 0, PREDICTOR_DELTA1 = 1, PREDICTOR_ROWS_COLS = 2 };
struct Predictor
{
static int getMaxByteDelta (const PredictorType p);
static PredictorType getType (const char code);
static unsigned char getCode (const PredictorType p);
static int getIntDelta (const PredictorType p);
static PredictorType fromDeltaAndCross (int delta, bool cross);
};
NAMESPACE_LERC_END
#endif