shithub: ifilter

ref: 61bdd5418803e3e64df2a6debe4b9159129e164d
dir: /a.h/

View raw version
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <memdraw.h>

typedef uchar*(*filterfn)(uchar*, int, int, int);

void	applyfilter(const char*, filterfn);
int		clamp(int);
uchar*	eallocbuf(ulong);

enum
{
	Cblue,
	Cgreen,
	Cred,
	Calpha,
};