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

Function scale2x4_16_def

src/Engine/Scalers/scale2x.cpp:648–660  ·  view source on GitHub ↗

* Scale by a factor of 2x4 a row of pixels of 16 bits. * \note Like scale2x_16_def(); */

Source from the content-addressed store, hash-verified

646 * \note Like scale2x_16_def();
647 */
648void scale2x4_16_def(scale2x_uint16* dst0, scale2x_uint16* dst1, scale2x_uint16* dst2, scale2x_uint16* dst3, const scale2x_uint16* src0, const scale2x_uint16* src1, const scale2x_uint16* src2, unsigned count)
649{
650#ifdef USE_SCALE_RANDOMWRITE
651 scale2x_16_def_whole(dst0, dst3, src0, src1, src2, count);
652 scale2x_16_def_center(dst1, src0, src1, src2, count);
653 scale2x_16_def_center(dst2, src0, src1, src2, count);
654#else
655 scale2x_16_def_border(dst0, src0, src1, src2, count);
656 scale2x_16_def_center(dst1, src0, src1, src2, count);
657 scale2x_16_def_center(dst2, src0, src1, src2, count);
658 scale2x_16_def_border(dst3, src2, src1, src0, count);
659#endif
660}
661
662/**
663 * Scale by a factor of 2x4 a row of pixels of 32 bits.

Callers 2

scale2x4_16_mmxFunction · 0.85
stage_scale2x4Function · 0.85

Calls 3

scale2x_16_def_wholeFunction · 0.85
scale2x_16_def_centerFunction · 0.85
scale2x_16_def_borderFunction · 0.85

Tested by

no test coverage detected