Commit Graph

40 Commits (0eaf2671fd42e2e79cbd089ed0b335e3da468244)

Author SHA1 Message Date
Tigran Aivazian cae259e0cb Cleanup of djvu.c
1. Use the proper <string.h> header.
2. Typo fixes and whitespace changes.
3. Comment out debug printf() about cache size.
4. Remove obsolete comment(s).

Conflicts:

	djvu.c
12 years ago
Tigran Aivazian 97f59ed07c 1. It is customary to call DjVu context by the name of the program.
2. When changing DjVu page rendering mode there is no need to clear DjVu cache, only our own tile cache.

Conflicts:

	djvureader.lua
12 years ago
Tigran Aivazian bbbd64d96e Comment out the setting of dithering bits because djvulibre ignores anything less than 8 bits anyway. 12 years ago
Tigran Aivazian b761418236 Small optimization in djvu.c:drawPage() --- there is no need to create and destroy
djvu pixel format on each redraw of the page as this can be done once on open and close
of the document. Also, set dither bits to 4 to help djvulibre choose the most
optimal dithering algorithm for the Kindle. Also, make coding style of "if(" -> "if ("
consistent (both instances were used, but "if (" was more frequent).

Conflicts:

	djvu.c
12 years ago
Tigran Aivazian 7f6d3097a2 Remove the local variable render_mode from drawPage() (although it would be optimized away by gcc anyway). 12 years ago
Tigran Aivazian 0d23340738 Move render_mode support out of unireader.lua into djvureader.lua as it is djvu-specific.
Also added support for all other rendering modes handled by djvulibre.
Also made the message print a human-readable description of the mode rather than just the number.

Conflicts:

	djvureader.lua
	unireader.lua
12 years ago
Tigran Aivazian 144f5c637a DjVu enhancements:
a) add support for switching the rendering mode between B&W (default, 1) and COLOUR (0) values.
b) handle the gamma values correctly.

Conflicts:

	unireader.lua
12 years ago
Kefu Chai 8ce1aef0af remove dependency on <linux/input.h>
* and kill a warning
12 years ago
Qingping Hou 75ee86b2cb fix offset calculation in djvu.c
use 4th and 5th args in renderrect in drawPage method.
12 years ago
Qingping Hou eca9ec4877 fix TOC entry page number counting, it was one page ahead.
close #137
12 years ago
HW ec905a5a13 fixed various bugs in pointer handling 12 years ago
Qingping Hou 9e4b2675f0 Merge branch 'master' into epub
Conflicts:
	unireader.lua
12 years ago
Dobrica Pavlinusic d34ccb92e6 make cache_size optional 12 years ago
Dobrica Pavlinusic 5b1deedd86 remove setCacheSize set cache in openDocument 12 years ago
Qingping Hou 42c9773711 add: cache size control for djvureader 12 years ago
Dobrica Pavlinusic 60b7ccb3cb added cleanCache bound to C key in menu #80 12 years ago
Dobrica Pavlinusic 91bd1277d7 control renderer memory usage #80
added setCacheSize and cache_document_size configuration vairable
12 years ago
Dobrica Pavlinusic 92ec4213c0 show djvu cache size #80
Currently it shows cache_max_memsize and cache_item_max_pixels from
lua and djvu cache size on menu key
12 years ago
Qingping Hou ad9d13a947 mod: rename TOC to Toc, adapt showMenu to CREReader 12 years ago
Qingping Hou 7c81f60a58 rewrite highlight again :( finished the cursor part 12 years ago
Qingping Hou a185f238eb mod: rewrite highlight feature 12 years ago
Qingping Hou f4ea1cdb62 Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
Conflicts:
	blitbuffer.c
	unireader.lua
12 years ago
HW 87ec4bbf6b factored pages counter out of document struct 12 years ago
HW 8869c52c31 fix a Lua 5.0 syntax that was deprecated in 5.1
luaL_reg is now renamed to luaL_Reg. Lua 5.2 does not know about
the old name anymore, Lua 5.1.x had backward compatibility.
12 years ago
HW 9ee7afa86d separate DC out of pdf.c and djvu.c (cleanup) 12 years ago
Qingping Hou 84c8230730 POC of text highlight in current page! 12 years ago
Qingping Hou 6441c34040 fix: bug in page text table construction 12 years ago
Qingping Hou baf98c0fcd add: POC getPageText method in djvu.c 12 years ago
Qingping Hou 72c032e7db fix: adjust page number in toc
djvulibre counts page number starts from 0, while
kpdfview starts from 1.
12 years ago
German Caro c074f19b0f Re-indented using tabs 12 years ago
German Caro ab056e2e15 Add support to djvu TOC 12 years ago
{Qingping,Dave} Hou 98154a4eb4 Merge pull request #49 from houqp/master
fix: passing wrong page number to ddjvu_document_get_pageinfo in djvu.c
12 years ago
Qingping Hou b3fb1dbcce fix: passing wrong page number to ddjvu_document_get_pageinfo 12 years ago
HW dd8c1324b7 djvulibre wants utf8-based filenames to be handed differently. closes #47 12 years ago
Qingping Hou b45450ed67 mod: remove printf workaround in djvu.c
the bug seems to be fixed by commit:
4a5b12aaa4
12 years ago
Dobrica Pavlinusic 4a5b12aaa4 fix closeDocument return #34
If we don't return 0 lua just exits on us, breaking return to file
chooser
12 years ago
Qingping Hou 49fa943306 mod: fix typo in comments 12 years ago
Qingping Hou 145d700685 mod: add fake toc method in djvu.c 12 years ago
Dobrica Pavlinusic efe2ef7efe integrate djvu into PDFReader, alternative to #26
This code is based on current master but doesn't include unireader, but
leaves all names to old PDFReader to preserve compatilbity
12 years ago
Qingping Hou 1b1fc2b3ae integrate djvu support 12 years ago