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

Function scale2x_8_def

src/Engine/Scalers/scale2x.cpp:526–534  ·  view source on GitHub ↗

* Scale by a factor of 2 a row of pixels of 8 bits. * The function is implemented in C. * The pixels over the left and right borders are assumed of the same color of * the pixels on the border. * Note that the implementation is optimized to write data sequentially to * maximize the bandwidth on video memory. * \param src0 Pointer at the first pixel of the previous row. * \param src1 Pointer

Source from the content-addressed store, hash-verified

524 * \param dst1 Second destination row, double length in pixels.
525 */
526void scale2x_8_def(scale2x_uint8* dst0, scale2x_uint8* dst1, const scale2x_uint8* src0, const scale2x_uint8* src1, const scale2x_uint8* src2, unsigned count)
527{
528#ifdef USE_SCALE_RANDOMWRITE
529 scale2x_8_def_whole(dst0, dst1, src0, src1, src2, count);
530#else
531 scale2x_8_def_border(dst0, src0, src1, src2, count);
532 scale2x_8_def_border(dst1, src2, src1, src0, count);
533#endif
534}
535
536/**
537 * Scale by a factor of 2 a row of pixels of 16 bits.

Callers 2

scale2x_8_mmxFunction · 0.85
stage_scale2xFunction · 0.85

Calls 2

scale2x_8_def_wholeFunction · 0.85
scale2x_8_def_borderFunction · 0.85

Tested by

no test coverage detected