summaryrefslogtreecommitdiff
path: root/core/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2016-05-12Simplified some code (#596)Taneli Huuskonen2-46/+23
* Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Cleaning up Added a private enum and changed some names to improve readability. Also some trivial cosmetic changes. * Further cleanup of Code128 writer test Removed a private one-liner method used exactly once, alphabetized imports. * Simplify conversion RGB -> luminance Removed testing every pixel for greyness in RGBLuminanceSource, as it did not appreciably change the speed of converting a greyscale image and slowed down the conversion of a colour image by a few percent. Besides, there was no need to treat every row separately; the total number of pixels was enough. * Minor improvements to BitArray Simplified some code, added more accurate error checking, and corrected small inaccuracies in comments.
2016-05-08Fix for bug #593Taneli Huuskonen1-16/+71
* Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Cleaning up Added a private enum and changed some names to improve readability. Also some trivial cosmetic changes. * Further cleanup of Code128 writer test Removed a private one-liner method used exactly once, alphabetized imports.
2016-05-08Revert inadvertent change to non-private APISean Owen1-1/+1
2016-05-08Minor changes from inspectionSean Owen5-14/+9
2016-05-05Cleaned up previous commitTaneli Huuskonen1-1/+1
Following Sean Owen's suggestions, I cleaned up my code in the Aztec decoder and its tests as follows: 1. Made convertBoolArrayToByteArray() package-private. 2. Replaced my own assertEqualByteArrays() with existing assertArrayEquals(). 3. Replaced C-style array declarations with more Javaish ones.
2016-05-05Aztec decoder returns raw bytesTaneli Huuskonen1-1/+24
The Aztec decoder now packs the code bits into bytes and returns them as "raw bytes", even though the error correction codes and stuffing have been already removed. Also added a couple of tests for the byte-packing function.
2016-04-20Fix spelling mistake in error messageAlex Hatzenbuhler1-1/+1
2016-01-21Update plugins, dependencies, and clean up small code inspection issuesSean Owen14-39/+43
2015-12-03Update ITFWriter.javaKbhredsox1-2/+2
Fixed spelling of text within "invalid input" exception.
2015-12-02QRCode Encoder: Support NUMERIC/ALPHANUMERIC Mode in Shift_JISsato yoshiyuki1-2/+2
2015-11-11Closes issue #496 : correct checksum for certain Code 39 inputsSean Owen2-7/+8
2015-10-19Added a Code 93 encodermmagician3-2/+121
2015-10-05Alter many encode hints to accept String equivalentsSean Owen7-42/+43
2015-09-23Fix two rare crashes from bad input / stateSean Owen1-1/+5
2015-09-04Add support encoding UPC-E formatRX12264-2/+111
2015-09-01Ignore additional PDF417 barcode rowsGuenther Grau2-2/+4
Some barcode generators (e.g. Okapi) seem to generate additional barcode rows at the end of the barcode, which can be decoded as valid barcode rows, but actually contain garbage. The barcode metadata states that these additional rows are not part of the barcode. So we ignore those addional rows when parsing the barcode. This could potentially also happen (though quite unlikely) if data after the barcode looks like a barcode row.
2015-08-14Merge pull request #441 from gredler/pdf417-error-correction-levelSean Owen2-3/+13
PDF417Writer shouldn't ignore ERROR_CORRECTION hint
2015-08-14PDF417Writer shouldn't ignore ERROR_CORRECTION hintDaniel Gredler2-3/+13
2015-07-21Issue #428 Fix Code 93 escapes above %FSean Owen1-2/+12
2015-07-15Set PDF_417 lineThickness to 1Andreas Wenger1-3/+2
- fine-grained scaling for PDF_417 generation
2015-07-02Merge pull request #412 from strguntbr/multibyteFixSean Owen1-1/+1
Fixed substring call
2015-07-02Fixed substring callMarcus Winkler1-1/+1
2015-06-06Remove spurious stack trace from singleton exception, and various minor editsSean Owen5-5/+13
2015-05-20Fixed multibyte charset problem when encoding PDF417 with Compaction AUTOMarcus Winkler1-15/+11
2015-05-15Revert another change that causes a whirr failure, fix rat warnings, and one ↵Sean Owen6-19/+12
more error on Android generated files
2015-05-15Enable RAT check in build; enable checkstyle; fix some violations; update ↵Sean Owen12-59/+40
Jetty/Android plugin
2015-05-13Fixes from coveritySean Owen1-1/+1
2015-05-03Update plugins (now requires Maven 3.2); fix javadoc warningSean Owen1-0/+11
2015-05-03Revert "minSize from provided sizes"Sean Owen1-1/+1
2015-02-23Remove system-dependent line separator logic in BitMatrixSean Owen1-2/+6
2015-02-07Additional fix for issue #300 (HT micjahn)Sean Owen1-2/+3
2015-02-04Issue #300 : simplify X12 encodation at end of input stream to fix unlatch ↵Sean Owen1-9/+4
issue. HT micjahn
2015-01-15Fix PDF417 numeric encoding grouping index checkBo Xu1-1/+1
2015-01-11Tiny fixes from coverity; fix SuppressWarnings for deprecation; just one ↵Sean Owen1-2/+2
Java 7 build now
2014-12-18Supplement for #271 to deprecate alternative min/max size hintSean Owen2-0/+9
2014-12-17minSize from provided sizesZavael1-1/+1
create minSize Dimension from provided width and height
2014-12-13Cleanups while looking at issue #268Sean Owen1-5/+8
2014-12-05Closes #262 : fix parsing of Data Matrix with dimension >= 144Sean Owen1-2/+3
2014-10-31Follow up on commit for issue #242Sean Owen2-11/+12
2014-10-27squash changesMark5-8/+144
2014-09-02Fix tiny java 8 javadoc warningsSean Owen1-0/+1
2014-08-18Issue #202 correctly report absolute ResultPoint coordinatesSean Owen1-9/+24
2014-07-30Issue #197 : handle escaped backslash preceding terminatorSean Owen1-4/+16
2014-07-28Avoid another NPE on null ResultPointSean Owen1-0/+3
2014-07-26Support multiple "to", and CC and BCC, throughout the email result API.Sean Owen4-28/+80
2014-07-24Avoid NPE when underlying result point is null, for some reasonSean Owen1-1/+3
2014-07-04Issue #179 : add default start/end guard to Codabar if not specified, for ↵Sean Owen1-17/+29
symmetry with decoder
2014-06-29Touch up whitespace and other small issues from inspectionSean Owen2-2/+2
2014-06-11Issue #166 let byte compaction proceed in cases where it 'thought' text ↵Sean Owen1-12/+0
compaction would take over, but it had not
2014-06-10Issue #166 handle a shift to byte mode properly outside of a compaction mode ↵Sean Owen1-1/+3
handler