Jonas Jenwald
4626fc8342
Enable the `spaced-comment` ESLint rule
...
Please see http://eslint.org/docs/rules/spaced-comment .
Note that the exceptions added for `line` comments are intended to still allow use of the old preprocessor without linting errors.
Also, I took the opportunity to improve the grammar slightly (w.r.t. capitalization and punctuation) for comments touched in the patch.
8 years ago
Jonas Jenwald
3820946301
Fix (most) errors reported by the `no-multi-spaces` ESLint rule
...
http://eslint.org/docs/rules/no-multi-spaces
8 years ago
Tim van der Meij
df81b832bb
Remove unused variables
9 years ago
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
9 years ago
Manas
a2ba1b8189
Uses editorconfig to maintain consistent coding styles
...
Removes the following as they unnecessary
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
10 years ago
fkaelberer
8013100ab8
avoid out of range array access in JBIG2 decoder
10 years ago
fkaelberer
5b83e0b9a3
Faster JBIG2 bitmap decoding
11 years ago
Tim van der Meij
4899e9e54f
Use strict equalities in src/core/jbig2.js
11 years ago
fkaelberer
c03cf20d37
Fix JBIG2 decoding issue #5026
11 years ago
fkaelberer
8c38c2cbe3
Simplify Jbig2Image.decodeInteger()
11 years ago
fkaelberer
b06c10cbbd
rename getUint32 to getInt32 and collect readInt*() in util.js
11 years ago
Tim van der Meij
df91acf239
Fixes lint warning W004 in src/core
11 years ago
Manas (prometheansacrifice)
3025445cbe
Fix for #3181 : jbig2 encoding for number of instances greater than 1
11 years ago
p01
2b6cb317db
Optmized decodeRefinement, moving the prediction error outside the inner loop
...
There is no need to slow down the inner loop with a test for ltp as it can only
change if prediction is true in which case it only changes in the outer loop.
11 years ago
p01
840d9d40b6
Reuse the row Uint8Array in JBIG2's decodeBitmap
11 years ago
p01
b2b3836683
Process only once the offset and starting mask JBIG2's drawBitmap
11 years ago
p01
0bca56cbb2
Use changingTemplateX, Y and Bit in JBIG2's decodeBitmap
11 years ago
p01
e2a4328ff2
Optimized bounding box tests in JBIG2's decodeBitmap
11 years ago
p01
2a9fe573c0
Nest JBIG2 prediction if statements together
...
ltp can only become truthy if predition is true.
11 years ago
p01
02a5f9435a
More bit friendly decodeIAID and decodeInteger
11 years ago
p01
e862c64bb8
JBIG2 20% faster SimpleSegmentVisitor_drawBitmap
...
Moved the switch(combinationOperator) outside the width and height loops
Check bitmap[i][j] before applying the switch(combinationOperator)
11 years ago
fkaelberer
7b5b5178ef
Extract duplicate arithmetic decoder to own class
11 years ago
Tim van der Meij
2712a5a45a
Making src/core/jbig2.js adhere to the style guide
11 years ago
fkaelberer
abcc72a173
Faster JBIG2 decoding
11 years ago
Mathieu 'p01' Henri
135660c8ba
Fill the initial JBIG2 buffer with 0xFF only if defaultPixelValue is set
...
Per the TypedArray specification, ArrayBuffers are initialized with zeros.
http://www.khronos.org/registry/typedarray/specs/latest/#5
11 years ago
Sriram
f6eee819e2
Transposed feature for text decoding in jbig2
12 years ago
biggert
88f1506ef8
Added support for JBIG2 extension segment
12 years ago
Brendan Dahl
5ecce4996b
Split files into worker and main thread pieces.
12 years ago
fkaelberer
0c10b76aa3
Faster JBIG2 decoding for Firefox
12 years ago
Yury Delendik
4d50965434
Fixes template 1 for decoding
12 years ago
Yury Delendik
1d4372775d
JBIG2: finds end of segment when length is not specified
12 years ago
Yury Delendik
cbe829228e
Fixes symbols positioning in JBIG2
12 years ago
Jon Buckley
bc94a4d353
Issue #2008 - Fix lint errors for src/jbig2.js
12 years ago
mduan
317db2e7c6
Do not error when an EndOfPage segment is encountered in jbig2
12 years ago
Brendan Dahl
332ae4ce41
Change to the Apache v2 license.
13 years ago
Yury Delendik
f9f715b656
Adds lossless segment types; fixes generic region prediction flag
13 years ago
Yury Delendik
25d4467fa3
Fixes .length and capitalization nits
13 years ago
Yury Delendik
f014481149
Replaces throw to error() and uses shadow()
13 years ago
Yury Delendik
699abbd4f2
Removing huffman tables; decoding context refactoring
13 years ago
Yury Delendik
2e5414cd18
Fixes template 2; implements end of stripe
13 years ago
Yury Delendik
aa877e1d40
Implements refinement
13 years ago
Yury Delendik
e09eb529d9
Adds basic symbol dictionary and text region.
13 years ago
Yury Delendik
95bc99f698
Initial JBIG2 code
13 years ago