MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / scale3x_16_def

Function scale3x_16_def

src/Engine/Scalers/scale3x.cpp:693–702  ·  view source on GitHub ↗

* 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.

Source from the content-addressed store, hash-verified

691 * \param dst2 Third destination row, triple length in pixels.
692 */
693void 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)
694{
695#ifdef USE_SCALE_RANDOMWRITE
696 scale3x_16_def_whole(dst0, dst1, dst2, src0, src1, src2, count);
697#else
698 scale3x_16_def_border(dst0, src0, src1, src2, count);
699 scale3x_16_def_center(dst1, src0, src1, src2, count);
700 scale3x_16_def_border(dst2, src2, src1, src0, count);
701#endif
702}
703
704/**
705 * Scale by a factor of 3 a row of pixels of 32 bits.

Callers 1

stage_scale3xFunction · 0.85

Calls 3

scale3x_16_def_wholeFunction · 0.85
scale3x_16_def_borderFunction · 0.85
scale3x_16_def_centerFunction · 0.85

Tested by

no test coverage detected