shithub: pdffs

ref: b3610440c27ad0b930290179daf1f18d5a675686
dir: /f_dct.c/

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

/* 7.4.8 DCTDecode filter */

static int
flreadall(void *aux, Buffer *bi, Buffer *bo)
{
	USED(aux);

	/* FIXME not doing anything about ColorTransform here? */

	bufput(bo, bi->b, bi->sz);
	bi->off = bi->sz;

	return 0;
}

Filter filterDCT = {
	.name = "DCTDecode",
	.readall = flreadall,
};