Static Public Member Functions | |
static void | scale2x_def (uintX *dst0, uintX *dst1, const uintS *src0, const uintS *src1, const uintS *src2, unsigned count) |
static bool | Scale (Texture *tex, sint32 sx, sint32 sy, sint32 sw, sint32 sh, uint8 *pixel, sint32 dw, sint32 dh, sint32 pitch, bool clamp_src) |
Definition at line 48 of file Scale2xScaler.cpp.
static bool Pentagram::Scale2xScalerInternal< uintX, Manip, uintS >::Scale | ( | Texture * | tex, | |
sint32 | sx, | |||
sint32 | sy, | |||
sint32 | sw, | |||
sint32 | sh, | |||
uint8 * | pixel, | |||
sint32 | dw, | |||
sint32 | dh, | |||
sint32 | pitch, | |||
bool | clamp_src | |||
) | [inline, static] |
Definition at line 121 of file Scale2xScaler.cpp.
References Texture::buffer, height, Texture::height, if(), Pentagram::Scale2xScalerInternal< uintX, Manip, uintS >::scale2x_def(), and Texture::width.
static void Pentagram::Scale2xScalerInternal< uintX, Manip, uintS >::scale2x_def | ( | uintX * | dst0, | |
uintX * | dst1, | |||
const uintS * | src0, | |||
const uintS * | src1, | |||
const uintS * | src2, | |||
unsigned | count | |||
) | [inline, static] |
Scale by a factor of 2 a row of pixels of 16 bits. This function operates like scale2x_8_def() but for 16 bits pixels.
src0 | Pointer at the first pixel of the previous row. | |
src1 | Pointer at the first pixel of the current row. | |
src2 | Pointer at the first pixel of the next row. | |
count | Length in pixels of the src0, src1 and src2 rows. It must be at least 2. | |
dst0 | First destination row, double length in pixels. | |
dst1 | Second destination row, double length in pixels. |
Definition at line 63 of file Scale2xScaler.cpp.
Referenced by Pentagram::Scale2xScalerInternal< uintX, Manip, uintS >::Scale().