2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1630 Commits

Author SHA1 Message Date
chrox
7faeece952 bugfix: save one reflow when switching between multi-threads on and off
The multi_threads variable should be excluded from the hash as cache
from the multi-threads procedure is valid for non-multi-threads
procedure and vice versa.
2012-11-14 10:03:44 +08:00
chrox
cd21b9f041 bugfix: sorry. I forgot to change the configurable defaluts. 2012-11-13 22:50:50 +08:00
chrox
c95b2a1dc5 disable multi-threaded precache by default 2012-11-13 22:43:01 +08:00
chrox
262acbed09 bigfix: fix screen freeze when changing from threaded mode
to non-threaded mode.
2012-11-13 22:11:31 +08:00
chrox
49d4b5ff1e inform the user when turning page while bgthread has not finished yet 2012-11-13 21:45:10 +08:00
chrox
0ef75c65f0 change default max columns to 2 2012-11-13 20:39:34 +08:00
chrox
9594895b26 add options to disable multi-thread precache 2012-11-13 20:08:25 +08:00
chrox
5022609bc2 save one page reflow in occasional cases
when the page reflow is not finished from the bgthread but the main
thread ask to draw the page immediately. We will stay here to wait for
the bgthread.
2012-11-13 19:43:33 +08:00
chrox
f2835d7a86 add precache and bmp src in koptcontext 2012-11-13 12:19:22 +08:00
chrox
1d018ee5bf add multi-threaded precache
Because the lua reader is single threaded on which both user inputloop
and background page rendering is processed. Although there is a pretty
good precache system to save user's time spending on waiting for the
rendering when going to the next page, user input is indeed blocked when
running the precache thing. The situation is even worse in koptreader as
reflowing on page would usually take several second, in this period
users cannot move to the next page view even it's already in the cache.
This patch will let precache run in the background in a seperate thread
so that the koptreader is still responsive when precaching the next
page. Now it only just works. Welcome to find out bugs in it.
2012-11-13 11:54:23 +08:00
{Qingping,Dave} Hou
38e75c230e Merge pull request #566 from tigran123/libjpeg
Bugfix: link with the static libjpeg.a from mupdf/thirdparty
2012-11-11 17:47:42 -08:00
{Qingping,Dave} Hou
82221fa420 Merge pull request #565 from tigran123/tts
Tidy up TTS
2012-11-11 17:47:06 -08:00
Tigran Aivazian
d1a72f6f95 Merge pull request #567 from kai771/info_timeout2
info_timeout2 - fixes issues reported by tigran123 in #560
2012-11-11 15:15:30 -08:00
kai771
c12a02f236 DINFO_TIMEOUT_SLOW set to 1500 2012-11-12 00:12:39 +01:00
kai771
9c6ad7387a info_timeout2 - fixes issues reported by tigran123 in #560 2012-11-11 23:33:26 +01:00
Tigran Aivazian
d2cde652b7 Bugfix: link with the static libjpeg.a
We should explicitly link with the libjpeg.a from mupdf/thirdparty and not with the
shared libjpeg.so that may happen to be installed on the system.
2012-11-11 21:44:16 +00:00
Tigran Aivazian
a81fe952fd Tidy up TTS
1. Describe the 'message_importance' parameter correctly in the comments
above :inform() function.
2. Use more appropriate menu titles for event notification dialog.
3. bugfix: save/restore configured event notifications methods in the
settings.
2012-11-11 21:22:54 +00:00
Tigran Aivazian
4514e828b5 Merge pull request #564 from chrox/kopt-manbbox
bugfix: reflowed page should be at the top of the screen
2012-11-11 12:25:46 -08:00
chrox
6df1a05264 bugfix: reflowed page should be at the top of the screen
when reflowed page has a height less than screen height. This bug was
initially found by @tigran123 in #452. I'm sorry that I didn't fix it
until now.
2012-11-12 02:49:27 +08:00
Tigran Aivazian
a209ed3549 Merge pull request #562 from chrox/kopt-manbbox
bugfix: update cur_bbox with correct page number when doing precache
2012-11-11 09:47:37 -08:00
Tigran Aivazian
20e0d3aef1 Merge pull request #563 from kai771/comics_overlap2
enable overlap in comics mode 2
2012-11-11 09:47:04 -08:00
kai771
c13fe3c517 Remove unneeded page redraws by tigran123 2012-11-11 18:38:42 +01:00
chrox
f4eb9e7982 bugfix: update cur_bbox with correct page number when doing precache
Otherwise with the wrong pagehash the precache will be invalid and page
need to be reflowed twice.
2012-11-12 01:38:13 +08:00
kai771
12974cffbe enable overlap in comics_mode 2012-11-11 18:31:56 +01:00
Tigran Aivazian
b949cec1aa Merge pull request #559 from chrox/kopt-manbbox
add bbox modification inside of koptreader
2012-11-11 08:29:24 -08:00
Tigran Aivazian
8374aff5b7 Merge pull request #560 from kai771/info_timeout
Info_timeout in emulator and defaults.lua clean-up
2012-11-11 07:49:52 -08:00
chrox
fc3ba20ab7 change default white margin size to 0 2012-11-11 22:58:02 +08:00
kai771
39eb6e5e29 Info_timeout in emulator and defaults.lua clean-up 2012-11-11 15:31:55 +01:00
chrox
ad19673bd7 add bbox modification inside of koptreader
The modification code is copied directly from unireader as I haven't
find a more elegant way yet.
2012-11-11 20:13:57 +08:00
Dobrica Pavlinušić
2a7912aa05 Merge pull request #558 from kai771/bugfix1
Fixes bugs with viewport mode reported by tigran123 in #555
2012-11-11 02:45:38 -08:00
kai771
9e9ffab969 Fixes bugs with viewport mode reported by tigran123 in #555 2012-11-10 22:04:20 +01:00
Tigran Aivazian
6a53c2f864 Merge pull request #556 from chrox/koptreader-bbox
feature: add bbox support in koptreader
2012-11-10 07:00:17 -08:00
Tigran Aivazian
e8750d641a Merge pull request #557 from chrox/master
bugfix: readerchooser dialog should not be visible when opening a file
2012-11-10 06:48:18 -08:00
chrox
31f384255c bugfix: readerchooser dialog should not be visible when opening a file
when select a reader to open a document the readerchooser dialog is
overlayed with opening file notification window. The overlayed three
windows(file chooser, reader chooser and notification window) will make
users feel unconfortable easpecially when opening in koptreader which
usually freezes the screen for several seconds.

