_horizontalScaleNearest

Horizontal scaling using nearest integer algorithm for per-line operations. (Old, might get deprecated later on) Works with most datatypes. Use a separate one for 4 bit. Lenght determines the source's length. trfmParam describes how the transformation is done. 1024 results in the same exact line. Larger values cause shrinkage, smaller omes growth. Negative values cause reflections.

  1. void _horizontalScaleNearest(T* src, T* dest, sizediff_t length, int trfmParam)
    @nogc pure nothrow
    void
    _horizontalScaleNearest
    (
    T
    )
    (
    T* src
    ,
    T* dest
    ,
    sizediff_t length
    ,)
  2. void _horizontalScaleNearest(ArrayType src, ArrayType dest, sizediff_t length, sizediff_t offset, int trfmParam)

Meta