22 #ifndef NUVIE_SCREEN_SCALE_H 23 #define NUVIE_SCREEN_SCALE_H 25 #include "ultima/shared/std/string.h" 30 #define SCALER_FLAG_2X_ONLY 1 31 #define SCALER_FLAG_16BIT_ONLY 2 32 #define SCALER_FLAG_32BIT_ONLY 4 35 typedef void (*ScalerType16)(uint16 *, int , int , int , int ,
const int ,
const int , uint16 *,
const int, int);
36 typedef void (*ScalerType32)(uint32 *, int , int , int , int ,
const int ,
const int , uint32 *,
const int, int);
42 ScalerType16 scale555;
43 ScalerType16 scale565;
46 ScalerType32 scale888;
54 const int sline_pixels,
57 const int dline_pixels,
61 scale16((uint16 *) source, srcx, srcy, srcw, srch, sline_pixels, sheight, (uint16 *) dest, dline_pixels, scale_factor);
62 }
else if (type == 555) {
63 scale16((uint16 *) source, srcx, srcy, srcw, srch, sline_pixels, sheight, (uint16 *) dest, dline_pixels, scale_factor);
64 }
else if (type == 565) {
65 scale16((uint16 *) source, srcx, srcy, srcw, srch, sline_pixels, sheight, (uint16 *) dest, dline_pixels, scale_factor);
66 }
else if (type == 32) {
67 scale32((uint32 *) source, srcx, srcy, srcw, srch, sline_pixels, sheight, (uint32 *) dest, dline_pixels, scale_factor);
68 }
else if (type == 888) {
69 scale888((uint32 *) source, srcx, srcy, srcw, srch, sline_pixels, sheight, (uint32 *) dest, dline_pixels, scale_factor);
99 const char *GetNameForIndex(
int index);
Definition: detection.h:27