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

Function scale2x3_8_mmx

src/Engine/Scalers/scale2x.cpp:1376–1385  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1374 * factor of 2x3 instead of 2x2.
1375 */
1376void scale2x3_8_mmx(scale2x_uint8* dst0, scale2x_uint8* dst1, scale2x_uint8* dst2, const scale2x_uint8* src0, const scale2x_uint8* src1, const scale2x_uint8* src2, unsigned count)
1377{
1378 if (count % 8 != 0 || count < 16) {
1379 scale2x3_8_def(dst0, dst1, dst2, src0, src1, src2, count);
1380 } else {
1381 scale2x_8_mmx_border(dst0, src0, src1, src2, count);
1382 scale2x_8_def_center(dst1, src0, src1, src2, count);
1383 scale2x_8_mmx_border(dst2, src2, src1, src0, count);
1384 }
1385}
1386
1387/**
1388 * Scale by a factor of 2x3 a row of pixels of 16 bits.

Callers 1

stage_scale2x3Function · 0.85

Calls 3

scale2x3_8_defFunction · 0.85
scale2x_8_mmx_borderFunction · 0.85
scale2x_8_def_centerFunction · 0.85

Tested by

no test coverage detected