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

Function scale2x4_16_mmx

src/Engine/Scalers/scale2x.cpp:1441–1451  ·  view source on GitHub ↗

* Scale by a factor of 2x4 a row of pixels of 16 bits. * This function operates like scale2x_16_mmx() but with an expansion * factor of 2x4 instead of 2x2. */

Source from the content-addressed store, hash-verified

1439 * factor of 2x4 instead of 2x2.
1440 */
1441void scale2x4_16_mmx(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)
1442{
1443 if (count % 4 != 0 || count < 8) {
1444 scale2x4_16_def(dst0, dst1, dst2, dst3, src0, src1, src2, count);
1445 } else {
1446 scale2x_16_mmx_border(dst0, src0, src1, src2, count);
1447 scale2x_16_def_center(dst1, src0, src1, src2, count);
1448 scale2x_16_def_center(dst2, src0, src1, src2, count);
1449 scale2x_16_mmx_border(dst3, src2, src1, src0, count);
1450 }
1451}
1452
1453/**
1454 * Scale by a factor of 2x4 a row of pixels of 32 bits.

Callers 1

stage_scale2x4Function · 0.85

Calls 3

scale2x4_16_defFunction · 0.85
scale2x_16_mmx_borderFunction · 0.85
scale2x_16_def_centerFunction · 0.85

Tested by

no test coverage detected