2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
Commit Graph

7721 Commits

Author SHA1 Message Date
HW
41aa17082b reworked screen update emulation to support ranges 2011-12-08 23:43:37 +01:00
HW
ac010ea325 reworked freeing pdf document resources 2011-12-08 23:43:10 +01:00
HW
7e04b9a797 fixed more bugs 2011-12-08 19:52:07 +01:00
HW
c47512a01d slight refactoring of filechooser so it remembers state 2011-12-08 19:01:40 +01:00
HW
d89fd83235 fixed small oversights while refactoring 2011-12-08 17:59:08 +01:00
HW
6160f7fa7c Forgot to add the actual file chooser, do that now 2011-12-08 17:56:07 +01:00
HW
5e62e3e4af file mode fixes, added shebang to rendertext example script 2011-12-08 01:25:42 +01:00
HW
c869ee0a95 added file chooser 2011-12-08 01:17:33 +01:00
HW
eec48790e2 fixed small bug 2011-12-08 01:17:12 +01:00
HW
0bfdb9c44a added freeing of document resources 2011-12-08 01:16:40 +01:00
HW
affc3b231a major overhaul of the code structure, more OO like 2011-12-08 00:45:39 +01:00
HW
f93538256a added missing header file 2011-12-08 00:42:53 +01:00
HW
a466be9834 fixed blitting bug 2011-12-08 00:42:02 +01:00
HW
11b568f19e fixed included headers 2011-12-08 00:41:17 +01:00
HW
a86352dbc4 added enter key for SDL/emu mode 2011-12-08 00:40:44 +01:00
HW
6582ad8f95 restructured glyph blitting a bit and fixed bug 2011-12-08 00:39:40 +01:00
HW
b49b776962 changed meaning of eink refresh function arguments
now they specify width/height instead of bottom right coordinates
2011-12-08 00:38:12 +01:00
HW
1cc44feb6f factored out settings into own class
also started using OO paradigm
2011-12-05 22:31:40 +01:00
HW
485890f0fd fixed bug (oversight in refactoring framebuffer) 2011-12-02 23:14:07 +01:00
HW
f06b0f1dd3 added building/linking of luafilesystem
for info about luafilesystem, see
http://keplerproject.github.com/luafilesystem/
2011-12-02 23:10:59 +01:00
HW
c9ab02084f refactored code a bit to avoid duplication 2011-12-02 22:28:48 +01:00
HW
1271d908dc fixed bug in rectangle painting and added example 2011-12-02 01:43:55 +01:00
HW
f739baff5f moved blitting over to blitbuffer API
the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
2011-12-02 01:31:13 +01:00
HW
dfbdad5cbf Added support for odd render area width 2011-12-02 00:37:28 +01:00
HW
003fe05725 added support for (more) compiled-in fonts 2011-12-01 16:31:40 +01:00
HW
a02ae3a460 Added kerning for rendering text 2011-12-01 16:11:43 +01:00
HW
04772ea3ee enable garbage collection for pdfpage and ft_face 2011-12-01 14:33:17 +01:00
HW
b38b75298a fixed blitting for uneven horizontal offsets/dests 2011-12-01 14:28:10 +01:00
HW
f307264fb6 added freetype text rendering (still buggy)
this allows to render glyphs and also brings a simple
engine for rendering UTF-8 strings onto the framebuffer.
blitting to uneven offset is implemented here, too, but
needs more work and is still buggy.

In the end, this will allow for a simple GUI.
2011-12-01 01:35:53 +01:00
HW
ff38118a89 added exemplary storing of last read page 2011-11-29 00:54:38 +01:00
HW
12edfa7627 integrated sqlite3 + luasqlite3 in build
This will pull in support for SQLite3.
For the API, see here:
http://lua.sqlite.org/index.cgi/index
2011-11-29 00:07:46 +01:00
HW
3a670a479e Merge pull request #8 from dpavlin/master
panning and lauchpad integration
2011-11-28 12:52:56 -08:00
Dobrica Pavlinusic
31a487e746 fix direction of up/down pan 2011-11-26 16:32:24 +01:00
Dobrica Pavlinusic
aa55dca677 open reader using shift+P+P from Kindle's pdf viewer using launchpad
lsof is used to find path of current opened pdf
2011-11-26 16:24:00 +01:00
Dobrica Pavlinusic
04087c072f added altmode for smaller pans and zooms 2011-11-26 15:52:20 +01:00
Dobrica Pavlinusic
95952f7b11 enable panning over zoomed page
This works only in ZOOM_BY_VALUE mode invoked by Shift+Page< or Shift+Page>

Panning is modal: in normal mode, you move using fiveway but
when you press fiveway you switch to move-by-screen mode
(which is useful after you centered first column of article
and you just want to move around)

At any time you can press fiveway with shift to move in even smaller
increments
2011-11-26 15:41:11 +01:00
HW
be6e493f01 Merge pull request #7 from dpavlin/master
scp all *.lua files to Kindle
2011-11-21 11:28:41 -08:00
Dobrica Pavlinusic
bdda25f284 move gamma controlls to volume or F11/F12 in emu
Idea is to fee 5way presses for pan/zoom operations in future
2011-11-21 19:30:17 +01:00
Dobrica Pavlinusic
2d023d79c2 scp all *.lua files to Kindle 2011-11-21 19:30:00 +01:00
HW
e54ce6a358 changed gamma handling: now we multiply. 2011-11-21 01:18:10 +01:00
HW
a6541596ce added multiple zoom variants
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page

SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out

A = fit to page
S = fit to page width
D = fit to page height

SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height

SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
2011-11-21 01:02:03 +01:00
HW
be1327e302 prepare zoom-to-content 2011-11-21 00:40:23 +01:00
HW
50492835e7 fixed cache aging 2011-11-20 23:06:49 +01:00
HW
11cc9e38f4 added mupdf patching to Makefile 2011-11-20 23:02:39 +01:00
HW
2414a4b9ec fixed bugs: initialization in einkfb.c, cache aging 2011-11-20 23:01:22 +01:00
HW
d96666f4b1 new cache organization in preparation for more complex tile data
in order to use the tile cache for variable zoomed tiles, we need more
flexibility. thus, now cache tiles are hashed (well, in fact it's a
concatenation) of their metadata.

also, we close pages right after opening them - there was no re-use
before and now we have opening and closing at one place. this should
also make it easier for the garbage collector.
2011-11-20 22:36:31 +01:00
HW
a07ea2f8b8 factored out key config and tilecache 2011-11-20 21:40:56 +01:00
HW
c2dd2d9897 switched blitbuffer to 4bpp (from 8bpp alpha + 8bpp gray)
this should allow to cache more, bigger pixmaps. We'll need this for
zoomed-in pages.
2011-11-20 21:29:59 +01:00
HW
13fc5cefbb Merge pull request #6 from dpavlin/master
modify_gamma now use cache correctly, add memory-limit patch for muPDF
2011-11-20 04:17:38 -08:00
Dobrica Pavlinusic
e76d8bc6a9 limit mupdf to 64M memory usage
mupdf is well known to have problems with rasterizing huge bitmaps.
In Kindle DXG example, huge means larger than memory size which is
128Mb. Generally, getting memory usage above 100M gets kindle blocked
so setting it to 64M seems like sane default. 96M might be upper
resonable limit.

K3 users with 256M or RAM might increase this value to 192M, but more
testing is needed.

For comparison, some full-page ads from Digital Linux Journal in pdf
(older numbers) require 512M of RAM to render on Intel laptop!
2011-11-20 00:34:34 +01:00