Julien Nabet
3257a5c0af
cppcheck: fix reports
...
[backend/bmp.c:133]: (error) Memory leak: bitmap
[backend/bmp.c:126]: (error) Memory leak: bitmap
[backend/composite.c:464]: (error) Array index -1 is out of bounds.
[backend/composite.c:507]: (error) Array index -1 is out of bounds.
[backend/dmatrix.c:962]: (style) Redundant condition: i!=0. 'i==0 || (i!=0 && binary[i-1]!='b')' is equivalent to 'i==0 || binary[i-1]!='b''
[backend/raster.c:122]: (error) Memory leak: rotated_pixbuf
[backend/raster.c:506]: (error) Memory leak: pixelbuf
[frontend/main.c:273]: (error) Uninitialized variable: format_string
[frontend_qt/exportwindow.cpp:103]: (style) Array index 'j' is used before limits check.
2017-07-01 09:49:47 +01:00
Robin Stuart
0d6716a773
Add method for dynamically checking version info
...
Suggestion by aragon@phat.za.net for python-zint
2017-07-01 09:06:47 +01:00
Robin Stuart
6306228fed
Remove unnecessary debug code
2017-06-18 13:03:25 +01:00
Robin Stuart
a085bca168
Revion of ECI number encoding
2017-06-18 13:00:22 +01:00
Robin Stuart
c0e95684a9
Reduce size of Code 49 bit pattern table (no change of functionality)
2017-06-10 10:45:42 +01:00
Robin Stuart
17be0440cc
Review of data types to reduce memory usage (no change of functionality)
2017-06-10 10:08:27 +01:00
Robin Stuart
3f7f909644
Simplify PDF binary handling, remove TTF array (no change of functionality)
2017-06-09 22:00:22 +01:00
Robin Stuart
dd2f9e65ba
Further tweaks to binary conversion in QR Code
2017-06-06 21:31:03 +01:00
Robin Stuart
47a64047af
Harmonise binary conversion and expand ECI support in QR Code
2017-06-06 21:11:11 +01:00
Robin Stuart
241bcedaa1
Remove unnecessary estimate of binary bitlength
2017-06-05 20:05:58 +01:00
Robin Stuart
30272dd955
Use more accurate guess of bit length when calculating smallest available version
...
Fixes #66 , Bug report by jthie
2017-06-05 19:17:22 +01:00
Robin Stuart
7b53fc3469
Include version information in UPNQR symbols
...
Fixes #65 , Bug report by Primož Cerar
2017-05-30 08:40:08 +01:00
Robin Stuart
ffcfe965d1
Merge Update Visual Studio sln
...
Code by Cosmic Marc https://sourceforge.net/u/cosmarc/
cd65154a36
/
Fixes https://sourceforge.net/p/zint/code/merge-requests/2/
2017-05-29 11:11:04 +01:00
Robin Stuart
b3a1b24d18
help the compiler create more efficient code
...
Patch from Michael <virtual_worlds@gmx.de>
Full text: As usual I have modified only minor things to remove warnigs when compiled as C++ code, have added some const-specifiers where possible to help the compiler create more efficient code and added some static-specifiers to make functions invisible to other modules.
2017-05-29 10:43:47 +01:00
Cosmin Marc
cd65154a36
Update gitignore.
...
Add to libzint.vcxproj missing files.
Fix missing include in emf.c.
Add x64 configuration.
Change paths to point to extern folder for external libs(lipbng, zlib).
Updated version in rc file.
2017-05-25 20:17:43 +03:00
Robin Stuart
b46bc1f45e
Accept UFT-8 input data for UPNQR
2017-05-21 09:20:03 +01:00
Robin Stuart
b426877a4f
Add new symbology UPNQR
2017-05-20 23:37:50 +01:00
Robin Stuart
847fa6f332
Update DotCode to latest draft (April 24, 2017)
2017-05-19 21:30:31 +01:00
Robin Stuart
a1327cbd0d
Bugfix: Insertion of unlatch character in EDIFACT mode will unlatch immediately, not at the end of the 24-bit block
...
Fixes #60 , Ref: ISO para 5.2.8.2.
Bug report thanks to ice4x800@sf
2017-05-14 18:46:43 +01:00
Robin Stuart
4c8de6399f
Deduplicate GB18030 lookup table
2017-05-14 14:43:49 +01:00
Robin Stuart
6d5fcd14f8
Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
2017-05-14 08:15:55 +01:00
Robin Stuart
19c3755ed0
Simplify conversion to binary with common function
...
No change to functionality
2017-05-14 08:15:08 +01:00
Harald Oehlmann
c52032acb2
Update win c6 makefile and tcl backend to version 2.6.0
2017-05-12 14:16:59 +02:00
Robin Stuart
19ba8a34c4
Update to version 2.6.0 and update copyright to 2017
2017-05-11 21:14:38 +01:00
Robin Stuart
eef59d150e
Prevent control characters from corrupting SVG
...
Bug fix by Maikel Houthuijzen
2017-05-11 20:15:10 +01:00
Robin Stuart
1ec0873caa
Extend Unicode support in Han Xin to Supplementary planes (>= U+10000)
2017-04-23 20:15:50 +01:00
Robin Stuart
92f02c8a67
Kanji works better if data is read to symbol :)
2017-04-21 20:38:19 +01:00
Robin Stuart
a8077535b2
Correct Kanji processing in QR Code
...
Bugfix by Milton Neal <miltonneal@bigpond.com>
2017-04-21 19:55:17 +01:00
Robin Stuart
6f4610aa98
Add verbose mode to output debug info without recompiling
2017-04-11 10:05:38 +01:00
Robin Stuart
5acbffff0d
Consistently throw an error if data does not fit in specified size symbol
...
See ticket #57
2017-04-11 09:26:39 +01:00
Robin Stuart
1ac5298190
Perform calculations on real rather than estimated binary length...
...
...and get correct values for ECC encoding from table D1.
Bugfixes by Milton Neal
2017-04-10 08:06:53 +01:00
Harald Oehlmann
f7753564cf
Codablock: Code A/B character set change corrected
2017-04-03 11:47:39 +02:00
Harald Oehlmann
7494a241ca
Bug fix for Ticket 56: Codablock F: [StartA] was coded as [StartA][SHIFT] resulting in wrong Code and illegal memory access to wrong Code128 pattern
2017-03-30 15:23:14 +02:00
Harald Oehlmann
6bc50a943c
Delete to rectangular DMRE formats 24x32, 24x36, 26x32, 26x40 which will probably not be in ISO/IEC 21741
2017-03-29 19:48:44 +02:00
Harald Oehlmann
480e514754
Make bakcend/dotcode.c, emf.c and tif.c compile with MS-VC6
2017-03-28 18:06:08 +02:00
Robin Stuart
939d4de4f0
Enforce height of PDF417 rows
...
Fixes #55 , Bugfix by Galen Rice
2017-03-17 17:08:50 +00:00
Boris Zentner
eb1d246a4d
The backend/library should not print error messages.
...
Just return the error in errtxt.
2017-03-11 08:39:22 +00:00
Boris Zentner
22e06ee05a
Test only the current row. Do not check bits outside of the barcode or in the next row.
2017-03-11 08:39:10 +00:00
Robin Stuart
7bbb7072b4
Allow X in Telepen Numeric
...
Bugfix by Milton Neil
2017-03-04 10:00:03 +00:00
Robin Stuart
b2123f78a3
Update PZN to new (as of 2013) PZN-8 standard
...
Bug fix by Milton Neil
2017-03-04 07:44:32 +00:00
Robin Stuart
726fb64c02
Fix typo in mixed mode string
...
Bug report by Milton Neil
2017-02-25 07:56:20 +00:00
Robin Stuart
cddf469ac6
Allow encoding HT FS GS RS and CRLF in code set B
...
Bug reported by Milton Neil <miltonneal@bigpond.com>
2017-02-19 00:09:24 +00:00
Robin Stuart
6a69e97dfe
Improved pad character handling routine
...
Bugfix and code by Milton Neil <miltonneal@bigpond.com>
2017-02-18 22:17:49 +00:00
Boris Zentner
81cadc3cf9
Fix buffer over run, source is similar to local_source but smaller.
...
So it might be possible to find a plus character in random data behind source.
2017-02-14 19:08:34 +00:00
Boris Zentner
45633751ee
Fix of by one error and check only data. Not the zero at the end.
2017-02-14 19:08:20 +00:00
Robin Stuart
025a485ddf
Pad only with character 109 when finishing in binary mode
...
Bug report by Milton Neil
2017-02-14 18:01:48 +00:00
Robin Stuart
a77e448df5
Correctly determine symbol size accoding to section 5.2.2
...
Bug fix by Milton Neil <miltonneal@bigpond.com>
2017-02-14 11:04:58 +00:00
Boris Zentner
319c7791bc
Fix of by one error in maxi_text_process
2017-01-26 19:44:20 +00:00
Robin Stuart
ecb10e6b7d
Don't initialise roots beyond end of field
...
AKA don't use code from draft standards without testing it!
Bug reported by Christian Sakowski
2017-01-22 19:12:11 +00:00
Robin Stuart
f4852b11a8
Calculate addresses correctly if last TIFF strip is full
2016-12-31 10:44:09 +00:00
Robin Stuart
ec8cfcbb76
Add TIFF output option
2016-12-30 20:25:58 +00:00
Robin Stuart
d1e406b7d2
Add enhanced metafile format (EMF) support
2016-12-23 16:48:03 +00:00
Robin Stuart
e7858dfe98
Add version information to zint.h and increment release version
...
Relates to #51
2016-12-10 09:04:06 +00:00
Robin Stuart
6115a3f8b6
Avoid trying to encode non-EDIFACT characters in EDIFACT mode
...
Bug report by brunt, revokes commit [dc3626], tickets #44 and #50
2016-11-26 20:10:51 +00:00
Robin Stuart
0dc3b60c2b
Counteract inaccuracy of float values in look ahead test
...
Bug report by brunt, ticket #49
2016-11-26 13:58:54 +00:00
Robin Stuart
08aefa6aea
Include string terminator when keeping track of b256 encoded characters
...
bug report and patch by brunt, ticket #48
2016-11-26 11:38:00 +00:00
Robin Stuart
1d503c54fe
Unlatch EDIFACT encodation when buffer is empty
...
bug report and patch by brunt, ticket #46
2016-11-26 11:28:43 +00:00
Robin Stuart
6af035ba98
Unlatch X12 encodation when there are 2 codewords left in the buffer
...
bug report by brunt, ticket #45
2016-11-26 11:18:37 +00:00
Robin Stuart
dc36261030
Force unlatch from EDIFACT on illegal character
...
Bug report and patch by brunt, ticket #44
2016-11-26 09:00:41 +00:00
Robin Stuart
1155683be1
Include last input character in look ahead test
...
Bug and patch by brunt, ticket #43
2016-11-26 08:44:59 +00:00
Robin Stuart
b003627908
Interpret 4-bit codewords as big-endian for error correction
...
affects microQR symbol sizes M1 and M3
bug reported by Milton Neal
2016-11-25 22:21:30 +00:00
Robin Stuart
658cdd7a69
Check for too many codewords after remainder in 144x144 symbols
...
Bug report and patch by brunt, ticket #42
2016-11-25 20:50:35 +00:00
Robin Stuart
886e789090
Add unlatch if C40/Text buffer is empty
...
also don't read binary marker beyond end of input
Relates to #38 and #41
2016-11-22 22:03:28 +00:00
Robin Stuart
a0493a0d0c
Force flush of last two C40 or Text values in buffer
...
Relates to #38
2016-11-22 20:24:33 +00:00
Robin Stuart
4ea35b9082
Revert last commit, and use more standard compliant solution
2016-11-19 10:16:10 +00:00
Robin Stuart
1d4cead56e
Handle partial C40 or Text buffer properly when using Shift characters
...
Relates to ticket #38 created by Brunt
2016-11-17 22:32:06 +00:00
Robin Stuart
a1fd5bd832
Malloc declaration needed for Visual Studio
2016-11-05 21:06:58 +00:00
Robin Stuart
5992bbf6e5
Malloc declaration needed for Visual Studio
2016-11-05 16:46:24 +00:00
Boris Zentner
b13645fd16
Remove non standard #include <malloc.h>
2016-10-30 20:00:09 +00:00
Robin Stuart
184fb71fe5
[PATCH] Remove non standard #include <malloc.h>
2016-10-30 17:43:10 +00:00
Boris Zentner
8851884ea1
Clear symbol->text without a constant.
2016-10-30 17:41:56 +00:00
Boris Zentner
02c0df93e6
sym->row_height is 200 now clear it more reliable.
2016-10-30 17:41:50 +00:00
Boris Zentner
696b99b1d2
Fix typos
2016-10-30 17:41:21 +00:00
Boris Zentner
1911b28865
Fix off by one error in code_49
2016-10-30 17:10:40 +00:00
Boris Zentner
63a252a573
Remove superfluous code
2016-10-30 17:10:36 +00:00
Boris Zentner
bfb4d3284b
nRead is not used on error
2016-10-30 17:10:30 +00:00
Boris Zentner
7ca22f24a4
Remove superfluous code
2016-10-30 17:10:24 +00:00
Boris Zentner
9553e96f8a
Fix of by one errors when searching from right to left.
2016-10-30 17:10:12 +00:00
Robin Stuart
4561a66067
Add identifiers to error messages
...
To ease the debug process
2016-10-28 22:40:40 +01:00
Robin Stuart
d875318b3d
Add option to include check digit in UPC/EAN data, and validate before encoding
...
Fixes #5
2016-10-28 19:43:08 +01:00
Robin Stuart
796af2580f
Make MaxiCode scalable in raster files
2016-10-27 17:50:10 +01:00
Robin Stuart
54c0a858ea
Don't include empty strings in output SVG
2016-10-27 13:47:32 +01:00
Robin Stuart
20c4509ecd
Set fixed row height in Codablock-F
2016-10-27 13:33:19 +01:00
Robin Stuart
5402264ad9
Alterations based on feedback from Wang Yi
2016-10-27 12:35:53 +01:00
Robin Stuart
7ea03123c8
Set minimum row heights
2016-10-27 09:32:12 +01:00
Harald Oehlmann
a57ef2adc8
2016-10-26 HaO Extended HIBC string length to 112 (HIBC 2.6)
2016-10-26 19:34:21 +02:00
Robin Stuart
cfda2067b1
Improved handling of partial row data
...
Bug reported by Edgard Lima and fixed by Milton Neal
2016-10-15 10:54:23 +01:00
Robin Stuart
dd80371b17
Enforce DataBar height restrictions
2016-10-14 18:56:49 +01:00
Robin Stuart
d6a1008ae7
Plot pixel buffer the right way up
2016-10-14 16:08:03 +01:00
Robin Stuart
d3b6c9ec07
Remove typo from Grid Matrix codeword dividing table
...
Bugfix by brunt, Fixes #34
2016-10-09 15:01:16 +01:00
Robin Stuart
ee12f3569b
Correction to special case row handling GS1-DataBar Stacked
2016-10-09 14:10:39 +01:00
Robin Stuart
f145680739
Revoke changes made to pixel buffering in API
2016-10-02 10:45:47 +01:00
Robin Stuart
f8b56002c9
Improved processing of CC-C
2016-09-25 11:09:20 +01:00
Harald Oehlmann
a752f2583f
Codablock F:
...
- Fixed crash for negative planed column count.
- Use a square-symbol if no dimensions given, starting at 9 planed characters
2016-09-20 23:19:31 +02:00
Robin Stuart
9eff5cc63a
Allow adjustment of dot size when in dotty mode
2016-09-18 14:09:58 +01:00
Robin Stuart
b13efe334a
Slight code reduction - use loops when converting to or from binary
2016-09-17 18:22:26 +01:00
Robin Stuart
0dd072437e
Add Codablock options to Studio
...
Also remove divide by zero bug calculating row height
2016-09-17 11:39:01 +01:00
Robin Stuart
c351ed492e
Minor tweaks: Don't allow GS1 in Codablock-F, Don't allow negative height rows, Warn user if using ECI mode
2016-09-14 22:34:59 +01:00
Robin Stuart
b49f3f0255
Fix memory leak in PostScript
...
Also match ZBarcode_Encode prototype with definition
Fixes thanks to Alex Haley <ahaley42@sf>, Ref ticket #33
2016-09-13 21:30:19 +01:00
Harald Oehlmann
343b3b873e
Silence nondefined compiler warnings
2016-09-13 08:16:51 +02:00
Robin Stuart
16511da26d
Improved rendering of seperator bars for Codablock-F
2016-09-12 21:47:40 +01:00
Harald Oehlmann
7b4009d19f
Fixed bugs: C128 arbitrary data, C128 wrong checksum
2016-09-12 15:49:17 +02:00
Harald Oehlmann
2cf489eac2
Make compile with MS-VC6
2016-09-12 13:24:18 +02:00
Robin Stuart
7ae2e68396
Typo--
2016-09-11 08:47:34 +01:00
Robin Stuart
e0402ba434
Consolidate raster image rotation and colour sanity checks
2016-09-11 08:42:31 +01:00
Robin Stuart
71a30a9031
pack structures in portable fashion, now creates valid bitmap headers for Windows
2016-09-10 18:35:45 +01:00
Robin Stuart
6dbf817ffa
Resolve link error LNK2019 in VS
...
Bugfix by Milton Neal <miltonneal@bigpond.com>
2016-09-10 16:33:08 +01:00
Robin Stuart
2c2200a7cb
modifications for VS2015, some
...
additional static/const's and a few bugfixes for HanXin and DotStream.
Patch by Michael <virtual_worlds@gmx.de>
2016-09-05 22:06:50 +01:00
Robin Stuart
8d3abf8440
Suppress warnings for uninitialized values
2016-09-04 16:35:11 +01:00
Robin Stuart
d86ac40b20
Plot Codablock symbols to file and in Studio
2016-09-04 11:04:41 +01:00
Robin Stuart
a7bcef4ef7
Fix various memory leaks
...
Bugfixes thanks to Alex Haley <ahaley42@users.sf.net>
2016-09-03 18:45:09 +01:00
Harald Oehlmann
e6ff154543
Codablock F C128 Codeword generation implemented
2016-08-31 16:29:21 +02:00
Robin Stuart
e862bf076c
Trying to keep multiple machines synchronised really sucks!
2016-08-29 18:46:52 +01:00
Robin Stuart
f89167c30b
Bugfix: Allocate sufficient memory for larger data strings
2016-08-29 18:45:58 +01:00
Robin Stuart
f0d8bb82dc
Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
2016-08-28 16:39:13 +01:00
Robin Stuart
8ccde8ad67
Allow DotCode output in EPS
2016-08-28 16:38:02 +01:00
Robin Stuart
3cf8a142b8
Bugfix: Ouput binding in raster images
...
Also: tidy up use of output_options
2016-08-26 15:13:40 +01:00
Robin Stuart
c6a68dd605
bugfix: Corruption of output_options data
2016-08-26 12:15:54 +01:00
Robin Stuart
542ec7c7a5
When libpng is not found, default to GIF output
2016-08-26 11:44:02 +01:00
Robin Stuart
085ec8477c
Add framework for Codablock
2016-08-24 19:39:39 +01:00
Robin Stuart
4e13b0e95d
Add framework for Codablock
2016-08-24 19:37:49 +01:00
Harald Oehlmann
b527245a5f
Merge branch 'master' of ssh://git.code.sf.net/p/zint/code
2016-08-22 19:08:39 +02:00
Harald Oehlmann
50a48c1294
Silence signed compiler warnings
2016-08-22 19:08:00 +02:00
Robin Stuart
94733dd5f5
Bugfix: increase ECC if there is capacity
...
Bug found by Michael
2016-08-22 18:07:27 +01:00
Harald Oehlmann
3893f6f158
Make compile with MSVC6++
2016-08-22 18:58:32 +02:00
Robin Stuart
eedb4c638a
Expand symbol memory to allow biggest Han Xin without crashing
2016-08-21 21:58:38 +01:00
Robin Stuart
2e11b5f8d3
Bugfix: Crash on setting option_2 for DotCode
...
Bug report by Michael
2016-08-19 18:22:16 +01:00
Robin Stuart
3b366bbbd2
Stop crashing with large DotCode symbols
2016-08-17 17:22:31 +01:00
Robin Stuart
9d1c20201d
Add ECI encoding
2016-08-16 12:43:41 +01:00
Robin Stuart
bcad6504b5
Restrict dotty mode to matrix symbols
2016-08-12 19:30:46 +01:00
Robin Stuart
498fd4151d
Add dot (circle) plotting for raster (PNG/GIF/PCX/BMP) images
2016-08-08 23:18:55 +01:00
Robin Stuart
30b8bebf82
Remove compiler warnings
2016-08-07 21:00:27 +01:00
Robin Stuart
d7fd2dc584
Remove autogenerated makefiles
2016-08-07 20:39:26 +01:00
Robin Stuart
8029dec9c7
Merge Dotcode
2016-08-07 20:28:56 +01:00
Robin Stuart
674a491a56
Dotcode: Add custom height setting and format code
2016-08-07 20:11:51 +01:00
Robin Stuart
0c5f9191e6
DotCode: Place data in symbol and evaluate bitmask
2016-08-06 22:03:36 +01:00
Harald Oehlmann
08c88e85d2
Added gif output
2016-07-28 20:58:33 +02:00
Harald Oehlmann
3939a1ae54
Make compile with MSVC6 (no C99 compatibility)
2016-07-28 10:32:46 +02:00
Robin Stuart
70fb17fcb4
DotCode: Calculate masks and Reed-Solomon error bytes
2016-07-27 12:18:53 +01:00
Robin Stuart
340bcd2833
DotCode: New symbology added and encoding to codewords as set out in Annex F
...
Does not produce DotCode symbols yet
2016-07-25 22:52:29 +01:00
Robin Stuart
804ca24aca
Correct bizarre use of isX12()
...
Bug spotted by Milton Neal
2016-07-25 22:46:26 +01:00
Robin Stuart
118caf10ea
Silence debug output
2016-07-23 19:22:12 +01:00
Robin Stuart
b968073d71
--typo
2016-07-23 19:17:53 +01:00
Robin Stuart
7eaa82bfa1
Improved PCX algorithm, uses less memory
2016-07-23 19:14:57 +01:00
Robin Stuart
babeaec41d
Add ZSoft PCX image file output
2016-07-23 15:08:55 +01:00
Robin Stuart
7e3a56815f
Correct header info
2016-07-22 17:21:40 +01:00
Robin Stuart
c35378acc5
Bugfix: EDIFACT unlatch character not needed for all symbols
...
Ref: ISO 16022 para 5.2.8.2
Bug reported by Daniel Yang
2016-07-22 16:42:39 +01:00
Robin Stuart
8f7cc8d8b1
Remove error in file descriptor
2016-07-19 23:09:08 +01:00
Robin Stuart
08e51cf5bb
Separate PNG and BMP file handling routines and create common framework to allow addition of more output file formats
2016-07-19 23:02:39 +01:00
Robin Stuart
6dcc6af817
Make bitmap size available to API
2016-07-18 20:22:56 +01:00