shithub: pdffs

ref: 6d2612e1503c37990bba44b409e5402d9dbd5c19
dir: /f_jpx.c/

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

/* 7.4.9 JPXDecode filter */

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

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

	return 0;
}

Filter filterJPX = {
	.name = "JPXDecode",
	.readall = flreadall,
};