32 #ifndef NOMLIB_SCALE2X_HPP
33 #define NOMLIB_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; }
67 bool scale2x (
void* source_buffer,
void* destination_buffer,
68 const int32 source_width,
const int32 source_height,
70 const int16 source_pitch, int16 destination_pitch
78 bool scale3x (
void* source_buffer,
void* destination_buffer,
79 const int32 source_width,
const int32 source_height,
81 const int16 source_pitch, int16 destination_pitch
89 bool scale4x (
void* source_buffer,
void* destination_buffer,
90 const int32 source_width,
const int32 source_height,
92 const int16 source_pitch, int16 destination_pitch
99 #endif // include guard defined