"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/oned/rss/expanded/decoders/AI01393xDecoder.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

AI01393xDecoder.java  (zxing-zxing-3.4.1):AI01393xDecoder.java  (zxing-zxing-3.5.0)
skipping to change at line 63 skipping to change at line 63
encodeCompressedGtin(buf, HEADER_SIZE); encodeCompressedGtin(buf, HEADER_SIZE);
int lastAIdigit = int lastAIdigit =
this.getGeneralDecoder().extractNumericValueFromBitArray(HEADER_SIZE + G TIN_SIZE, LAST_DIGIT_SIZE); this.getGeneralDecoder().extractNumericValueFromBitArray(HEADER_SIZE + G TIN_SIZE, LAST_DIGIT_SIZE);
buf.append("(393"); buf.append("(393");
buf.append(lastAIdigit); buf.append(lastAIdigit);
buf.append(')'); buf.append(')');
int firstThreeDigits = this.getGeneralDecoder().extractNumericValueFromBitAr ray( int firstThreeDigits = this.getGeneralDecoder().extractNumericValueFromBitAr ray(
HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE, FIRST_THREE_DIGITS_SIZE); HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE, FIRST_THREE_DIGITS_SIZE);
if (firstThreeDigits / 100 == 0) { if (firstThreeDigits / 100 == 0) {
buf.append('0'); buf.append('0');
} }
if (firstThreeDigits / 10 == 0) { if (firstThreeDigits / 10 == 0) {
buf.append('0'); buf.append('0');
} }
buf.append(firstThreeDigits); buf.append(firstThreeDigits);
DecodedInformation generalInformation = this.getGeneralDecoder().decodeGener alPurposeField( DecodedInformation generalInformation = this.getGeneralDecoder().decodeGener alPurposeField(
HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE + FIRST_THREE_DIGITS_SIZE, null) ; HEADER_SIZE + GTIN_SIZE + LAST_DIGIT_SIZE + FIRST_THREE_DIGITS_SIZE, nul l);
buf.append(generalInformation.getNewString()); buf.append(generalInformation.getNewString());
return buf.toString(); return buf.toString();
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)