horizontalScaleNearest

Horizontal scaling using nearest integer algorithm for per-line operations. Works with 16, 8, 4, and 2 bit datatypes. 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. ArrayType should be bitleveld's NibbleArray or QuadArray, but also works with regular D arrays.

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

Meta