view minijss/jmix_post_c.h @ 2537:646641d72128

Add support for Giga-Paint hires format that includes screen RAM. Not sure if this is correct, as I've found only one sample of it.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 29 Aug 2020 00:20:08 +0300
parents b52905e2788e
children
line wrap: on
line source

/*
 * miniJSS - Post-processing routine template
 * Programmed and designed by Matti 'ccr' Hamalainen
 * (C) Copyright 2005-2015 Tecnic Software productions (TNSP)
 */

#ifdef JMIXER_HEADER
void JMIXER_NAME (JMIXER_ADDBUF_TYPE *, void *, const int);
#else
void JMIXER_NAME (JMIXER_ADDBUF_TYPE *addBuffer, void *mixBuffer, const int mixLength)
{
    int strideLength = mixLength;
    JMIXER_ADDBUF_TYPE *ap = addBuffer, t;
    JMIXER_TYPE *sp = (JMIXER_TYPE *) mixBuffer;

    while (strideLength--)
    {
        t = *(ap++);
        JMIXER_CLAMP
        JMIXER_FUNCTION
    }
}
#endif

#undef JMIXER_NAME
#undef JMIXER_TYPE
#undef JMIXER_FUNCTION