scale2x/scale3x.c
/**
 * 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.
 * \param src0 Pointer at the first pixel of the previous row.
 * \param src1 Pointer at the first pixel of the current row.
 * \param src2 Pointer at the first pixel of the next row.
 * \param count Length in pixels of the src0, src1 and src2 rows.
 * It must be at least 2.
 * \param dst0 First destination row, triple length in pixels.
 * \param dst1 Second destination row, triple length in pixels.
 * \param dst2 Third destination row, triple length in pixels.
 */
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.
\param src0 Pointer at the first pixel of the previous row.
\param src1 Pointer at the first pixel of the current row.
\param src2 Pointer at the first pixel of the next row.
\param count Length in pixels of the src0, src1 and src2 rows.
It must be at least 2.
\param dst0 First destination row, triple length in pixels.
\param dst1 Second destination row, triple length in pixels.
\param dst2 Third destination row, triple length in pixels.
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 . \ param src0 Pointer at the first pixel of the previous row . \ param src1 Pointer at the first pixel of the current row . \ param src2 Pointer at the first pixel of the next row . \ param count Length in pixels of the src0 src1 and src2 rows . It must be at least 2 . \ param dst0 First destination row triple length in pixels . \ param dst1 Second destination row triple length in pixels . \ param dst2 Third destination row triple length in pixels .
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)
{
#ifdef USE_SCALE_RANDOMWRITE
	scale3x_16_def_whole(dst0, dst1, dst2, src0, src1, src2, count);
#else
	scale3x_16_def_border(dst0, src0, src1, src2, count);
	scale3x_16_def_center(dst1, src0, src1, src2, count);
	scale3x_16_def_border(dst2, src2, src1, src0, count);
#endif
}
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 ) { #ifdef USE_SCALE_RANDOMWRITE scale3x_16_def_whole ( dst0 , dst1 , dst2 , src0 , src1 , src2 , count ) ; #else scale3x_16_def_border ( dst0 , src0 , src1 , src2 , count ) ; scale3x_16_def_center ( dst1 , src0 , src1 , src2 , count ) ; scale3x_16_def_border ( dst2 , src2 , src1 , src0 , count ) ; #endif }
Scale by a factor of 3 a row of pixels of 16 bits.
Scale by a factor of 3 a row of pixels of 16 bits .