• src/conio/scale.c xbr.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, January 29, 2024 10:37:23
    https://gitlab.synchro.net/main/sbbs/-/commit/e2bbb4d5396ec9d598edea5c
    Modified Files:
    src/conio/scale.c xbr.c
    Log Message:
    Use the YCoCg-R colour space instead of YCbCr.

    It seems to provide similar perceptual results, and is much faster
    to transform with RGB. It's still slower than the table lookup,
    but not crushingly so.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Monday, November 04, 2024 21:21:24
    https://gitlab.synchro.net/main/sbbs/-/commit/58f9d4750803538cc29a9af1
    Modified Files:
    src/conio/scale.c xbr.c
    Log Message:
    More scaling cleanup... no undefined behaviour

    Remove undefined behaviour (right-shifting a negative integer) from
    the scaler... replace with divide-by-2. Any modern compiler should
    be able to optimize that.

    On the enabling the compiler front, const-ify more variables and
    use types that allow removing some casts.

    I have a bit more hope this will fix the macOS issue than the previous
    efforts.

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