• src/doors/syncscumm/test/test_termgfx_quant.c unit_termgfx_quant.sh sr

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, July 19, 2026 23:59:33
    https://gitlab.synchro.net/main/sbbs/-/commit/91efc43b9738a886b8c00300
    Added Files:
    src/doors/syncscumm/test/test_termgfx_quant.c unit_termgfx_quant.sh src/doors/termgfx/termgfx_quant.c termgfx_quant.h
    Modified Files:
    src/doors/syncscumm/door/module.mk video_term.cpp src/doors/termgfx/CMakeLists.txt
    Removed Files:
    src/doors/syncscumm/test/unit_sst_quant.sh
    Log Message:
    termgfx: relocate syncscumm's quantizer as termgfx_quant

    Move the deterministic median-cut RGB888->256-color quantizer out of syncscumm's door/ (sst_quant.{c,h}) into the shared termgfx library as termgfx_quant.{c,h}, so the upcoming truecolor present path can reuse
    it from termgfx_termio.c's present_rgbx (Task 3).

    Pure move + rename: sst_quant_ -> termgfx_quant_, SST_QUANT_ ->
    TERMGFX_QUANT_, and the include guard to the conforming
    TERMGFX_QUANT_H_ (was the already-nonstandard
    SYNCSCUMM_SST_QUANT_H_). No algorithm/output change -- the quant unit
    test (relocated to test_termgfx_quant.c / unit_termgfx_quant.sh) still
    passes byte-for-byte.

    video_term.cpp now includes termgfx_quant.h and calls
    termgfx_quant_rgb(); module.mk drops sst_quant.o since the door now
    links it from libtermgfx.

    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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