With this patch the reader chooser dialog is closed before the opening
file noticifation is shown up.
2012-11-10 20:40:43 +08:00
Dobrica Pavlinušić
22b3e9749c Merge pull request #555 from kai771/page_mode
Implements page mode as a toggle
2012-11-10 04:21:32 -08:00
chrox
0f8b56b795 use -O3 option in compiling libk2pdfopt
Probably we should use fomit-frame-pointer explicitly even though
fomit-frame-pointer is included by default with -O2 and -O3 just like
the Linux kernel guys doing. I found append -O3 directly to `CFLAGES`
will do the trick. So I removed the KOPT_CFLAGS variable.
2012-11-10 19:13:03 +08:00
chrox
68a0f34a19 add -fno-finite-math-only in KOPT_CFLAGS
In some compilation platform if finite-math-only option is turned
on, math functions like exp and sqrt will be dynamically linked to
finite versions which cannot be located in Kindle's GLIBC. In my
toolchain the symbol __exp_finite cannot be found in GLIBC_2.4 so
gcc just use __exp_finite in GLIBC_2.15, which will cause a run time
error in Kindle saying "version GLIBC_2.15 not found"
2012-11-10 17:27:29 +08:00
chrox
0a427cc02f -fomit-frame-pointer is enabled at level -O, -O2, -O3 2012-11-10 09:06:22 +08:00
chrox
5c93a3a271 no need to mark source page 2012-11-10 09:04:58 +08:00
chrox
7a75742bab add libk2pdfopt.so.1 in customupdate 2012-11-10 01:58:51 +08:00
chrox
84aec5067b adjust gamma in k2pdfopt 2012-11-10 01:39:40 +08:00
chrox
4248194e14 use -O3 option in k2pdfopt compilation
Koptreader will gain 20% performance boost.
2012-11-10 01:36:39 +08:00
chrox
f157b604c1 bugfix: no need to use crop boxes 2012-11-09 23:52:43 +08:00
chrox
9cb906f031 update libk2pdfopt 2012-11-09 23:26:18 +08:00
chrox
d0878f00a9 build libk2pdfopt as a shared library 2012-11-09 23:25:01 +08:00
chrox
cd9b6cc770 some UI tweaks and default changes 2012-11-09 17:21:34 +08:00
chrox
505f59fc87 Pulled update to libk2pdfopt 2012-11-09 13:08:14 +08:00
chrox
73f796a13c feature: add bbox support in koptreader
Reflow can be configured to use bbox which could remove
side comments and defects in the margin and get much better reflowed
page in some documents. Currently the bbox is only set in PDFReader or
DJVUReader reader. But eventually there will be bbox setting routines in
KOPTReader.
Thirdparty should be cleaned and refetched and remake to get
this feature in operation.
2012-11-09 11:04:01 +08:00
kai771
3293acd3a3 Implements page mode as a toggle 2012-11-09 00:58:40 +01:00
{Qingping,Dave} Hou
0b7fb32280 Merge pull request #554 from chrox/libk2pdfopt
move k2pdfopt source to submodules
2012-11-08 11:19:17 -08:00