shithub: ifilter

ref: 84b72ac10d75b4b93b9149ec1d3cbb9984ad533c
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,
};