* 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
| 524 | * \param dst1 Second destination row, double length in pixels. |
| 525 | */ |
| 526 | void 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. |
no test coverage detected