2016-03-20 17:00:00 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* REminiscence - Flashback interpreter
|
|
|
|
* Copyright (C) 2005-2015 Gregory Montoir (cyx@users.sourceforge.net)
|
2015-08-02 18:00:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SCALER_H__
|
|
|
|
#define SCALER_H__
|
|
|
|
|
|
|
|
#include "intern.h"
|
|
|
|
|
|
|
|
typedef void (*ScaleProc)(uint16_t *dst, int dstPitch, const uint16_t *src, int srcPitch, int w, int h);
|
|
|
|
|
|
|
|
enum {
|
|
|
|
SCALER_POINT_1X = 0,
|
|
|
|
SCALER_POINT_2X,
|
|
|
|
SCALER_SCALE_2X,
|
|
|
|
SCALER_POINT_3X,
|
|
|
|
SCALER_SCALE_3X,
|
|
|
|
SCALER_POINT_4X,
|
|
|
|
SCALER_SCALE_4X,
|
2017-06-07 18:00:00 +02:00
|
|
|
NUM_SCALERS
|
2015-08-02 18:00:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Scaler {
|
|
|
|
const char *name;
|
|
|
|
ScaleProc proc;
|
|
|
|
uint8_t factor;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const Scaler _scalers[];
|
|
|
|
|
|
|
|
#endif // SCALER_H__
|