shithub: qk1

ref: 955a62fe39dcc3c475e6a44d50e9f3f62a7b05aa
dir: /colormatrix.h/

View raw version
#define CM(v) ((v)*(1<<12))

extern s16int cm[4*4];
extern cvar_t v_saturation;
extern cvar_t v_contrast;
extern cvar_t v_brightness;

void cmprocess(s16int cm[4*4], void *in, void *out, int n);
void cminit(void);