-
Notifications
You must be signed in to change notification settings - Fork 103
/
koptcontext_cdecl.c
45 lines (42 loc) · 1.42 KB
/
koptcontext_cdecl.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// CPPFLAGS="-I../koreader-base/ -I../koreader-base/thirdparty/libk2pdfopt/libk2pdfopt/k2pdfoptlib -I../koreader-base/thirdparty/libk2pdfopt/libk2pdfopt -I../koreader-base/thirdparty/libk2pdfopt/libk2pdfopt/willuslib -I../koreader-base/thirdparty/libk2pdfopt/libk2pdfopt/include_mod -I../koreader-base/thirdparty/leptonica/leptonica/src -I/usr/include/luajit-2.0" ./ffi-cdecl ...
//#include "alltypes.h"
#include "koptcontext.h"
#include "koptreflow.h"
#include "koptcrop.h"
#include "koptimize.h"
// For bitmap2pix... sigh.
#include "koptocr.c"
#include "ffi-cdecl.h"
cdecl_type(BBox)
cdecl_type(POINT2D)
cdecl_type(WRECTMAP)
cdecl_type(WRECTMAPS)
cdecl_type(WILLUSBITMAP)
cdecl_type(HYPHENINFO)
cdecl_type(TEXTROW)
cdecl_type(TEXTROWS)
cdecl_type(BMPREGION)
cdecl_type(PAGEREGION)
cdecl_type(PAGEREGIONS)
cdecl_struct(KOPTContext)
cdecl_type(KOPTContext)
cdecl_func(bmp_init)
cdecl_func(bmp_free)
cdecl_func(bmp_alloc)
cdecl_func(bmp_copy)
cdecl_func(bmp_rowptr_from_top)
cdecl_func(wrectmaps_init)
cdecl_func(wrectmaps_free)
cdecl_func(wrectmap_inside)
cdecl_func(k2pdfopt_get_reflowed_word_boxes)
cdecl_func(k2pdfopt_get_native_word_boxes)
cdecl_func(k2pdfopt_tocr_single_word)
cdecl_func(k2pdfopt_reflow_bmp)
cdecl_func(k2pdfopt_tocr_end)
cdecl_func(pageregions_init)
cdecl_func(pageregions_free)
cdecl_func(k2pdfopt_crop_bmp)
//cdecl_func(k2pdfopt_part_bmp)
cdecl_func(k2pdfopt_optimize_bmp)
cdecl_func(pixmap_to_bmp)
cdecl_func(bitmap2pix)