shithub: pdffs

ref: d1a98f52a81b08b68e9cbb0e78c166f62c936690
dir: /f_runlength.c/

View raw version
#include <u.h>
#include <libc.h>
#include "pdf.h"

static int
flreadall(void *aux, Buffer *bi, Buffer *bo)
{
	USED(aux);
	bufput(bo, bi->b, bi->sz);
	return 0;
}

Filter filterRunLength = {
	.name = "RunLengthDecode",
	.readall = flreadall,
};