• src/conio/scale.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, April 30, 2023 23:55:12
    https://gitlab.synchro.net/main/sbbs/-/commit/3d8c103ac68b26d823749c94
    Modified Files:
    src/conio/scale.c
    Log Message:
    Fix off-by-one error and increase precision

    Cleans up artifacts in interpolated values nicely.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, May 01, 2023 09:16:26
    https://gitlab.synchro.net/main/sbbs/-/commit/2d915f2b0149c11b98b68d5d
    Modified Files:
    src/conio/scale.c
    Log Message:
    Scaling optimizations

    Use weight == 0 instead of int == double when deciding to copy pixel
    When interpolating width, do it by column, not row

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, July 03, 2023 22:58:58
    https://gitlab.synchro.net/main/sbbs/-/commit/476f5e8a5f2b11e42c5e19dc
    Modified Files:
    src/conio/scale.c
    Log Message:
    UBSan claims this is undefined behaviour...

    I don't believe them, but I'll fix it anyway.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, March 15, 2026 16:01:53
    https://gitlab.synchro.net/main/sbbs/-/commit/ff2e724b522779f6f00f1e27
    Modified Files:
    src/conio/scale.c
    Log Message:
    Fix aspect_reverse() using *x instead of *y for height calculations

    Two places in aspect_reverse() computed the height dimension from the
    x input instead of y: the no-aspect-ratio early return and the
    height-controls branch. Both should use *y to match the parallel
    structure of the width-controls branch.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Sunday, March 15, 2026 16:01:53
    https://gitlab.synchro.net/main/sbbs/-/commit/6c02f7d0b797a45eefde6016
    Modified Files:
    src/conio/scale.c
    Log Message:
    Optimize multiply_scale() with row memcpy for duplicate rows

    Instead of re-reading source pixels and rewriting each output row
    ymult times, write the first row then memcpy it for the remaining
    duplicates. For common scaling factors (e.g. 4x), this eliminates
    75% of the inner loop work and leverages SIMD-optimized memcpy.

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net