Commit Graph

1178 Commits (27ec17b4056c54ad2d7bd0b278bc375a8648b301)
 

Author SHA1 Message Date
Tigran Aivazian cac63cd390 Add support for colour JPEG images.
I used the luminance match algorithm for converting RGB colour images to
grayscale as it gives the best visual results (but at the cost of speed).
12 years ago
Dobrica Pavlinusic 2103461a43 return section separate from url and fix highlight 12 years ago
Dobrica Pavlinusic f2933a32c0 added clearSelection
Conflicts:

	unireader.lua
12 years ago
Dobrica Pavlinusic bc4d2e7a49 added gotoLink
Conflicts:

	unireader.lua
12 years ago
Dobrica Pavlinusic 60edf54e2f getPageLinks implementation for crengine formats
Conflicts:

	cre.cpp
	crereader.lua
	unireader.lua
12 years ago
Tigran Aivazian f6c73c33d3 Commented out debug-only function readable_fs(). 12 years ago
Tigran Aivazian 879c937762 Force the use of bash.
On some distributions (e.g. Ubuntu) the shell used for scripts is dash,
not bash and we explicitly rely on bash's features in the Makefile, so
we must guarantee that we are running with bash (not dash or anything
else).
12 years ago
Tigran Aivazian b053667d9e Add git-rev file.
Conflicts:

	.gitignore
12 years ago
HW 4b2a9237c9 factored out blitting constraints check in a seperate function
the checking of the boundaries when blitting was incomplete
for the addblitToBuffer() function when compared with the
blitToBuffer() function. Factored out the redundant checking
procedure into a new function.

Should fix another bug leading to issue #401 and probably
more cases for specifying boundary boxes.
12 years ago
HW cf38d02e80 added framework to check the involved pointers in blitbuffer operations
blitbuffer operations in 4bpp can be a nasty experience, easy to
get the pointers wrong. so a macro can check them now.

Conflicts:

	blitbuffer.c
12 years ago
Tigran Aivazian b56f4bf958 Support only grayscale images for now. 12 years ago
Tigran Aivazian 6d23997442 Add simple scaling support.
Conflicts:

	pic.c
12 years ago
Dobrica Pavlinušić b43249128e Merge pull request #504 from houqp/new_ui_code
add multi-touch event definitions from linux/input.h
12 years ago
Qingping Hou e07c1d147f add multi-touch event definitions from linux/input.h 12 years ago
Dobrica Pavlinušić 95ad8ebe09 Merge pull request #470 from houqp/new_ui_code
PaperWhite support for einkfb module
12 years ago
Qingping Hou d4e01f97a8 add mxcfb.h header for v5 firmware eink support 12 years ago
Qingping Hou a43d1f7ae2 add kindlePaperWhite support for einkfb module 12 years ago
Dobrica Pavlinušić e7c0ab8731 Merge pull request #440 from houqp/new_ui_code
one bug fix and add paperwhite detection
12 years ago
Qingping Hou 54b33bd6a7 fix DXG detection 12 years ago
Qingping Hou 2985d27569 rewrite device detection 12 years ago
Qingping Hou 1adc84c2ac rename slider event to fake_events again 12 years ago
Dobrica Pavlinušić d2477a1214 Merge pull request #407 from houqp/new_ui_code
some of my fixes & merge lates changes from master branch
12 years ago
Qingping Hou ea022b651f add rendermode support for djvu documents 12 years ago
HW b012f1b037 changed page number reading
this is far from complete since in fact, we read page references
which follow a more complex syntax. while specifying page numbers
is one option for them, they might also specify page names. we
currently do not yet have code for this case and we will return
"-1" for all page references we can not parse.
12 years ago
Tigran Aivazian 0d740d2b3b Optimize DjVu drawPage() function
We only need to fill the image buffer with white colour if DjVu page
rendering function did not fill it in with page data.
12 years ago
Qingping Hou 8ccbfba6cc Djvu Validate patch from tigran123
refer to commit in master(kpv) tree:
64b6ef4afd
12 years ago
Qingping Hou f641f50e2a add comment for build version reading in the future 12 years ago
Qingping Hou e3b567b2b1 fix kerning for Utf8Text family methods from tigran123
refer to master pullrequest #386 and #383, related
commits are (all in master(kpv) tree):
cb25029ddd
c7b4cf71f8
379cba7b68
12 years ago
Tigran Aivazian 604f635c46 Cleanup of getUsedBBox() function.
The function getUsedBBox() does not need to perform any operations on
the DjvuPage structure, so there is no need to obtain it from Lua.
12 years ago
Tigran Aivazian cbfa0d5344 Generate git-rev file at compile time.
The file git-rev containing the program's version should be generated at
kpdfview compile time rather than package generation time.

