Commit Graph

6298 Commits

Author SHA1 Message Date
Yury Delendik
e80c6a8a75 Merge pull request #4466 from p01/Faster_1BPP_image_drawing
Faster 1 bpp image drawing
2014-03-26 10:32:05 -05:00
Yury Delendik
483fc9faa0 Merge pull request #4518 from Snuffleupagus/firefox-include-default-preferences
[Firefox] Stop importing default_preferences.js as a module and include it instead
2014-03-26 10:04:21 -05:00
p01
4e6ebf2de0 Optimized putBinaryImageData for GRAYSCALE_1BPP
The following changes make putBinaryImageData 2.2x faster.

* Use a Uint32Array to draw whole pixels instead component by component

* Unroll the inner most loop

* Added lazy PDFJS.hasCanvasTypedArrays, PDFJS.isLittleEndian and compatibility
Uint32ArrayView for browsers using the old CanvasPixelArray
2014-03-26 14:05:59 +01:00
Yury Delendik
9a36184dfa Merge pull request #4511 from prometheansacrifice/parsing-goodytwoshoes-pdf
Fix for #3181: jbig2 encoding for number of instances greater than 1
2014-03-26 07:28:06 -05:00
Yury Delendik
26d57a5c9c Merge pull request #4517 from yurydelendik/jpgjs24
Fixes for small colour variations in tests
2014-03-25 20:38:14 -05:00
Thorben Bochenek
7bf0987810 Fixes for small colour variations in tests
https://github.com/notmasteryet/jpgjs/pull/24
2014-03-25 19:04:02 -05:00
Jonas Jenwald
f6cfab0061 [Firefox] Stop importing default_preferences.js as a module and include it instead 2014-03-26 00:37:32 +01:00
Yury Delendik
dbbe702be5 Merge pull request #4501 from Snuffleupagus/firefox-lazy-load-network
[Firefox] Lazy load network.js in PdfStreamConverter.js
2014-03-25 18:11:24 -05:00
Manas (prometheansacrifice)
3025445cbe Fix for #3181: jbig2 encoding for number of instances greater than 1 2014-03-24 11:05:07 +05:30
Jonas Jenwald
42679e1f8b Merge pull request #4509 from Snuffleupagus/lint-curly
Update lint config to enforce braces for single line statements
2014-03-23 12:27:35 +01:00
Jonas Jenwald
a08acc899d Update lint config to enforce braces for single line statements 2014-03-23 12:24:41 +01:00
Jonas Jenwald
e3b830e63c Merge pull request #4505 from timvandermeij/evaluator-syntax
Making src/core/evaluator.js adhere to the style guide
2014-03-23 12:22:09 +01:00
Tim van der Meij
8863ee5d7b Merge pull request #4507 from Snuffleupagus/src-core-braces
Fix coding style in src/core
2014-03-22 22:50:17 +01:00
Tim van der Meij
46f01600ef Merge pull request #4508 from Snuffleupagus/extension-firefox-braces
Fix coding style in extensions/firefox
2014-03-22 22:40:14 +01:00
Jonas Jenwald
2b5fb59b67 Fix coding style in extensions/firefox/bootstrap.js 2014-03-22 21:48:00 +01:00
Jonas Jenwald
597d388930 Fix coding style in extensions/firefox/tools/l10n.js 2014-03-22 21:45:08 +01:00
Jonas Jenwald
6883362a84 Fix coding style in src/core/stream.js 2014-03-22 21:21:01 +01:00
Jonas Jenwald
67b5c8868c Fix coding style in src/core/worker.js 2014-03-22 20:59:16 +01:00
Jonas Jenwald
75de115938 Fix coding style in src/core/font_renderer.js 2014-03-22 20:49:47 +01:00
Jonas Jenwald
131a16b65e Fix coding style in src/core/core.js 2014-03-22 20:49:46 +01:00
Jonas Jenwald
53bbdcb0a1 Fix coding style in src/core/chunked_stream.js 2014-03-22 20:49:46 +01:00
Tim van der Meij
8355b5185d Merge pull request #4503 from Snuffleupagus/fonts-braces
Fix coding style in src/core/fonts.js
2014-03-22 20:47:21 +01:00
Tim van der Meij
c6a06c0f16 Making src/core/evaluator.js adhere to the style guide 2014-03-22 19:15:51 +01:00
Jonas Jenwald
66e243f506 Fix coding style in src/core/fonts.js 2014-03-22 16:19:07 +01:00
Jonas Jenwald
2017f7925e [Firefox] Lazy load network.js in PdfStreamConverter.js 2014-03-21 17:39:55 +01:00
Yury Delendik
026d58e9a4 Merge pull request #4497 from yurydelendik/jpgjs22
jpgjs performance improvements
2014-03-21 11:23:19 -05:00
Thorben Bochenek
2d99ff3f37 Fix for the offByOne-error and small performance optimisations 2014-03-21 09:16:40 -05:00
Yury Delendik
cebf7836f4 Simulate support of the Int8Array for IE9 2014-03-20 18:50:34 -05:00
Thorben Bochenek
03892a85c2 jpgjs performance improvements
see https://github.com/notmasteryet/jpgjs/pull/22
2014-03-20 18:02:08 -05:00
Brendan Dahl
1416eca164 Merge pull request #4493 from yurydelendik/issue4491
Fixes ignoring of the escaped CR LF
2014-03-20 14:57:24 -07:00
Jonas Jenwald
572050064d Merge pull request #4452 from timvandermeij/core-syntax
Making src/core/{image,obj,parser}.js adhere to the style guide
2014-03-20 22:44:23 +01:00
Tim van der Meij
284288f1d0 Making src/core/{image,obj,parser}.js adhere to the style guide 2014-03-20 20:28:22 +01:00
Yury Delendik
20a91bcdbf Fixes ignoring of the escaped CR LF 2014-03-20 11:50:12 -05:00
Yury Delendik
878a123e47 Merge pull request #4478 from nnethercote/plain-fnArray
Use a vanilla array for fnArray
2014-03-20 10:30:29 -05:00
Brendan Dahl
10deadd416 Merge pull request #4453 from nnethercote/charToGlyph
Add a cache for glyphs
2014-03-19 16:30:02 -07:00
Yury Delendik
1801fb2c37 Merge pull request #4474 from chriskr/draw-image-subpixel-support
Introduce paintSolidColorImageMask command to handle 1x1 solid image
2014-03-19 14:31:15 -05:00
Jonas Jenwald
b7545e154e Merge pull request #4488 from alexandrevicenzi/syncptBRtranslations
Sync pt-BR translations with l10n-mozilla-aurora
2014-03-19 18:17:52 +01:00
Alexandre Vicenzi
b4ca084d1f Sync pt-BR translations with l10n-mozilla-aurora 2014-03-19 13:58:21 -03:00
Yury Delendik
305274cd45 Merge pull request #4481 from bthorben/refactor/pdf_manager.js
refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
2014-03-19 10:33:42 -05:00
Christian Krebs
543117dd0e Added TC for issue 4436 2014-03-19 13:37:53 +01:00
Christian Krebs
fc9edfcf76 Introduce paintSolidColorImageMask command to handle 1x1 solid image masks
See https://github.com/mozilla/pdf.js/issues/4436 for details
2014-03-19 13:27:59 +01:00
Thorben Bochenek
c547f17ee5 Add Test for PDFDocumentProxy_getPageIndex 2014-03-19 10:17:58 +01:00
Thorben Bochenek
0fa44d7233 refactor src/core/pdf_manager.js: rename pdfModel to pdfDocument
Rename pdfModel to pdfDocument to let the name closer resemble what the
variable actually holds
2014-03-19 09:43:16 +01:00
Yury Delendik
329d0ec30b Merge pull request #4464 from bthorben/issue#4461
Fixes pages without Resources in their dictionary
2014-03-18 13:00:21 -05:00
Thorben Bochenek
1d663876b1 Add load test for Issue #4461 2014-03-18 14:10:44 +01:00
Thorben Bochenek
8edebc797b Refactor and fix style of core.js 2014-03-18 14:10:44 +01:00
Thorben Bochenek
1ddb019449 Fix Issue #4461: Pages without \Resources in their dictionary fail to load
When no "\Resource" entry could be found return an empty dictionary
2014-03-18 14:10:44 +01:00
Nicholas Nethercote
292b96a0bf Make fnArray always be a plain array.
This makes the code much simpler, and the extra memory use is tiny -- a vanilla
1000 element array is only 4000 bytes larger than a Uint32Array of the same
size.
2014-03-17 17:48:53 -07:00
Nicholas Nethercote
42d175efd4 Fix some indenting within OperatorList. 2014-03-17 17:11:40 -07:00
Brendan Dahl
1802ffffb8 Merge pull request #4447 from nnethercote/object-reduction
Allocate fewer objects
2014-03-17 12:50:23 -07:00