32#ifndef NOMLIB_SDL2_SCALE2X_HPP
33#define NOMLIB_SDL2_SCALE2X_HPP
37#include "nomlib/config.hpp"
53#define SCALE2x_READINT24(x) \
54 ((x)[0]<<16 | (x)[1]<<8 | (x)[2])
56#define SCALE2x_WRITEINT24(x, i) \
57 {(x)[0]=i>>16; (x)[1]=(i>>8)&0xff; x[2]=i&0xff; }
67bool scale2x (
void* source_buffer,
void* destination_buffer,
68 const int32 source_width,
const int32 source_height,
69 const int32 bits_per_pixel,
70 const int16 source_pitch, int16 destination_pitch
78bool scale3x (
void* source_buffer,
void* destination_buffer,
79 const int32 source_width,
const int32 source_height,
80 const int32 bits_per_pixel,
81 const int16 source_pitch, int16 destination_pitch
89bool scale4x (
void* source_buffer,
void* destination_buffer,
90 const int32 source_width,
const int32 source_height,
91 const int32 bits_per_pixel,
92 const int16 source_pitch, int16 destination_pitch