DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
scale3x.h File Reference

Go to the source code of this file.

Typedefs

typedef unsigned char scale3x_uint8
typedef unsigned short scale3x_uint16
typedef unsigned scale3x_uint32

Functions

void scale3x_8_def (scale3x_uint8 *dst0, scale3x_uint8 *dst1, scale3x_uint8 *dst2, const scale3x_uint8 *src0, const scale3x_uint8 *src1, const scale3x_uint8 *src2, unsigned count)
 Scale by a factor of 3 a row of pixels of 8 bits.
void scale3x_16_def (scale3x_uint16 *dst0, scale3x_uint16 *dst1, scale3x_uint16 *dst2, const scale3x_uint16 *src0, const scale3x_uint16 *src1, const scale3x_uint16 *src2, unsigned count)
 Scale by a factor of 3 a row of pixels of 16 bits.
void scale3x_32_def (scale3x_uint32 *dst0, scale3x_uint32 *dst1, scale3x_uint32 *dst2, const scale3x_uint32 *src0, const scale3x_uint32 *src1, const scale3x_uint32 *src2, unsigned count)
 Scale by a factor of 3 a row of pixels of 32 bits.

Typedef Documentation

typedef unsigned short scale3x_uint16
typedef unsigned scale3x_uint32
typedef unsigned char scale3x_uint8

Function Documentation

void scale3x_16_def ( scale3x_uint16 dst0,
scale3x_uint16 dst1,
scale3x_uint16 dst2,
const scale3x_uint16 src0,
const scale3x_uint16 src1,
const scale3x_uint16 src2,
unsigned  count 
)

Scale by a factor of 3 a row of pixels of 16 bits.

This function operates like scale3x_8_def() but for 16 bits pixels.

Parameters:
src0Pointer at the first pixel of the previous row.
src1Pointer at the first pixel of the current row.
src2Pointer at the first pixel of the next row.
countLength in pixels of the src0, src1 and src2 rows. It must be at least 2.
dst0First destination row, triple length in pixels.
dst1Second destination row, triple length in pixels.
dst2Third destination row, triple length in pixels.
void scale3x_32_def ( scale3x_uint32 dst0,
scale3x_uint32 dst1,
scale3x_uint32 dst2,
const scale3x_uint32 src0,
const scale3x_uint32 src1,
const scale3x_uint32 src2,
unsigned  count 
)

Scale by a factor of 3 a row of pixels of 32 bits.

This function operates like scale3x_8_def() but for 32 bits pixels.

Parameters:
src0Pointer at the first pixel of the previous row.
src1Pointer at the first pixel of the current row.
src2Pointer at the first pixel of the next row.
countLength in pixels of the src0, src1 and src2 rows. It must be at least 2.
dst0First destination row, triple length in pixels.
dst1Second destination row, triple length in pixels.
dst2Third destination row, triple length in pixels.
void scale3x_8_def ( scale3x_uint8 dst0,
scale3x_uint8 dst1,
scale3x_uint8 dst2,
const scale3x_uint8 src0,
const scale3x_uint8 src1,
const scale3x_uint8 src2,
unsigned  count 
)

Scale by a factor of 3 a row of pixels of 8 bits.

The function is implemented in C. The pixels over the left and right borders are assumed of the same color of the pixels on the border.

Parameters:
src0Pointer at the first pixel of the previous row.
src1Pointer at the first pixel of the current row.
src2Pointer at the first pixel of the next row.
countLength in pixels of the src0, src1 and src2 rows. It must be at least 2.
dst0First destination row, triple length in pixels.
dst1Second destination row, triple length in pixels.
dst2Third destination row, triple length in pixels.