paint-funcs-utils

paint-funcs-utils

Synopsis

#define             HAS_ALPHA                           (bytes)
#define             INT_BLEND                           (a,
                                                         b,
                                                         alpha,
                                                         tmp)
#define             INT_MULT                            (a,
                                                         b,
                                                         t)
#define             INT_MULT3                           (a,
                                                         b,
                                                         c,
                                                         t)

Description

Details

HAS_ALPHA()

#define HAS_ALPHA(bytes) (~bytes & 1)


INT_BLEND()

#define INT_BLEND(a,b,alpha,tmp)  (INT_MULT((a) - (b), alpha, tmp) + (b))


INT_MULT()

#define INT_MULT(a,b,t)  ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))


INT_MULT3()

#define             INT_MULT3(a,b,c,t)