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

Function scale2x_32_mmx

src/Engine/Scalers/scale2x.cpp:1361–1369  ·  view source on GitHub ↗

* Scale by a factor of 2 a row of pixels of 32 bits. * This function operates like scale2x_8_mmx() but for 32 bits pixels. * \param src0 Pointer at the first pixel of the previous row. * \param src1 Pointer at the first pixel of the current row. * \param src2 Pointer at the first pixel of the next row. * \param count Length in pixels of the src0, src1 and src2 rows. It must * be at least 4 a

Source from the content-addressed store, hash-verified

1359 * \param dst1 Second destination row, double length in pixels.
1360 */
1361void scale2x_32_mmx(scale2x_uint32* dst0, scale2x_uint32* dst1, const scale2x_uint32* src0, const scale2x_uint32* src1, const scale2x_uint32* src2, unsigned count)
1362{
1363 if (count % 2 != 0 || count < 4) {
1364 scale2x_32_def(dst0, dst1, src0, src1, src2, count);
1365 } else {
1366 scale2x_32_mmx_border(dst0, src0, src1, src2, count);
1367 scale2x_32_mmx_border(dst1, src2, src1, src0, count);
1368 }
1369}
1370
1371/**
1372 * Scale by a factor of 2x3 a row of pixels of 8 bits.

Callers 1

stage_scale2xFunction · 0.85

Calls 2

scale2x_32_defFunction · 0.85
scale2x_32_mmx_borderFunction · 0.85

Tested by

no test coverage detected