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

Function scale2x4_8_def

src/Engine/Scalers/scale2x.cpp:630–642  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

628 * \note Like scale2x_8_def();
629 */
630void scale2x4_8_def(scale2x_uint8* dst0, scale2x_uint8* dst1, scale2x_uint8* dst2, scale2x_uint8* dst3, const scale2x_uint8* src0, const scale2x_uint8* src1, const scale2x_uint8* src2, unsigned count)
631{
632#ifdef USE_SCALE_RANDOMWRITE
633 scale2x_8_def_whole(dst0, dst3, src0, src1, src2, count);
634 scale2x_8_def_center(dst1, src0, src1, src2, count);
635 scale2x_8_def_center(dst2, src0, src1, src2, count);
636#else
637 scale2x_8_def_border(dst0, src0, src1, src2, count);
638 scale2x_8_def_center(dst1, src0, src1, src2, count);
639 scale2x_8_def_center(dst2, src0, src1, src2, count);
640 scale2x_8_def_border(dst3, src2, src1, src0, count);
641#endif
642}
643
644/**
645 * Scale by a factor of 2x4 a row of pixels of 16 bits.

Callers 2

scale2x4_8_mmxFunction · 0.85
stage_scale2x4Function · 0.85

Calls 3

scale2x_8_def_wholeFunction · 0.85
scale2x_8_def_centerFunction · 0.85
scale2x_8_def_borderFunction · 0.85

Tested by

no test coverage detected