YAMAMOTO Takashi
9cee399e37
inspect-opencv: Make the display similar to the SDL version
...
* fix color conversion bugs
* use smaller text and thinner lines
2021-08-26 15:33:57 +09:00
YAMAMOTO Takashi
003e1d98f1
inspect_opencv.cxx: Adapt to OpenCV
2021-05-17 08:44:08 +09:00
YAMAMOTO Takashi
633ed29ad9
dbgutil.h: extern "C" for C++
2021-05-17 08:34:18 +09:00
YAMAMOTO Takashi
058d7ab1da
cp inspect.c inspect_opencv.cxx
2021-05-17 08:34:18 +09:00
Claudio Felber
2fd06df8de
Add support for flipped QR-codes in inspect and qrtest tools
2020-09-22 12:18:23 +02:00
Jaap Haitsma
013a8922bb
Fix compiler warning
2020-05-19 19:01:38 -04:00
Daniel Beer
ffc2f9b68a
dbgutil: fix double-free on error in jpeg_finish_decompress.
2017-05-31 17:52:26 +12:00
Daniel Beer
ab341691c9
Add support for ECI decoding.
...
ECI values are decoded and stored in the eci field of struct quirc_data.
Constants of the form QUIRC_ECI_* are defined in quirc.h.
2016-09-23 09:50:59 +12:00
Daniel Beer
a8291391ec
dbgutil: print unknown data type indicators safely.
2016-09-23 09:40:56 +12:00
Daniel Beer
08fe9f7e0f
Fall back to set_strip() on older libpng versions.
...
Latest Debian release right now packages only 1.2.50.
2016-09-06 08:08:58 +12:00
Daniel Beer
5b26248009
Merge pull request #18 from czarkoff/png
...
Fix png image handling
2016-08-16 09:36:49 +12:00
Dmitrij D. Czarkoff
8decf20d4f
Strip alpha channel from PNG images with tRNS chunk
...
When PNG transformations are set up, tRNS chunk is converted to alpha channel
early in the process. Later the decision whether to strip alpha channel or not
is made upon checking (color_type & PNG_COLOR_MASK_ALPHA). Thus alpha channel
created by tRNS chunk conversion does not get stripped.
2016-08-15 15:39:18 +02:00
Dmitrij D. Czarkoff
2e3e80c1ee
Use more accurate bit depth reduction for PNG images
2016-08-15 14:32:17 +02:00
Dmitrij D. Czarkoff
3266bbaf39
Consistant typing for test timing variables
2016-08-15 10:24:01 +02:00
Dmitrij D. Czarkoff
1de1a466b8
Store time in milliseconds
2016-08-15 00:28:24 +02:00
Dmitrij D. Czarkoff
c13db788bb
Use clock_gettime() instead of clock()
...
clock() provides approximation of processor time used, measured in "clocks".
Amount of clock per second varies between 100 (Minix, NetBSD, OpenBSD), 128
(DragonFly BSD, FreeBSD, older versions of MacOS X), 1000 (Windows) and 1000000
(Linux, newer versions of MacOS X, Solaris). The range of these numbers make
conversion to milliseconds (the unit of display in `qrtest`) problematic.
clock_gettime() with its nanosecond time base appears to be a better and more
portable alternative to clock().
2016-08-13 23:14:55 +02:00
Dmitrij D. Czarkoff
894e8c8b2d
Replaced remaining instance of png_infopp_NULL
2016-08-11 01:21:45 +02:00
Dmitrij D. Czarkoff
176ba28362
Fix compatibility with newer libpng
2016-08-11 00:02:38 +02:00
Daniel Beer
d968f0ae33
Merge pull request #11 from kAworu/display-human-readable-data-type
...
dump_data: display a human readable Data type.
2016-07-20 08:24:06 +12:00
Alexandre Perrin
d78123da72
dump_data: display a human readable Data type.
2016-07-18 14:27:17 +02:00
Alexandre Perrin
443bb5576f
PNG_COLOR_TYPE_PALETTE support for inspect and qrtest.
2016-07-18 14:23:08 +02:00
Alexandre Perrin
09cc95b989
check_if_png: clarify comments.
...
Before this patch check_if_png() comment was kind of misleading because
it talked about the behaviour of png_sig_cmp() which isn't the same as
check_if_png().
2016-07-14 16:04:26 +02:00
Daniel Beer
e8005d43c6
dbgutil.c: use C89-compatible variable declarations.
2016-07-13 08:54:52 +12:00
Alexandre Perrin
549f5b2c4d
png support for inspect and qrtest.
2016-07-12 09:34:11 +02:00
Daniel Beer
bc253ec3ea
qrtest: fix filename extension check.
2013-05-29 10:23:23 +12:00
Daniel Beer
b7a6827b54
Fixed possible division by zero in qrtest.
2012-11-13 10:43:36 +13:00
Daniel Beer
a3142bc6b4
Initial commit: version 1.0.
2012-05-04 12:58:42 +12:00