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

Function scale2x4_8_mmx

src/Engine/Scalers/scale2x.cpp:1424–1434  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1422 * factor of 2x4 instead of 2x2.
1423 */
1424void scale2x4_8_mmx(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)
1425{
1426 if (count % 8 != 0 || count < 16) {
1427 scale2x4_8_def(dst0, dst1, dst2, dst3, src0, src1, src2, count);
1428 } else {
1429 scale2x_8_mmx_border(dst0, src0, src1, src2, count);
1430 scale2x_8_def_center(dst1, src0, src1, src2, count);
1431 scale2x_8_def_center(dst2, src0, src1, src2, count);
1432 scale2x_8_mmx_border(dst3, src2, src1, src0, count);
1433 }
1434}
1435
1436/**
1437 * Scale by a factor of 2x4 a row of pixels of 16 bits.

Callers 1

stage_scale2x4Function · 0.85

Calls 3

scale2x4_8_defFunction · 0.85
scale2x_8_mmx_borderFunction · 0.85
scale2x_8_def_centerFunction · 0.85

Tested by

no test coverage detected