p01
27d532efeb
Optimized PDFImage_undoPreblend
11 years ago
Thorben Bochenek
e8f0700bfa
Move the colour conversion to jpg.js
...
Benchmarking shows that this improves performance for the invitation document
from https://github.com/mozilla/pdf.js/issues/3809 by 35%
11 years ago
Thorben Bochenek
e7fe45a5c4
Refactor jpg.js and include forceRGBoutput, correct style of image.js
...
This refactors getData to be more readable and extracts all the color
conversion algorithms to their own functions. The resulting code was then
cleaned up.
This also introduces a flag `forceRGBoutput` to getData, that allows to always
get the data as a `width * height * 3` bytes long RGB buffer
11 years ago
p01
8f9bd33a57
PDFImage_resize: copy in place with alpha and ~5x speed up
11 years ago
fkaelberer
11f565547c
Fix corrupted images #4649
11 years ago
fkaelberer
04602c8a5e
Less copying in the JPX coder, merged and rebased
11 years ago
Rob Wu
2e97c0d085
Remove some unused variables from src/
...
Only obviously useless, local variables have been removed.
11 years ago
Yury Delendik
a00f854848
Refactors buildImage to use Promise; don't draw bad images
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
fkaelberer
2982de8f33
Use Stream instead of byte array access
11 years ago
fkaelberer
1ccc8a64b7
Read color info from JPX stream
...
Fix colors problem #4540 + minor cleanup
fix lint warnings
11 years ago
Tim van der Meij
284288f1d0
Making src/core/{image,obj,parser}.js adhere to the style guide
11 years ago
Nicholas Nethercote
00c1cff405
Transfer image masks when when possible, instead of copying.
11 years ago
Nicholas Nethercote
cb5bb0cec7
Fix mask handling when some bytes are missing.
11 years ago
Basil A. Zabairatsky
555d33ffc7
Support for the image mask in higher resolution than the image itself
11 years ago
fkaelberer
eef5ed5c11
Optimizations for 1bpc images
11 years ago
Nicholas Nethercote
a2fe30ff38
Use RGB_24BPP form for all images lacking alpha data.
11 years ago
Nicholas Nethercote
f30babde58
Transfer GRAYSCALE_1BPP and RGB_24BPP arrays when possible.
11 years ago
Nicholas Nethercote
fdb7c218da
Use a cache to minimize the number of Name objects.
11 years ago
Nicholas Nethercote
42cbb5b440
Introduce ImageKind constants.
11 years ago
Nicholas Nethercote
4e1f92a893
Clean up putBinaryImageData().
11 years ago
Nicholas Nethercote
f62c1c469f
Special-case 24-bit RGB image-handling.
11 years ago
Nicholas Nethercote
a966909754
Reduce memory consumption of simple black and white images.
11 years ago
Nicholas Nethercote
0685214a77
Don't create the RGB buffer for images that don't need resizing.
11 years ago
Nicholas Nethercote
c044652320
Remove unneeded srcOffset arguments from createRgbBuffer.
11 years ago
Nicholas Nethercote
3de5d6ad0c
Don't create the opacity buffer for images that lack a mask.
11 years ago
Nicholas Nethercote
3f533a1cb0
Use a more compact typed array to pass the image mask from the worker to the main thread.
11 years ago
Yury Delendik
5bf3e44e30
Introduces LegacyPromise; polyfills DOM Promise
11 years ago
Brendan Dahl
2228343f77
Only trigger warning bar on certain unsupported features.
11 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
Yury Delendik
419bee1314
Takes SMask's preblending in account
12 years ago
Yury Delendik
339dc65082
Removes getImageData from canvas.js
12 years ago
Brendan Dahl
93b99e7352
Fix where image component decoding takes place.
12 years ago
Yury Delendik
5cf0d8fa80
Enforces maxlen for jshint
12 years ago
Jon Buckley
f883a1f40f
Issue #2008 - Fix lint errors for src/image.js
12 years ago
Yury Delendik
d71c702dcf
Removes "too many inline images" limit
13 years ago
Yury Delendik
0029b34d45
Refactors getRgb and makeCssRgb calls; reduces amount of created objects
13 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Brendan Dahl
d26ecff294
Reduce math for color key mask.
13 years ago
Brendan Dahl
19fa6a5260
Adds support for color key mask.
13 years ago
Yury Delendik
51b2587340
Copy decoded image data and keeps non-decoded pixes as transparent
13 years ago
sbarman
5cbe3a517e
Undo removal of Mode line
13 years ago
sbarman
7c48297794
Adding call to resolve unfulfilled promise
13 years ago
sbarman
c900dfeced
Updated lint errors
13 years ago
sbarman
dd14b3051e
Fix for issue #1796
13 years ago
Brendan Dahl
2c49cab3a1
Fixing names.
13 years ago
Kalervo Kujala
99440ab691
Refactor class method names.
...
Also move functionality to more logical place in canvas.js and jpx.js.
13 years ago
Brendan Dahl
8a45177be0
Make Dict handle all the fetching of Refs.
13 years ago
gigaherz
9abbce021f
Undo comment changes.
13 years ago
gigaherz
c6d7e654ee
Replace variables named 'char'=>'character', 'byte'=>'octet' and field '.private'=>'.privateData'. This allows pdf.js to compile with Google's Closure Compiler.
13 years ago