mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
include k2pdfopt header in pdf.c and djvu.c and koptcontext.h
This commit is contained in:
parent
8430850a39
commit
a5b28ff6f2
8
Makefile
8
Makefile
@ -85,6 +85,7 @@ endif
|
||||
|
||||
# standard includes
|
||||
KPDFREADER_CFLAGS=$(CFLAGS) -I$(LUADIR)/src -I$(MUPDFDIR)/
|
||||
K2PDFOPT_CFLAGS=-I$(MUPDFDIR)/ -I$(DJVUDIR)/ -I$(K2PDFOPTLIBDIR)/
|
||||
|
||||
# enable tracing output:
|
||||
|
||||
@ -166,11 +167,14 @@ slider_watcher: slider_watcher.o $(POPENNSLIB)
|
||||
ft.o: %.o: %.c $(THIRDPARTYLIBS)
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) -I$(FREETYPEDIR)/include -I$(MUPDFDIR)/fitz $< -o $@
|
||||
|
||||
kpdfview.o pdf.o blitbuffer.o util.o drawcontext.o koptcontext.o einkfb.o input.o mupdfimg.o: %.o: %.c
|
||||
blitbuffer.o util.o drawcontext.o einkfb.o input.o mupdfimg.o: %.o: %.c
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) $(EMU_CFLAGS) -I$(LFSDIR)/src $< -o $@
|
||||
|
||||
kpdfview.o koptcontext.o pdf.o: %.o: %.c
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) $(K2PDFOPT_CFLAGS) $(EMU_CFLAGS) -I$(LFSDIR)/src $< -o $@
|
||||
|
||||
djvu.o: %.o: %.c
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) -I$(DJVUDIR)/ $< -o $@
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) $(K2PDFOPT_CFLAGS) -I$(DJVUDIR)/ $< -o $@
|
||||
|
||||
pic.o: %.o: %.c
|
||||
$(CC) -c $(KPDFREADER_CFLAGS) $< -o $@
|
||||
|
1
djvu.c
1
djvu.c
@ -24,6 +24,7 @@
|
||||
#include "blitbuffer.h"
|
||||
#include "drawcontext.h"
|
||||
#include "koptcontext.h"
|
||||
#include "k2pdfopt.h"
|
||||
#include "djvu.h"
|
||||
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
|
@ -21,33 +21,7 @@
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
typedef unsigned char uint8_t;
|
||||
typedef struct KOPTContext {
|
||||
int trim;
|
||||
int wrap;
|
||||
int indent;
|
||||
int rotate;
|
||||
int columns;
|
||||
int offset_x;
|
||||
int offset_y;
|
||||
int dev_width;
|
||||
int dev_height;
|
||||
int page_width;
|
||||
int page_height;
|
||||
int straighten;
|
||||
int justification;
|
||||
|
||||
double zoom;
|
||||
double margin;
|
||||
double quality;
|
||||
double contrast;
|
||||
double defect_size;
|
||||
double line_spacing;
|
||||
double word_spacing;
|
||||
|
||||
uint8_t *data;
|
||||
} KOPTContext;
|
||||
#include "k2pdfopt.h"
|
||||
|
||||
int luaopen_koptcontext(lua_State *L);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user