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

Function scale2x_16_mmx

src/Engine/Scalers/scale2x.cpp:1340–1348  ·  view source on GitHub ↗

* Scale by a factor of 2 a row of pixels of 16 bits. * This function operates like scale2x_8_mmx() but for 16 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 8 a

Source from the content-addressed store, hash-verified

1338 * \param dst1 Second destination row, double length in pixels.
1339 */
1340void scale2x_16_mmx(scale2x_uint16* dst0, scale2x_uint16* dst1, const scale2x_uint16* src0, const scale2x_uint16* src1, const scale2x_uint16* src2, unsigned count)
1341{
1342 if (count % 4 != 0 || count < 8) {
1343 scale2x_16_def(dst0, dst1, src0, src1, src2, count);
1344 } else {
1345 scale2x_16_mmx_border(dst0, src0, src1, src2, count);
1346 scale2x_16_mmx_border(dst1, src2, src1, src0, count);
1347 }
1348}
1349
1350/**
1351 * Scale by a factor of 2 a row of pixels of 32 bits.

Callers 1

stage_scale2xFunction · 0.85

Calls 2

scale2x_16_defFunction · 0.85
scale2x_16_mmx_borderFunction · 0.85

Tested by

no test coverage detected