shithub: pdffs

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