Conflicts:

	Makefile
12 years ago
Qingping Hou 78c7007f43 add todo for kerning in text widgets 12 years ago
Tigran Aivazian e191930684 Mention patch in the pre-requisites for building.
On FC17 patch(1) command is not installed by default.
12 years ago
Tigran Aivazian 5fd9aac780 Display DjVu info in the status line.
The DjVu info shown in the status line includes:
1. Physical page dimensions.
2. Current value of gamma and (in square brackets) the value of the
display for which the page was designed.
3. Page resolution (in dpi).
4. Page type.
For the end-user probably the most useful bit is the page type as it
helps him decide which rendering mode to choose for this page (and also
explains why he can't see anything on the page --- e.g. when rendering
some COMPOUND or PHOTO pages in B&W mode). For the developer the
physical page dimensions are also interesting as they allow to estimate
the amount of time needed for page decoding and cache efficiency.

Conflicts:

	djvureader.lua
12 years ago
Tigran Aivazian e3d02cd578 First stage of improving the DjVu status info.
Conflicts:

	djvureader.lua
12 years ago
Tigran Aivazian 9e786e0eed Small typo that wasted millions of instructions.
Now that #define CRENGINE_DEBUG is handled correctly, all those pesky
messages from crengine are gone and so the performance of crereader
should be much better --- remember that under some circumstances
crengine generates literally THOUSANDS of debug messages per second
(e.g. when complaining about corrupt TOC nodes and there are _plenty_ of
fb2 files out there which have an invalid structure).
12 years ago
Dobrica Pavlinušić 812d52c1fa Merge pull request #365 from houqp/new_ui_code
merge latest changes from master branch
12 years ago
Tigran Aivazian d551e7fb63 Cleanup crereader fonts initialization.
Don't try to register the two fonts Dingbats.cff and StandardSymL.cff
with crengine because it will reject them anyway. But we cannot simply
remove these two fonts because they are used internally by mupdf to
emulate "builtin" fonts which are mandated by Adobe PDF specification to
be present in every valid implementation.
12 years ago
NiLuJe d60504ef83 More comments on the whole unaligned access mess on FW 2.x. Don't even
think about setting the alignment trap to a mode that includes warn,
that simply kills the performance because of the storm of faults the
syslog gets...
12 years ago
NiLuJe 42e66cc605 Yep, -mno-unaligned-access is definitely needed with a GCC 4.7
ToolChain, the kernel used on FW 2.x is too old to handle unaligned
accesses properly.
12 years ago
NiLuJe 24b9678dc6 It's a spaaaaace! 12 years ago
NiLuJe 3e47fe8e01 Quote that to avoid potential issues... 12 years ago
NiLuJe 3f945b8d93 We don't need you, either, in EMU... 12 years ago
NiLuJe e04cb9a66b We don't need those two in EMU ;). 12 years ago
NiLuJe 0790190af5 Slightly nicer fix for building mupdf's .host stuff with CFLAGS in the env. 12 years ago
NiLuJe c68ac9c8c8 Add a note about -mno-unaligned-access (check my x-compile.sh script for
more details, I'll revisit this once Linaro 2012.10 comes out).
12 years ago
NiLuJe d55138113f Split the backward compat stuff between CFLAGS/CXXFLAGS 12 years ago
NiLuJe c35b5d2d56 Don't use the backward compat flags on the host. Move to a dedicated
variable, with a few comments to explain ;).
12 years ago
NiLuJe 9520c9b662 Add -fno-finite-math-only (after -ffast-math) to the ARM flags to avoid
MG 2012.03 pulling GLIBC_2.15 symbols from libm (because -ffast-math asks
for it).
I didn't see this on my own TC because it's using a much older glibc version (2.9).
12 years ago
NiLuJe b0f7ea5d81 revert the whole 'let's use ld' thing. It's useless, and might wreak
havoc on EMU builds picking up system libs instead of the bundled ones.
12 years ago
NiLuJe 9169ac7541 Make sure we're always building luajit statically, so ld doesn't pick a
shared version. Of course that explained the size difference :D.
12 years ago