following upstream changes.

This commit is contained in:
ssrlive 2021-08-15 12:14:00 +08:00
parent 9cee8aa181
commit 8a030167e4
64 changed files with 223 additions and 1463 deletions

View File

@ -1,139 +0,0 @@
language: cpp
compiler: gcc
dist: bionic
osx_image: xcode10.3
sudo: required
notifications:
email:
recipients:
- mchehab@kernel.org
on_success: change
on_failure: always
cache:
directories:
- $HOME/.ccache
- $HOME/pbuilder-bases
- $HOME/Library/Caches/Homebrew
- $HOME/AppData/Local/Temp/chocolatey
- /C/tools/msys64
timeout: 1000
matrix:
fast_finish: true
include:
- os: linux
env: TARGET_OS=ubuntu-gtk2
dist: bionic
- os: linux
env: TARGET_OS=ubuntu-gtk3
dist: bionic
- os: linux
env: TARGET_OS=mingw-w64
dist: bionic
- os: linux
env: TARGET_OS=debian-sid
dist: bionic
- os: linux
compiler: clang
env: TARGET_OS=debian-sid
dist: bionic
- os: windows
env: TARGET_OS=pc DIRECT_SHOW="--with-directshow"
- os: windows
env: TARGET_OS=pc DIRECT_SHOW=""
- os: osx
env: TARGET_OS=mac
# power jobs added.
- os: linux
env: TARGET_OS=ubuntu-gtk2
dist: bionic
arch: ppc64le
- os: linux
env: TARGET_OS=ubuntu-gtk3
dist: bionic
arch: ppc64le
- os: linux
env: TARGET_OS=mingw-w64
dist: bionic
arch: -ppc64le
- os: linux
env: TARGET_OS=debian-sid
dist: bionic
arch: -ppc64le
- os: linux
compiler: clang
env: TARGET_OS=debian-sid
dist: bionic
arch: -ppc64le
- os: windows
env: TARGET_OS=pc DIRECT_SHOW="--with-directshow"
arch: ppc64le
- os: windows
env: TARGET_OS=pc DIRECT_SHOW=""
arch: ppc64le
- os: osx
env: TARGET_OS=mac
arch: ppc64le
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
- >-
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
$msys2 pacman --sync --clean --noconfirm;
echo "--tcp-nodelay" >> ${APPDATA}/.curlrc;
else
ccache -s
fi
# https://stackoverflow.com/a/53331571/1433768
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cleanup; fi
before_install:
- >-
case "$TRAVIS_OS_NAME" in
"osx")
brew update
;;
"windows")
[[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64;
choco uninstall -y mingw;
choco upgrade -y msys2;
export msys2='cmd //C RefreshEnv.cmd ';
export msys2+='& set MSYS=winsymlinks:nativestrict ';
export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start';
export shell="$msys2 -mingw64 -full-path -here -c \$\* --";
export msys2+=" -msys2 -c \$\* --";
$msys2 pacman --sync --noconfirm --disable-download-timeout --needed \
mingw-w64-x86_64-toolchain
$msys2 pacman -Syu --noconfirm --disable-download-timeout \
autoconf libtool automake gettext make autoconf-archive pkg-config mingw-w64-x86_64-gnutls
export PATH=/C/tools/msys64/mingw64/bin:$PATH
export MAKE=mingw32-make;
;;
*) # Linux
sudo apt-get update -qq
;;
esac
install:
- export MAKEFLAGS="-j `nproc`"
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.install"
script:
- "${TRAVIS_BUILD_DIR}/travis/${TRAVIS_OS_NAME}.${TARGET_OS}.script"
after_failure:
# http://jsteemann.github.io/blog/2014/10/30/getting-core-dumps-of-failed-travisci-builds/
- coreFile=$(find . -maxdepth 1 -name "*core*" | head -n 1)
- >-
if [[ -f "$coreFile" ]];
then
gdb -c "$coreFile" test \
-ex "thread apply all bt" \
-ex "set pagination 0" \
-batch;
fi

View File

@ -1,3 +1,21 @@
0.23.92:
* Added a --enable-static option to make easier to distribute
Windows binaries
0.23.90:
* Started using github actions for CI and binary releases
* Fixed several issues with configure.ac, making it auto-detect
most things, when possible
* README.md now shows the absolute minimum requirement for
building ZBar on Ubuntu
* Fixed some build issues
* Make it compatible with Python 3.9
* Fixed some Python 3.9 and Qt5 warnings
* Typo fixes
* Several fixes at zbarcam
* zbarimg: fix stderr output when symbols are found
0.23.1:
* Add i18n translation support and add a pt_BR translation

View File

@ -90,10 +90,10 @@ endif
if HAVE_DBUS
dbusconfdir = @DBUS_CONFDIR@
dbusconf_DATA = $(srcdir)/dbus/org.linuxtv.Zbar.conf
EXTRA_DIST += $(dbusconf_DATA)
endif
EXTRA_DIST += zbar.ico zbar.nsi zbar-qt5.pc.in zbar-qt.pc.in
EXTRA_DIST += zbar.ico zbar.nsi zbar-qt5.pc.in zbar-qt.pc.in \
dbus/org.linuxtv.Zbar.conf
EXTRA_DIST += examples/*.png examples/sha1sum \
examples/upcrpc.py examples/upcrpc.pl \

View File

@ -22,6 +22,19 @@ Tarballs with ZBar can be obtained from:
- <https://linuxtv.org/downloads/zbar/>
Since ZBar version 0.23.90, binaries auto-generated from Github's
Actions workflows are auto-generated for each release:
- <https://linuxtv.org/downloads/zbar/binaries/>
They contain binaries for:
- Ubuntu SID, generated via pbuilder;
- Mac OS;
- Windows, for 4 different configurations:
- 32 bits/64 bits;
- Video for Windows (VfW) or DirectShow (DShow).
License information can be found in `COPYING`.
You may find some outdated documentation at the original ZBar's
@ -33,17 +46,14 @@ updated for ages:
BUILDING
========
Ubuntu
```
apt install autopoint pkg-config -y
autoreconf -vfi
./configure --without-imagemagick --without-python --without-gtk
make
```
See `INSTALL.md` for generic configuration and build instructions.
Please notice that at least autotools related packages and a
C compiler are needed, in order to generate the configure script.
So, on Debian, at least those packages are needed:
autoconf autopoint pkg-config libtool gcc make
If you have installed all needed dependencies, all you need to do is to run:
```

View File

@ -1,6 +1,7 @@
changecom()dnl
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT([zbar], [0.23.1], [mchehab+samsung@kernel.org])
AC_INIT([zbar], [0.23.92], [mchehab+huawei@kernel.org])
m4_ifndef([AC_LANG_DEFINES_PROVIDED],
[m4_define([AC_LANG_DEFINES_PROVIDED])])
AC_CONFIG_AUX_DIR(config)
@ -88,11 +89,6 @@ AC_PROG_CC_STDC
PKG_PROG_PKG_CONFIG
AC_ARG_VAR([XMLTO], [location of xmlto, used for optional \
documentation generation])
AC_ARG_VAR([XMLTOFLAGS], [additional arguments for xmlto])
AC_CHECK_PROGS([XMLTO], [xmlto], [:])
dnl symbologies
AC_ARG_ENABLE([codes],
@ -188,6 +184,13 @@ AC_ARG_ENABLE([doc],
[],
[enable_doc="yes"])
AS_IF([test "x$enable_doc" != "xno"],
[AC_ARG_VAR([XMLTO], [location of xmlto, used for optional documentation generation])
AC_ARG_VAR([XMLTOFLAGS], [additional arguments for xmlto])
AC_CHECK_PROGS([XMLTO], [xmlto])])
AS_IF([test "x$XMLTO" = "x"], enable_doc="no")
AM_CONDITIONAL([HAVE_DOC], [test "x$enable_doc" != "xno"])
dnl video
@ -345,8 +348,7 @@ AC_ARG_WITH([jpeg],
have_jpeg="maybe"
AS_IF([test "x$with_jpeg" != "xno"],
[AC_CHECK_HEADERS([jpeglib.h], [], [have_jpeg="no"])
AC_CHECK_HEADER([jerror.h], [], [have_jpeg="no"])
[AC_CHECK_HEADERS([jpeglib.h jerror.h], [], [have_jpeg="no"])
AC_CHECK_LIB([jpeg], [jpeg_read_header], [], [have_jpeg="no"])
AS_IF([test "x$have_jpeg" != "xno"],
[with_jpeg="yes"],
@ -393,15 +395,19 @@ dnl but the latter doesn't exist in older versions (bug #2848437)
dnl double check ImageMagick install (bug #2582232)
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $MAGICK_CFLAGS"
AC_CHECK_HEADER([wand/MagickWand.h],
[have_IM="yes"],
AC_CHECK_HEADERS([wand/MagickWand.h],
[
have_IM="yes"
with_imagemagick="yes"
],
[have_IM="broken"])
dnl check for ImageMagick 7, see https://imagemagick.org/script/porting.php#headers
AS_IF([test "x$have_IM" = "xbroken"], [
AC_CHECK_HEADER([MagickWand/MagickWand.h],
AC_CHECK_HEADERS([MagickWand/MagickWand.h],
[
have_IM="yes"
have_IM7="yes"
with_imagemagick="yes"
],
[have_IM="broken"])
])
@ -417,6 +423,7 @@ AS_IF([test "x$have_IM" = "xyes"], [],
[looked_for="$looked_for or GraphicsMagick"])
PKG_CHECK_MODULES([GM], [GraphicsMagickWand],
[have_GM="yes"
with_imagemagick="no"
magick="GraphicsMagick"
MAGICK_CFLAGS="$MAGICK_CFLAGS $GM_CFLAGS"
MAGICK_LIBS="$MAGICK_LIBS $GM_LIBS"
@ -428,8 +435,10 @@ AS_IF([test "x$have_IM" = "xyes"], [],
dnl now that we have collected all the info abt what Magick is available
dnl let the user know what we will or can't do
AS_IF([test "x$have_IM" = "xbroken" && test "x$have_GM" = "xyes"],
[AC_MSG_WARN([Your ImageMagick install is broken, using GraphicsMagick instead])])
[
with_imagemagick="no"
AC_MSG_WARN([Your ImageMagick install is broken, using GraphicsMagick instead])
])
AS_IF([test "x$have_IM" = "xyes" || test "x$have_GM" = "xyes"],
[AC_MSG_NOTICE([using $magick version $MAGICK_VERSION])],
[test "x$with_imagemagick" = "xno" && \
@ -439,6 +448,9 @@ AS_IF([test "x$have_IM" = "xyes" || test "x$have_GM" = "xyes"],
[AC_MSG_FAILURE([$magick package found but wand/MagickWand.h not installed?!
this is a problem with your $magick install, please try again after
resolving the inconsistency or installing GraphicsMagick alternative...])],
[test "x$with_graphicsmagick" = "xcheck"],
[AC_MSG_NOTICE([ImageMagick/GraphicsMagick not detected. Several features will be disabled])
with_imagemagick="no"],
[AC_MSG_FAILURE([dnl
Unable to find $looked_for:
@ -518,8 +530,8 @@ AS_IF([test "x$with_gtk" = "xgtk2" || test "x$with_gtk" = "xauto"],
],[libgtk2=false])
])
# GTK not found
AS_IF(test "x$with_gtk" = "xauto"],[with_gtk="no"])
dnl GTK not found
AS_IF([test "x$with_gtk" = "xauto"], [with_gtk="no"])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
@ -548,7 +560,7 @@ Please notice that PYTHON var, if especified, takes precedence.])],
AC_ARG_VAR([PYTHON_CONFIG], [full path to python-config program])
AC_ARG_VAR([PYTHON_CFLAGS], [compiler flags for building python extensions])
AC_ARG_VAR([PYTHON_LIBS], [linker flags for building python extensions])
AC_ARG_VAR([PYTHON_LDFLAGS], [linker flags for building python extensions])
AC_ARG_VAR([PYGTK_H2DEF], [full path to PyGTK h2def.py module (python2 only)])
AC_ARG_VAR([PYGTK_CODEGEN], [full path to pygtk-codegen program (python2 only)])
@ -581,15 +593,25 @@ AS_IF([test "x$PYTHON_VERSION" != "x" && test "x$with_python" != "xno"],
[test -x "$PYTHON-config"],
[PYTHON_CFLAGS=`$PYTHON-config --cflags`],
[PYTHON_CFLAGS=`$PYTHON -c 'import distutils.sysconfig as s, sys; sys.stdout.write(" ".join(s.get_config_vars("CFLAGS")) + " -I"+s.get_python_inc() + " -I"+s.get_python_inc(plat_specific=True))'`])
AS_IF([test "x$PYTHON_LDFLAGS" != "x"],
[],
[test "x$PYTHON_CONFIG" != "x" && test -x "$PYTHON_CONFIG"],
[PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`],
[test -x "$PYTHON-config"],
[PYTHON_LDFLAGS=`$PYTHON-config --ldflags`],
[PYTHON_LDFLAGS=`$PYTHON -c 'import distutils.sysconfig as s, sys; sys.stdout.write(" ".join(s.get_config_vars("LDFLAGS")) + " -I"+s.get_python_inc() + " -I"+s.get_python_inc(plat_specific=True))'`])
dnl check that #include <Python.h> compiles (bug #3092663)
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
AC_CHECK_HEADER([Python.h], [], [AC_MSG_ERROR([dnl
AS_IF([test "x$win32" = "xyes"], PYTHON_LDFLAGS="$PYTHON_LDFLAGS -no-undefined")
AC_CHECK_HEADERS([Python.h], [],
[AS_IF([test "x$with_python" = "xauto"],with_python="no",
[AC_MSG_ERROR([dnl
Python module enabled, but unable to compile Python.h.
Install the development package for python-$am_cv_python_version, or configure
--without-python to disable the python bindings.dnl
])])
])])])
CPPFLAGS="$CPPFLAGS_save"
dnl PyGTK
@ -650,7 +672,7 @@ AS_IF([test "x$have_x" = "xyes"],
AS_IF([test "x$with_qt" != "xno"],
[PKG_CHECK_MODULES([QT],
[Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 $qt_extra],,
[with_qt5 = "no"
[with_qt5="no"
PKG_CHECK_MODULES([QT],
[QtCore >= 4 QtGui >= 4],,
[with_qt="no"])])])
@ -688,13 +710,13 @@ AC_ARG_VAR([JAVA_HOME], [root location of JDK])
AC_ARG_VAR([JAVAC], [location of Java language compiler])
AC_ARG_VAR([JAVAH], [location of Java header generator])
# If $JAVA_HOME not defined, try to autodetect it
dnl If $JAVA_HOME not defined, try to autodetect it
AS_IF([test -z "$JAVA_HOME"],
[AC_PATH_PROGS([JAVAC], [javac jikes ecj gcj], [:], [$PATH])
AS_IF([test ! -z "$JAVAC"],
[JAVA_HOME=$( readlink -f ${JAVAC} | rev | cut -d/ -f3- | rev )])])
# If $JAVA_HOME is defined, set JAVA_PATH and JAVAC
dnl If $JAVA_HOME is defined, set JAVA_PATH and JAVAC
AS_IF([test ! -z "$JAVA_HOME"],
[JAVA_PATH="$JAVA_HOME/bin$PATH_SEPARATOR$PATH"
AS_IF([test -z "$JAVAC"],
@ -708,8 +730,8 @@ AC_ARG_WITH([java],
JAVAC=${JAVAC/ecj/ecj -1.5}
# Javah was obsoleted on Java 8 and removed on Java 11. So, we need to
# look strictly at the $JAVA_HOME in order to avoid mixing different versions
dnl Javah was obsoleted on Java 8 and removed on Java 11. So, we need to
dnl look strictly at the $JAVA_HOME in order to avoid mixing different versions
AS_IF([test -z "$JAVAH"],
[AC_PATH_PROGS([JAVAH], [javah], [], [$JAVA_HOME/bin])])
@ -756,7 +778,7 @@ AS_IF([test -d "$JAVA_HOME/include/linux"],
AS_IF([test "x$with_java" != "xno"],
[CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $JAVA_CFLAGS"
AC_CHECK_HEADER([jni.h], [], [have_java="no"])
AC_CHECK_HEADERS([jni.h], [], [have_java="no"])
CPPFLAGS="$CPPFLAGS_save"
AS_IF([test "x$have_java" != "xno"],
[with_java="yes"],
@ -905,8 +927,8 @@ AS_IF([test "x$with_java" != "xyes"],
[echo " => the Java interface will *NOT* be built"])
AS_IF([test "x$with_java_unit" != "xyes"],
[echo " => the Java unit test will *NOT* be enabled"])
#echo "NPAPI Plugin --with-npapi=$with_npapi"
#AS_IF([test "x$with_mozilla" != "xyes"],
# [echo " => the Mozilla/Firefox/OpenOffice plugin will *NOT* be built"])
dnl echo "NPAPI Plugin --with-npapi=$with_npapi"
dnl AS_IF([test "x$with_mozilla" != "xyes"],
dnl [echo " => the Mozilla/Firefox/OpenOffice plugin will *NOT* be built"])
AS_IF([test "x$enable_pdf417" = "xyes"],
[echo " => the pdf417 code support is incomplete!"])

1
debian/TODO vendored
View File

@ -1 +0,0 @@
* Java support is missing now

444
debian/changelog vendored
View File

@ -1,444 +0,0 @@
zbar (0.23-1.3) unstable; urgency=medium
* Non-maintainer upload.
* Upload to unstable.
* debian/control: Disable building python3 extension for all
python versions again. Upstream code does not support it yet.
-- Boyuan Yang <byang@debian.org> Sun, 02 Feb 2020 14:02:50 -0500
zbar (0.23-1.3~exp1) experimental; urgency=medium
* Non-maintainer upload.
* debian/control: Add back Qt5 binding. New packages:
- libzbarqt0: Qt5 zbar binding
- libzbarqt-dev: Qt5 zbar binding (development file)
- zbarcam-qt: Qt5 zbar camera frontend tool
- zbarcam-gtk: Gtk zbar camera frontend tool
(Closes: #950398)
* debian/control:
+ Bump Standards-Version to 4.5.0.
+ Mention QR code in package short description.
(Closes: #946576)
* debian/rules: Build python3 extension for all supported
python versions.
* debian/patches: Cherry-pick patches of error fix and Qt5
support.
-- Boyuan Yang <byang@debian.org> Fri, 31 Jan 2020 23:46:17 -0500
zbar (0.23-1.2) unstable; urgency=medium
* Non-maintainer upload
* Drop unused Build-Depends on python-gtk2-dev (Closes: 885473)
* Clean up python3 Build-Depends
-- Jeremy Bicha <jbicha@debian.org> Tue, 22 Oct 2019 22:20:05 -0400
zbar (0.23-1.1) unstable; urgency=medium
* Non-maintainer upload.
* Rebuild for a source-only upload.
* debian/control: Bump Standards-Version to 4.4.0.
* debian/patches:
+ Refactor previous perl shabang patch to merge them together.
+ Backport upstream patch to fix iconv-related unexpected abort.
* debian/libzbargtk0.symbols: Add new symbol.
-- Boyuan Yang <byang@debian.org> Thu, 25 Jul 2019 17:01:39 -0400
zbar (0.23-1) unstable; urgency=medium
* New upstream version.
* New maintainer. (Closes: #898078)
* Drop pygtk, python2 support. (Closes: #885473)
* Add python3 support. (Closes: #888303)
* debian/clean: added.
-- Gürkan Myczko <gurkan@phys.ethz.ch> Mon, 27 May 2019 09:22:12 +0200
zbar (0.22-1) unstable; urgency=medium
* QA upload.
* New upstream release (2019-02-20).
* debian/patches: Drop all patches, merged upstream.
* debian/control: Also mark libzbar-dev and libzbargtk-dev as
Multi-Arch: same.
-- Boyuan Yang <byang@debian.org> Wed, 20 Feb 2019 10:18:30 -0500
zbar (0.21-3) unstable; urgency=medium
* QA upload.
* debian/patches:
+ Replace custom codespell typo fix patches with upstream
applied one.
+ Cherry-pick upstream patches till 20190215 to fix grammar
error in configure.ac script.
* debian/control:
+ Mark libbarcode-zbar-perl, python-zbar and python-zbarpygtk
as Multi-Arch: same. (Closes: #812954)
* New zbarcam is no longer crashing. (Closes: #762209)
-- Boyuan Yang <byang@debian.org> Fri, 15 Feb 2019 10:35:13 -0500
zbar (0.21-2) unstable; urgency=medium
* QA upload.
* debian/zbar-tools.install: Use dh-exec again to selectively
install zbarcam for linux-any only.
-- Boyuan Yang <byang@debian.org> Thu, 14 Feb 2019 18:58:42 -0500
zbar (0.21-1) unstable; urgency=medium
* QA upload.
* Upload onto unstable.
* debian/control: Update homepage with current GitHub project.
-- Boyuan Yang <byang@debian.org> Thu, 14 Feb 2019 18:32:38 -0500
zbar (0.21-1~exp1) experimental; urgency=medium
* QA upload.
* New upstream release 0.21.
* debian/watch: Monitor new upstream on GitHub.
* debian/control:
- Drop build-dependency on dh-exec, no longer necessary.
* debian/gbp.conf: Disable gbp-import-orig postimport hook,
it is useless now.
* debian/rules:
+ Completely rewrite and use the dh sequencer.
+ use override_dh_strip to generate automatic debug packages.
* debian/patches:
- Drop all patches, merged or fixed upstream.
+ Cherry-pick upstream fixes on stable-0.21 branch
till 20190214.
+ Add a patch to fix typos found by codespell.
-- Boyuan Yang <byang@debian.org> Thu, 14 Feb 2019 15:51:03 -0500
zbar (0.10+doc-11) unstable; urgency=medium
* QA upload.
* Orphan the package and set maintainer to Debian QA Group.
* debian/control:
+ Build-depend on debhelper-compat (= 12) instead of using
debian/compat file.
+ Bump Standards-Version to 4.3.0.
+ Use Rules-Requires-Root: no.
+ Replace obsoleted Priority: extra with optional.
- Do not build Qt4 library anymore. (Closes: #875246)
* debian/symbols: Add Build-Depends-Package field. (lintian)
* debian/rules:
+ Enable full hardening.
+ Minor adjust to debhelper sequences to suit debhelper compat
v12.
* debian/gbp.conf: Update instructions to fit current git repo
setup.
* debian/patches:
+ Add a patch to rename custom dprintf macro to zbar_dprintf
to prevent naming conflict.
-- Boyuan Yang <byang@debian.org> Sun, 10 Feb 2019 14:26:34 -0500
zbar (0.10+doc-10.1) unstable; urgency=low
* Non-maintainer upload with maintainer permission.
[ Francois Gouget ]
* Add missing versioned Build-Depends for automake
* Convert most binary packages to Multi-Arch (Closes: #777202)
* Switch to 3.0 (quilt) format, in order to use dh-exec
[ Thorsten Glaser ]
* Add missing versioned Build-Depends for autoconf
* Build-Depends: dh-python (as requested by dh_python)
* Make zbar-dbg M-A: same (as pointed out by lintian)
* Add missing required build-{arch,indep} targets (lintian)
* Mention Perl module name in long package description (lintian)
-- Thorsten Glaser <tg@mirbsd.de> Mon, 02 Jan 2017 17:16:01 +0100
zbar (0.10+doc-10) unstable; urgency=medium
* [d3eba6e2] Add support for Python GIL / asynchronous scanning.
Thanks to Jonathan McDowell (Closes: #766089)
* [fd5fd7f1] Fix typo in package description.
Thanks to Pascal De Vuyst (Closes: #697516, #715178)
-- Bernd Zeimetz <bzed@debian.org> Mon, 20 Oct 2014 22:04:56 +0200
zbar (0.10+doc-9) unstable; urgency=low
* [2c641cc9] Fix configure.ac to build with newer autotools.
Thanks to Lucas Nussbaum (Closes: #713332)
-- Bernd Zeimetz <bzed@debian.org> Sun, 18 Aug 2013 12:26:59 +0200
zbar (0.10+doc-8) unstable; urgency=low
* [5c38da40] Use [linux-any] instead of [!kfreebsd-*].
Thanks to Robert Millan (Closes: #634774)
* [1f15f52e] Add sentinel to PyGetSetDef imagescanner_getset[].
Ensure that the loop is terminated which reads the
imagescanner_getset[] array on import - otherwise we'll run into
a segfault, at least on arm.
Thanks to Anton Gladky and Peter Green (Closes: #702499)
-- Bernd Zeimetz <bzed@debian.org> Sun, 17 Mar 2013 22:46:47 +0100
zbar (0.10+doc-7) unstable; urgency=low
* [48425c37] Ack'ing NMU.
Thanks to Mehdi Dogguy (Closes: #625584)
* [ce18efe2] Don't install .la files. (Closes: #633271)
-- Bernd Zeimetz <bzed@debian.org> Sun, 10 Jul 2011 14:17:11 +0200
zbar (0.10+doc-6.1) unstable; urgency=high
* Non-maintainer upload.
* libzbar-dev depend on libmagick++-dev instead of libmagick++9-dev.
(Closes: #625584).
-- Mehdi Dogguy <mehdi@debian.org> Sun, 26 Jun 2011 15:04:36 +0200
zbar (0.10+doc-6) unstable; urgency=low
* [3b98a217] Require v4l as build-dependency on linux only.
* [5f635649] Migrate to dh_python2 instead of python-support.
-- Bernd Zeimetz <bzed@debian.org> Wed, 27 Apr 2011 22:34:12 +0200
zbar (0.10+doc-5) unstable; urgency=low
* [2801e55f] Use the new dh_authtoolsdev-* helper to update config.*
* [906f5a10] Use dh-autoreconf to rebuild configure and friends.
Thanks to Peter Fritzsche (Closes: #558539)
* [a3042424] Use quilt to apply patches.
* [35182c3a] Description: Linux 2.6.38 and later do not support the v4l1 API.
Add patch to migrate to using the libv4l library to abstract the
access to Linux video devices, instead.
Patch taken from the upstream bug tracker.
Also add libv4l-dev as build-dependency.
Thanks to Steve Langasek (Closes: #620220)
* [425b9ce6] Fixing typo in the long description of python-zbar.
Thanks to Davide Prina (Closes: #617942)
-- Bernd Zeimetz <bzed@debian.org> Fri, 01 Apr 2011 01:05:18 +0200
zbar (0.10+doc-4) unstable; urgency=low
* [abdd6f9f] Use better dependencies for zbar-dbg.
* [5c639854] Remove conflicts of libzbar-dev. libzbar replaced zebra
in directory names by zbar, so clashes with quagga and libpacklib1-
dev are avoided. So there is no need to conflict against the
packages anymore.
* [75f615f2] Use Breaks instead of Conflicts as suggested by lintian.
-- Bernd Zeimetz <bzed@debian.org> Sat, 28 Aug 2010 15:01:46 +0200
zbar (0.10+doc-3) unstable; urgency=low
* [6b190c39] Enable VfL only on Linux instead of excluding kfreebsd
only. (Closes: #585082) - thanks to Samuel Thibault
* [da42c117] Update libzbarqt0 symbol files to newer dpkg-dev
features. As symbols seem to appear/disappear depending on the
version of QT and/or the compiler, I've relaxed the check for
changed symbols to stop complaining at all for libzbarqt0. I'll
update the symbols files manually when needed. (Closes: #584773) -
thanks to Loïc Minier
* [94ac49b6] Add missing dependency to the perl/Makefile target in
debian/rules. This should allow to build with -j again. (Closes:
#584758) - thanks to Loïc Minier
-- Bernd Zeimetz <bzed@debian.org> Wed, 09 Jun 2010 17:08:07 +0200
zbar (0.10+doc-2build1) maverick; urgency=low
* Release for Ubuntu. 0.10+doc-2 FTBFS there due to default LDFLAGS
which were passed on to Perl's MakeMaker.
* [b0066775] Fix spelling error in changelog. Thanks lintian.
* [6ddbfe0d] Ensure only -L options are passed as LIBS to Perl's
MakeMaker.
-- Bernd Zeimetz <bzed@debian.org> Tue, 25 May 2010 22:25:18 +0200
zbar (0.10+doc-2) unstable; urgency=low
* [1806e6cd] Copy libzbarqt0.symbols for each architecture.
* [8d172f95] Disable video support on kfreebsd.
* [63b87cf4] Don't list binaries for zbar-tools explicitly. zbarvideo
is not being built on kfreebsd, so we should not try to install it
there.
* [14e36c30] Don't rename debug extensions if they were renamed
already.
* [650fa88e] Fix libzbarqt0.symbols for various architectures - thanks
C++.
-- Bernd Zeimetz <bzed@debian.org> Tue, 25 May 2010 17:37:52 +0200
zbar (0.10+doc-1) unstable; urgency=low
* Import full upstream source including the doc folder and drop
the dfsg part in the version (using +doc now as we need a version
greater than 0.10+dfsg. See the changelog below and debian/copyright
for details
* [1f9232b1] Add missing dependencies to libzbar-dev.
* [577bae53] Tidy .docs files - one debian/docs is enough.
* [b77a29e5] Python-related packages: Fix dependencies and build
python-zbar.
* [6a336b40] Adopt package (Closes: #543881)
* [d3e7838d] gbp.conf: Remove filter option for git-import-orig.
Upstream clarified the license for the doc folder, the documentation
is (and was) under the same license as the rest of the zbar project.
The former package maintainer just did not bother to ask.
(http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/a400dd46fb4a)
* [d9f0f3bd] Remove quilt - no patches necessary anymore.
* [8e9b2f81] Adding watch file.
* [ddfdb3db] Merge commit 'upstream/0.10+doc'
* [4c547f3a] Build zbar for all supported Python versions. Also build
debug extensions.
* [c6dbc26d] Ensure proper sonames while installing libraries.
* [74e55643] Update supported codes in descriptions.
* [54969382] Install README file into docs.
* [3d97e382] Updating copyright file.
* [71bfc1fe] Install manpages for zbar-tools.
* [9de7a34a] Remove --fail-missing from dh_install call.
* [39a37679] Add symbol files for libraries.
* [418ee09b] Be paranoid about symbol files - pass -c4 to dpkg-
gensymbols.
* [a1527ed7] Use -L to link against previously built libs.
* [c672ecc8] Don't include symbols, which are removed by strip, in
symbols file.
* [9b93453e] Build Perl bindings into libbarcode-zbar-perl.
* [76b32218] According to lintian zbar-dbg needs to Depend on all
packages.
* [2cb6d478] python-zbar needs to conflict/replace older versions of
python-zbarpygtk.
* [bca1a7dc] Better wording for short description.
* [4f6fdf16] Ensure perl bindings are built without rpath.
* [df98e89f] Add missing dh_perl call.
* [18539f50] Add comment about licenses of doc/* to debian/copyright.
* [2bb4fb29] zbar-dbg needs to depend on python-gtk2-dbg.
* [3da1a01e] Add VCS information.
-- Bernd Zeimetz <bzed@debian.org> Tue, 25 May 2010 02:09:41 +0200
zbar (0.10+dfsg-1) unstable; urgency=low
* QA Upload.
I might adopt the package later, but for now an update to the
latest upstream version is more important. Also I do not want to
set myself as maintainer without bringing the packaging into
a good shape.
* [154213cf] Adding git-buildpackage config.
* [c89b1ccb] Merge commit 'upstream/0.10+dfsg'
* [5565931e] Adding debian/source/format, format 1.0.
* [9080fcb7] Updating patch.
-- Bernd Zeimetz <bzed@debian.org> Thu, 20 May 2010 01:58:52 +0200
zbar (0.8+dfsg-4) unstable; urgency=low
* QA upload.
* Build-depend on python-support and call dh_pysupport in debian/rules
to allow byte-compilation (Closes: #571484).
* Bump Standards-Version to 3.8.4, no changes required.
* Add ${misc:Depends} dependency where needed.
* Remove duplicate section fields from some binary packages.
* Really remove Vcs-* fields.
-- Luca Falavigna <dktrkranz@debian.org> Sun, 28 Feb 2010 15:59:51 +0100
zbar (0.8+dfsg-3) unstable; urgency=low
* Updating package to standards version 3.8.3.
* Removing vcs fields.
* Orphaning package.
-- Daniel Baumann <daniel@debian.org> Thu, 27 Aug 2009 10:04:11 +0200
zbar (0.8+dfsg-2) unstable; urgency=low
* Correcting spelling of Qt in package descriptions (Closes: #534426).
-- Daniel Baumann <daniel@debian.org> Sun, 26 Jul 2009 21:03:26 +0200
zbar (0.8+dfsg-1) unstable; urgency=low
* Merging upstream version 0.8+dfsg.
* Updating dfsg.patch.
* Updating package to standards version 3.8.2.
* Updating year in copyright file.
-- Daniel Baumann <daniel@debian.org> Tue, 07 Jul 2009 16:17:32 +0200
zbar (0.7+dfsg-1) unstable; urgency=low
* Merging upstream version 0.7+dfsg.
* Adding upstream target in rules file.
* Adding patch to ignore stripped out documentation during build.
* Renaming binary and source package from zebra to zbar to match
upstream.
* Removing manpages from zbar-tools debhelper install file, manpages
are stripped out in dfsg tarball.
* Updating section of the debug package.
* Using correct rfc-2822 date formats in changelog.
-- Daniel Baumann <daniel@debian.org> Sun, 17 May 2009 12:50:49 +0200
zebra (0.7-1) unstable; urgency=low
* Merging upstream version 0.7.
* Updating debhelper install files to cope with upstreams zebra to zbar
rename.
-- Daniel Baumann <daniel@debian.org> Sun, 26 Apr 2009 16:43:00 +0200
zebra (0.6-1) unstable; urgency=low
* Updating imagemagick build-depends.
* Updating standards to 3.8.1.
* Merging upstream version 0.6.
* Unsetting LDFLAGS (which are exported to the environment by newer dpkg),
otherwise python modules fail to build.
* Tidy rules file.
* Updating year in copyright file.
-- Daniel Baumann <daniel@debian.org> Sun, 26 Apr 2009 16:30:00 +0200
zebra (0.5+debian-4) unstable; urgency=low
* Sorting config.guess/config.sub handling in rules.
* Passing flags to configure as arguments.
* Removing unnecessary passing of sourcedir to dh_install.
-- Daniel Baumann <daniel@debian.org> Wed, 17 Dec 2008 21:21:00 +0100
zebra (0.5+debian-3) unstable; urgency=low
* Replacing obsolete dh_clean -k with dh_prep.
* Adding conflicts against quagga to avoid /usr/lib/libzebra.a clash
(Closes: #505268).
-- Daniel Baumann <daniel@debian.org> Tue, 11 Nov 2008 12:07:00 +0100
zebra (0.5+debian-2) unstable; urgency=low
* Adding conflicts against libpacklib1-dev to avoid
/usr/include/zebra.h clash, unlikely that there is another solution
possible (Closes: #504526).
-- Daniel Baumann <daniel@debian.org> Tue, 04 Nov 2008 21:07:00 +0100
zebra (0.5+debian-1) unstable; urgency=low
* Initial release (Closes: #502992).
* Rebuild upstream tarball without debian directory.
-- Daniel Baumann <daniel@debian.org> Thu, 23 Oct 2008 12:29:00 +0200

4
debian/clean vendored
View File

@ -1,4 +0,0 @@
doc/man/zbarcam.1
doc/man/zbarimg.1
doc/reldate.xml
doc/version.xml

199
debian/control vendored
View File

@ -1,199 +0,0 @@
Source: zbar
Section: libs
Priority: optional
Maintainer: Gürkan Myczko <gurkan@phys.ethz.ch>
Build-Depends:
debhelper-compat (= 12),
dh-exec,
dh-sequence-python3,
libdbus-1-dev,
libgtk2.0-dev,
libjpeg-dev,
libmagick++-dev,
libqt5x11extras5-dev,
libv4l-dev [linux-any],
libx11-dev,
perl,
pkg-config,
python3-dev:any,
qtbase5-dev,
xmlto,
libgtk-3-dev,
Rules-Requires-Root: no
X-Python3-Version: >= 3.6
Standards-Version: 4.5.0
Homepage: https://github.com/mchehab/zbar
Vcs-Git: https://salsa.debian.org/debian/zbar.git
Vcs-Browser: https://salsa.debian.org/debian/zbar
Package: libbarcode-zbar-perl
Section: perl
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
${perl:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (Perl bindings)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the Perl bindings and the Barcode::Zbar module.
Package: libzbar-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
libmagick++-dev,
libx11-dev,
libzbar0 (= ${binary:Version}),
${misc:Depends},
Description: QR code / bar code scanner and decoder (development)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the development files.
Package: libzbar0
Architecture: any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
${misc:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (library)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the library.
Package: libzbargtk-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends:
libgtk2.0-dev,
libzbar-dev (= ${binary:Version}),
libzbargtk0 (= ${binary:Version}),
${misc:Depends},
Description: QR code / bar code scanner and decoder (GTK+ bindings development)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the development files for the GTK+ bindings.
Package: libzbargtk0
Architecture: any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
libzbar0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (GTK+ bindings)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the GTK+ bindings.
Package: python3-zbar
Section: python
Architecture: any
Multi-Arch: same
Replaces:
python-zbarpygtk (<< 0.10+doc),
Breaks:
python-zbarpygtk (<< 0.10+doc),
Depends:
libzbar0 (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (Python bindings)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the Python bindings.
Package: zbar-tools
Section: graphics
Architecture: any
Depends:
libzbar0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Suggests:
zbarcam-qt,
zbarcam-gtk,
Description: QR code / bar code scanner and decoder (utilities)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains basic applications for decoding captured bar code images
and using a video4linux device (e.g. webcam) as a bar code scanner.
Package: libzbarqt-dev
Section: libdevel
Architecture: any
Depends:
libqt5x11extras5-dev,
libzbar-dev (= ${binary:Version}),
libzbarqt0 (= ${binary:Version}),
qtbase5-dev,
${misc:Depends},
Description: QR code / bar code scanner and decoder (Qt binding development)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the development files for the Qt binding.
Package: libzbarqt0
Architecture: any
Multi-Arch: same
Depends:
libzbar0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (Qt binding)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the library for Qt binding.
Package: zbarcam-qt
Architecture: any
Depends:
libzbarqt0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (Qt camera tool)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the Qt-based camara frontend tool.
Package: zbarcam-gtk
Architecture: any
Depends:
libzbargtk0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: QR code / bar code scanner and decoder (Gtk camera tool)
ZBar is a library for scanning and decoding bar codes from various sources
such as video streams, image files or raw intensity sensors. It supports
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code.
.
This package contains the Gtk-based camara frontend tool.

59
debian/copyright vendored
View File

@ -1,59 +0,0 @@
This work was originally packaged for Debian by Daniel Baumann
<daniel@debian.org> and is later maintained by Bernd Zeimetz <bzed@debian.org>.
It was downloaded from:
http://zbar.sourceforge.net/
The current version of zbar is downloaded from:
https://github.com/mchehab/zbar
Below follows the copyrigt and license information as
provided in the file COPYING
The ZBar Bar Code Reader is Copyright (C) 2007-2009 Jeff Brown
<spadix@users.sourceforge.net>
The QR Code reader is Copyright (C) 1999-2009 Timothy B. Terriberry
<tterribe@xiph.org>
You can redistribute this library and/or modify it under the terms of the GNU
Lesser General Public License as published by the Free Software Foundation;
either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this library; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
ISAAC is based on the public domain implementation by Robert J. Jenkins Jr.,
and is itself public domain.
Portions of the bit stream reader are copyright (C) The Xiph.Org Foundation
1994-2008, and are licensed under a BSD-style license.
The Reed-Solomon decoder is derived from an implementation (C) 1991-1995 Henry
Minsky (hqm@ua.com, hqm@ai.mit.edu), and is licensed under the LGPL with
permission.
The debian packaging is
Copyright (C) 2008-2009 Daniel Baumann <daniel@debian.org>
Copyright (C) 2010 Bernd Zeimetz <bzed@debian.org>
and licensed under the same license as zbar; you can redistribute
it and/or modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
On Debian systems, the complete text of the GNU Library General Public License
can be found in /usr/share/common-licenses/LGPL-2.1 file.
The hints about GFDL and invariant documentations, which were forgotton in
the doc folder, were fixed by upstream, see the following URLs for details:
https://sourceforge.net/tracker/?func=detail&aid=3004411&group_id=189236&atid=928515
http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/a400dd46fb4a
http://zbar.hg.sourceforge.net/hgweb/zbar/zbar/rev/41ea3fade9e1

2
debian/docs vendored
View File

@ -1,2 +0,0 @@
README.md
TODO.md

25
debian/gbp.conf vendored
View File

@ -1,25 +0,0 @@
# Configuration file for git-buildpackage and friends
[DEFAULT]
# the default branch for upstream sources:
upstream-branch = upstream
# the default branch for the debian patch:
debian-branch = master
# the default tag formats used:
upstream-tag = upstream/%(version)s
debian-tag = debian/%(version)s
# use pristine-tar:
pristine-tar = True
# Options only affecting git-buildpackage
[buildpackage]
# uncomment this to automatically GPG sign tags
sign-tags = True
# push to a remote repository after a successful tag:
posttag = git push && git push --tags
#ignore-new = True
# Options only affecting git-import-orig
[import-orig]
#postimport = git-dch -N%(version)s -S -a --debian-branch=$GBP_BRANCH
postimport = true

View File

@ -1 +0,0 @@
perl/examples/*

View File

@ -1,2 +0,0 @@
usr/lib/*/perl5/*
usr/share/man/man3/Barcode*

View File

@ -1,13 +0,0 @@
/usr/include/zbar.h
/usr/include/zbar/Decoder.h
/usr/include/zbar/Exception.h
/usr/include/zbar/Image.h
/usr/include/zbar/ImageScanner.h
/usr/include/zbar/Processor.h
/usr/include/zbar/Scanner.h
/usr/include/zbar/Symbol.h
/usr/include/zbar/Video.h
/usr/include/zbar/Window.h
/usr/lib/*/libzbar.a
/usr/lib/*/libzbar.so
/usr/lib/*/pkgconfig/zbar.pc

View File

@ -1 +0,0 @@
/usr/lib/*/libzbar.so.*

View File

@ -1,145 +0,0 @@
libzbar.so.0 libzbar0 #MINVER#
* Build-Depends-Package: libzbar-dev
_zbar_error_spew@Base 0.10
_zbar_error_string@Base 0.10
_zbar_get_error_code@Base 0.10
zbar_decode_width@Base 0.10
zbar_decoder_create@Base 0.10
zbar_decoder_destroy@Base 0.10
zbar_decoder_get_color@Base 0.10
zbar_decoder_get_config@Base 0.22
zbar_decoder_get_configs@Base 0.21
zbar_decoder_get_data@Base 0.10
zbar_decoder_get_data_length@Base 0.10
zbar_decoder_get_direction@Base 0.21
zbar_decoder_get_modifiers@Base 0.21
zbar_decoder_get_type@Base 0.10
zbar_decoder_get_userdata@Base 0.10
zbar_decoder_new_scan@Base 0.10
zbar_decoder_reset@Base 0.10
zbar_decoder_set_config@Base 0.10
zbar_decoder_set_handler@Base 0.10
zbar_decoder_set_userdata@Base 0.10
zbar_get_addon_name@Base 0.10
zbar_get_config_name@Base 0.21
zbar_get_modifier_name@Base 0.21
zbar_get_orientation_name@Base 0.21
zbar_get_symbol_name@Base 0.10
zbar_image_convert@Base 0.10
zbar_image_convert_resize@Base 0.10
zbar_image_copy@Base 0.10
zbar_image_create@Base 0.10
zbar_image_destroy@Base 0.10
zbar_image_first_symbol@Base 0.10
zbar_image_free_data@Base 0.10
zbar_image_get_crop@Base 0.21
zbar_image_get_data@Base 0.10
zbar_image_get_data_length@Base 0.10
zbar_image_get_format@Base 0.10
zbar_image_get_height@Base 0.10
zbar_image_get_sequence@Base 0.10
zbar_image_get_size@Base 0.21
zbar_image_get_symbols@Base 0.10
zbar_image_get_userdata@Base 0.10
zbar_image_get_width@Base 0.10
zbar_image_ref@Base 0.10
zbar_image_scanner_create@Base 0.10
zbar_image_scanner_destroy@Base 0.10
zbar_image_scanner_enable_cache@Base 0.10
zbar_image_scanner_get_config@Base 0.22
zbar_image_scanner_get_results@Base 0.10
zbar_image_scanner_recycle_image@Base 0.10
zbar_image_scanner_request_dbus@Base 0.21
zbar_image_scanner_set_config@Base 0.10
zbar_image_scanner_set_data_handler@Base 0.10
zbar_image_set_crop@Base 0.21
zbar_image_set_data@Base 0.10
zbar_image_set_format@Base 0.10
zbar_image_set_sequence@Base 0.10
zbar_image_set_size@Base 0.10
zbar_image_set_symbols@Base 0.10
zbar_image_set_userdata@Base 0.10
zbar_image_write@Base 0.10
zbar_increase_verbosity@Base 0.10
zbar_jpeg_error@Base 0.10
zbar_negotiate_format@Base 0.10
zbar_parse_config@Base 0.10
zbar_process_image@Base 0.10
zbar_process_one@Base 0.10
zbar_processor_create@Base 0.10
zbar_processor_destroy@Base 0.10
zbar_processor_force_format@Base 0.10
zbar_processor_get_control@Base 0.21
zbar_processor_get_results@Base 0.10
zbar_processor_get_userdata@Base 0.10
zbar_processor_init@Base 0.10
zbar_processor_is_visible@Base 0.10
zbar_processor_request_dbus@Base 0.21
zbar_processor_request_interface@Base 0.10
zbar_processor_request_iomode@Base 0.10
zbar_processor_request_size@Base 0.10
zbar_processor_set_active@Base 0.10
zbar_processor_set_config@Base 0.10
zbar_processor_set_control@Base 0.21
zbar_processor_set_data_handler@Base 0.10
zbar_processor_set_userdata@Base 0.10
zbar_processor_set_visible@Base 0.10
zbar_processor_user_wait@Base 0.10
zbar_scan_image@Base 0.10
zbar_scan_y@Base 0.10
zbar_scanner_create@Base 0.10
zbar_scanner_destroy@Base 0.10
zbar_scanner_flush@Base 0.10
zbar_scanner_get_color@Base 0.10
zbar_scanner_get_edge@Base 0.10
zbar_scanner_get_state@Base 0.10
zbar_scanner_get_width@Base 0.10
zbar_scanner_new_scan@Base 0.10
zbar_scanner_reset@Base 0.10
zbar_set_verbosity@Base 0.10
zbar_symbol_first_component@Base 0.10
zbar_symbol_get_components@Base 0.10
zbar_symbol_get_configs@Base 0.21
zbar_symbol_get_count@Base 0.10
zbar_symbol_get_data@Base 0.10
zbar_symbol_get_data_length@Base 0.10
zbar_symbol_get_loc_size@Base 0.10
zbar_symbol_get_loc_x@Base 0.10
zbar_symbol_get_loc_y@Base 0.10
zbar_symbol_get_modifiers@Base 0.21
zbar_symbol_get_orientation@Base 0.21
zbar_symbol_get_quality@Base 0.10
zbar_symbol_get_type@Base 0.10
zbar_symbol_next@Base 0.10
zbar_symbol_ref@Base 0.10
zbar_symbol_set_first_symbol@Base 0.10
zbar_symbol_set_first_unfiltered@Base 0.21
zbar_symbol_set_get_size@Base 0.10
zbar_symbol_set_ref@Base 0.10
zbar_symbol_xml@Base 0.10
zbar_version@Base 0.10
zbar_video_create@Base 0.10
zbar_video_destroy@Base 0.10
zbar_video_enable@Base 0.10
zbar_video_get_control@Base 0.21
zbar_video_get_controls@Base 0.21
zbar_video_get_fd@Base 0.10
zbar_video_get_format@Base 0.10
zbar_video_get_height@Base 0.10
zbar_video_get_resolutions@Base 0.22
zbar_video_get_width@Base 0.10
zbar_video_init@Base 0.10
zbar_video_next_image@Base 0.10
zbar_video_open@Base 0.10
zbar_video_request_interface@Base 0.10
zbar_video_request_iomode@Base 0.10
zbar_video_request_size@Base 0.10
zbar_video_set_control@Base 0.21
zbar_window_attach@Base 0.10
zbar_window_create@Base 0.10
zbar_window_destroy@Base 0.10
zbar_window_draw@Base 0.10
zbar_window_get_overlay@Base 0.10
zbar_window_redraw@Base 0.10
zbar_window_resize@Base 0.10
zbar_window_set_overlay@Base 0.10

View File

@ -1,4 +0,0 @@
usr/include/zbar/zbargtk.h
usr/lib/*/libzbargtk.a
usr/lib/*/libzbargtk.so
usr/lib/*/pkgconfig/zbar-gtk.pc

View File

@ -1,2 +0,0 @@
/usr/lib/*/libzbargtk.so.0
/usr/lib/*/libzbargtk.so.0.*

View File

@ -1,14 +0,0 @@
libzbargtk.so.0 libzbargtk0 #MINVER#
* Build-Depends-Package: libzbargtk-dev
zbar_gtk_get_type@Base 0.10
zbar_gtk_get_video_device@Base 0.10
zbar_gtk_get_video_enabled@Base 0.10
zbar_gtk_get_video_opened@Base 0.10
zbar_gtk_image_from_pixbuf@Base 0.10
zbar_gtk_new@Base 0.10
zbar_gtk_release_pixbuf@Base 0.10
zbar_gtk_request_video_size@Base 0.21
zbar_gtk_scan_image@Base 0.10
zbar_gtk_set_video_device@Base 0.10
zbar_gtk_set_video_enabled@Base 0.10
zbar_marshal_VOID__INT_STRING@Base 0.23

View File

@ -1,4 +0,0 @@
usr/include/zbar/QZBar*.h
usr/lib/*/libzbarqt.a
usr/lib/*/libzbarqt.so
usr/lib/*/pkgconfig/zbar-qt.pc

View File

@ -1,2 +0,0 @@
usr/lib/*/libzbarqt.so.0
usr/lib/*/libzbarqt.so.0.*

View File

@ -1 +0,0 @@
libzbarqt 0 libzbarqt0 (>= 0.23)

View File

@ -1 +0,0 @@
usr/lib/*/*.la

View File

@ -1 +0,0 @@
/usr/lib/python*/*-packages/zbar*.so

59
debian/rules vendored
View File

@ -1,59 +0,0 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Introduce standard debhelper variables
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# Let pybuild know the python binary package name
export PYBUILD_NAME = zbar
LDFLAGS_LIB_SEARCHPATH = $(strip $(shell find $(CURDIR)/zbar -name '*.so' -printf "-L%h "))
LDFLAGS_BINDINGS = $(strip $(LDFLAGS) $(LDFLAGS_LIB_SEARCHPATH))
# Explicitly set supported Qt version
export QT_SELECT := 5
# Properly set configure flags
CONFIGURE_FLAGS = --without-java --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-gtk=gtk3 --with-python=python3 --with-qt5
# We enable libv4l support only on Linux platforms.
ifeq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
CONFIGURE_FLAGS += --disable-video
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_FLAGS)
override_dh_missing:
dh_missing --list-missing
override_dh_strip:
dh_strip --dbgsym-migration='zbar-dbg (<< 0.21~)'
override_dh_clean:
dh_clean
# Also clean up perl-related files
[ ! -f $(CURDIR)/perl/Makefile ] || $(MAKE) -C perl realclean
override_dh_auto_install: build-perl
dh_auto_install
build-perl:
dh_auto_configure --sourcedirectory=perl -- INC="-I$(CURDIR)/include" LIBS="$(LDFLAGS_LIB_SEARCHPATH) -lzbar"
dh_auto_build --sourcedirectory=perl -- OTHERLDFLAGS="$(LDFLAGS_LIB_SEARCHPATH)" LD_RUN_PATH=''
dh_auto_install --sourcedirectory=perl
.PHONY: build-perl

View File

@ -1 +0,0 @@
3.0 (quilt)

3
debian/watch vendored
View File

@ -1,3 +0,0 @@
version=3
http://sf.net/zbar/zbar-(.+)\.tar\.bz2

View File

@ -1,6 +0,0 @@
#!/usr/bin/dh-exec
[linux-any] usr/bin/zbarcam
usr/bin/zbarimg
etc/dbus-1/system.d/org.linuxtv.Zbar.conf
#[linux-any] usr/bin/zbarcam-gtk
#[linux-any] usr/bin/zbarcam-qt

View File

@ -1 +0,0 @@
debian/tmp/usr/share/man/man1/*

View File

@ -1 +0,0 @@
usr/bin/zbarcam-gtk

View File

@ -1 +0,0 @@
usr/bin/zbarcam-qt

View File

@ -35,8 +35,7 @@ static void get_data (const char *name,
FILE *file = fopen(name, "rb");
if(!file) exit(2);
png =
png_create_read_struct(PNG_LIBPNG_VER_STRING,
png = png_create_read_struct(PNG_LIBPNG_VER_STRING,
NULL, NULL, NULL);
if(!png) exit(3);
if(setjmp(png_jmpbuf(png))) exit(4);

View File

@ -1,6 +1,6 @@
#include <iostream>
#include <Magick++.h>
#include <zbar.h>
#include <Magick++.h>
#define STR(s) #s
using namespace std;

View File

@ -2,9 +2,9 @@ pyexec_LTLIBRARIES += pygtk/zbarpygtk.la
pygtk_zbarpygtk_la_CPPFLAGS = \
$(GTK_CFLAGS) $(PYTHON_CFLAGS) $(PYGTK_CFLAGS) $(AM_CPPFLAGS)
pygtk_zbarpygtk_la_LDFLAGS = -shared -module -avoid-version -export-dynamic \
-export-symbols-regex initzbarpygtk
-export-symbols-regex initzbarpygtk $(PYTHON_LDFLAGS)
pygtk_zbarpygtk_la_LIBADD = \
$(PYTHON_LIBS) $(PYGTK_LIBS) gtk/libzbargtk.la $(AM_LIBADD)
$(PYGTK_LIBS) gtk/libzbargtk.la $(AM_LIBADD)
pygtk_zbarpygtk_la_DEPENDENCIES = gtk/libzbargtk.la
dist_pygtk_zbarpygtk_la_SOURCES = pygtk/zbarpygtkmodule.c

View File

@ -1,8 +1,8 @@
pyexec_LTLIBRARIES += python/zbar.la
python_zbar_la_CPPFLAGS = $(PYTHON_CFLAGS) $(AM_CPPFLAGS)
python_zbar_la_LDFLAGS = -shared -module -avoid-version -export-dynamic \
-export-symbols-regex '(initzbar|PyInit_zbar)'
python_zbar_la_LIBADD = $(PYTHON_LIBS) zbar/libzbar.la $(AM_LIBADD)
-export-symbols-regex '(initzbar|PyInit_zbar)' $(PYTHON_LDFLAGS)
python_zbar_la_LIBADD = zbar/libzbar.la $(AM_LIBADD)
python_zbar_la_SOURCES = python/zbarmodule.c python/zbarmodule.h \
python/enum.c python/exception.c python/symbol.c python/symbolset.c \

View File

@ -146,10 +146,10 @@ version (PyObject *self,
if(!PyArg_ParseTuple(args, ""))
return(NULL);
unsigned int major, minor;
zbar_version(&major, &minor, NULL);
unsigned int major, minor, patch;
zbar_version(&major, &minor, &patch);
return(Py_BuildValue("II", major, minor));
return(Py_BuildValue("III", major, minor, patch));
}
static PyObject*

View File

@ -15,4 +15,5 @@ qt/moc_%.cpp: qt/%.h
$(MOC) $(qt_libzbarqt_la_CPPFLAGS) $< -o $@
qt/moc_%.cpp: include/zbar/%.h
$(mkdir_p) qt
$(MOC) $(qt_libzbarqt_la_CPPFLAGS) $< -o $@

View File

@ -1342,7 +1342,7 @@ int main (int argc, char *argv[])
encode_junk(rnd_size + 1);
if (num_iter) {
for (iter == 0; iter < num_iter; iter++) {
for (iter = 0; iter < num_iter; iter++) {
test1();
seed = (rand() << 8) ^ rand();
}

View File

@ -32,7 +32,9 @@
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <assert.h>
#include <zbar.h>

View File

@ -1,7 +0,0 @@
#!/bin/sh
sudo apt-get install -y \
autopoint \
debian-archive-keyring \
dpkg \
gettext \
pbuilder

View File

@ -1,41 +0,0 @@
#!/bin/sh
set -e
: ${TARGET_ARCH:=amd64}
BASETGZ="$HOME/pbuilder-bases/debian-sid-$TARGET_ARCH.tgz"
MIRROR=http://cdn-fastly.deb.debian.org/debian
KEYRING=/usr/share/keyrings/debian-archive-keyring.gpg
if [ -z "$TRAVIS_TAG" ]
then
sudo \
sh -c "echo CCACHEDIR=$HOME/.ccache >> /etc/pbuilderrc"
fi
if [ "$CC" = clang ]
then
sudo sh -c \
"echo EXTRAPACKAGES='\"clang libomp-dev\"' >> /etc/pbuilderrc"
fi
if [ ! -e "$BASETGZ.stamp" ]
then
mkdir -p "$HOME/pbuilder-bases"
sudo pbuilder --create --basetgz "$BASETGZ" --mirror $MIRROR \
--distribution sid --architecture $TARGET_ARCH \
--debootstrapopts --variant=buildd \
--debootstrapopts --keyring=$KEYRING \
--debootstrapopts --include=perl
touch "$BASETGZ.stamp"
else
sudo pbuilder --update --basetgz "$BASETGZ"
fi
git archive --format tgz -o ../zbar_$(more configure.ac |grep AC_INIT|perl -ne 'print $1 if /(\d+.\d+)/').orig.tar.gz HEAD
DIR="$PWD"
cd ..
dpkg-source -b "$DIR"
env -i CC="$CC" CXX="$CXX" sudo pbuilder --build --debbuildopts --jobs=auto \
--basetgz "$BASETGZ" *.dsc

View File

@ -1,13 +0,0 @@
#!/bin/sh
sudo apt-get install -y \
autoconf \
automake \
autopoint \
autotools-dev \
gettext \
libdbus-1-dev \
pkg-config \
win-iconv-mingw-w64-dev \
binutils-mingw-w64-i686 gcc-mingw-w64 mingw-w64-i686-dev \
mingw-w64-common \
xmlto

View File

@ -1,19 +0,0 @@
#!/bin/sh
set -e
export PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig
autoreconf -vfi
CC=i686-w64-mingw32-gcc ./configure \
--host=i686-w64-mingw32 \
--prefix=/usr/local/win32 \
--with-directshow \
--without-gtk \
--without-python \
--without-qt --without-java \
--without-imagemagick \
--enable-pthread
make
sudo make install

View File

@ -1,20 +0,0 @@
#!/bin/sh
sudo apt-get install -y \
autoconf \
automake \
autopoint \
autotools-dev \
gettext \
libdbus-1-dev \
libgtk2.0-dev \
libmagick++-dev \
libqt5x11extras5-dev \
libv4l-dev \
libx11-dev \
openjdk-8-jdk-headless \
perl \
pkg-config \
python-all-dev \
python-all-dbg \
python-gtk2-dev \
xmlto

View File

@ -1,13 +0,0 @@
#!/bin/sh
set -e
autoreconf -vfi
# Travis CI sets wrong value
unset PYTHON_CFLAGS
export QT_SELECT=5
./configure
make
make check-local
sudo make install

View File

@ -1,23 +0,0 @@
#!/bin/sh
sudo apt-get install -y \
autoconf \
automake \
autopoint \
autotools-dev \
gettext \
libdbus-1-dev \
gir1.2-gtk-3.0 \
libgtk-3-dev \
libgirepository1.0-dev \
libmagick++-dev \
libqt5x11extras5-dev \
libv4l-dev \
libx11-dev \
openjdk-8-jdk-headless \
perl \
pkg-config \
python3-minimal \
python3-dev \
python3 \
python3-gi \
xmlto

View File

@ -1,13 +0,0 @@
#!/bin/sh
set -e
autoreconf -vfi
# Let configure get this
unset PYTHON_CFLAGS PYTHON
export QT_SELECT=5
./configure --with-gtk=gtk3 --with-python=python3
make
make check-local
sudo make install

View File

@ -1,6 +0,0 @@
#!/bin/bash
brew install gettext autoconf automake libiconv libtool \
gs graphicsmagick python xmlto pkg-config ccache
brew unlink libtool && brew link libtool
brew unlink gettext && brew link gettext

View File

@ -1,15 +0,0 @@
#!/bin/bash
set -e
export PATH="/usr/local/opt/libiconv/bin:$PATH"
export PATH="/usr/local/opt/ccache/libexec:$PATH"
export LDFLAGS="-L/usr/local/opt/libiconv/lib"
export CPPFLAGS="-I/usr/local/opt/libiconv/include"
autoreconf -vfi
./configure --disable-video --without-qt --without-gtk --disable-nls \
--with-python=python3 --without-imagemagick --with-graphicsmagick
make
sudo make install

View File

@ -1,3 +0,0 @@
#!/bin/bash
# Everything was already installed by before_install at .travis.yml

View File

@ -1,30 +0,0 @@
#!/bin/bash
set -e
export CONFIG_SHELL=/C/tools/msys64/usr/bin/bash.exe
export CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1;
export AR=gcc-ar;
export RANLIB=gcc-ranlib;
$shell autoreconf -vfi
prefix=/C/tools/msys64/mingw64/
$shell ./configure \
--prefix=$prefix \
${DIRECT_SHOW} \
--without-gtk \
--without-python \
--without-qt --without-java \
--without-imagemagick \
--enable-pthread --disable-dependency-tracking
echo "Building"
$shell $MAKE
echo "Installing"
# Ignore errors here, as it won't be able to create some dirs
$shell $MAKE install || true
echo "Success!"

View File

@ -1105,7 +1105,6 @@ int _zbar_best_format (uint32_t src,
int zbar_negotiate_format (zbar_video_t *vdo,
zbar_window_t *win)
{
static const uint32_t y800[2] = { fourcc('Y','8','0','0'), 0 };
errinfo_t *errdst;
const uint32_t *srcs, *dsts;
unsigned min_cost = -1;
@ -1115,26 +1114,23 @@ int zbar_negotiate_format (zbar_video_t *vdo,
if(!vdo && !win)
return(0);
if(win)
(void)window_lock(win);
(void)window_lock(win);
errdst = (vdo) ? &vdo->err : &win->err;
errdst = &vdo->err;
if(verify_format_sort()) {
if(win)
(void)window_unlock(win);
(void)window_unlock(win);
return(err_capture(errdst, SEV_FATAL, ZBAR_ERR_INTERNAL, __func__,
"image format list is not sorted!?"));
}
if((vdo && !vdo->formats) || (win && !win->formats)) {
if(win)
(void)window_unlock(win);
if(!vdo->format || !win->formats) {
(void)window_unlock(win);
return(err_capture(errdst, SEV_ERROR, ZBAR_ERR_UNSUPPORTED, __func__,
"no input or output formats available"));
}
srcs = (vdo) ? vdo->formats : y800;
dsts = (win) ? win->formats : y800;
srcs = vdo->formats;
dsts = win->formats;
for(fmt = _zbar_formats; *fmt; fmt++) {
/* only consider formats supported by video device */
@ -1163,8 +1159,8 @@ int zbar_negotiate_format (zbar_video_t *vdo,
vdo->formats = vdo->emu_formats;
vdo->emu_formats = NULL;
srcs = (vdo) ? vdo->formats : y800;
dsts = (win) ? win->formats : y800;
srcs = vdo->formats;
dsts = win->formats;
/*
* Use the same cost algorithm to select emulated formats.
@ -1196,14 +1192,11 @@ int zbar_negotiate_format (zbar_video_t *vdo,
}
}
if(win)
(void)window_unlock(win);
(void)window_unlock(win);
if(!min_fmt)
return(err_capture(errdst, SEV_ERROR, ZBAR_ERR_UNSUPPORTED, __func__,
"no supported image formats available"));
if(!vdo)
return(0);
zprintf(2, "setting best format %.4s(%08" PRIx32 ") (%d)\n",
(char*)&min_fmt, min_fmt, min_cost);

View File

@ -266,11 +266,9 @@ static inline char ean_part_end2 (ean_decoder_t *ean,
return(ZBAR_NONE);
/* extract parity bits */
par = ((pass->raw[1] & 0x10) >> 3 |
(pass->raw[2] & 0x10) >> 4);
par = ((pass->raw[1] & 0x10) >> 3 | (pass->raw[2] & 0x10) >> 4);
/* calculate "checksum" */
chk = ~((pass->raw[1] & 0xf) * 10 +
(pass->raw[2] & 0xf)) & 0x3;
chk = ~((pass->raw[1] & 0xf) * 10 + (pass->raw[2] & 0xf)) & 0x3;
dbprintf(2, " par=%x chk=%x", par, chk);
if(par != chk)
return(ZBAR_NONE);

View File

@ -21,13 +21,14 @@
* http://sourceforge.net/projects/zbar
*------------------------------------------------------------------------*/
#include "error.h"
#include "image.h"
#include "refcnt.h"
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include "error.h"
#include "image.h"
#include "refcnt.h"
zbar_image_t *zbar_image_create ()
{
zbar_image_t *img = calloc(1, sizeof(zbar_image_t));

View File

@ -891,7 +891,7 @@ static void *_zbar_scan_image(zbar_image_scanner_t *iscn,
unsigned w, h, cx1, cy1;
int density;
char filter;
int nean = 0, naddon = 0;
int nean, naddon;
/* timestamp image
* FIXME prefer video timestamp
@ -1062,7 +1062,8 @@ static void *_zbar_scan_image(zbar_image_scanner_t *iscn,
/* FIXME tmp hack to merge simple case EAN add-ons */
filter = (!iscn->enable_cache &&
(density == 1 || CFG(iscn, ZBAR_CFG_Y_DENSITY) == 1));
nean = 0, naddon = 0;
nean = 0;
naddon = 0;
if(syms->nsyms) {
zbar_symbol_t **symp;
for(symp = &syms->head; *symp; ) {

View File

@ -16,6 +16,8 @@
#include "error.h"
#include "img_scanner.h"
#define ENC_LIST_SIZE 4
static int text_is_ascii(const unsigned char *_text,int _len){
int i;
for(i=0;i<_len;i++)if(_text[i]>=0x80)return 0;
@ -50,9 +52,9 @@ static int text_is_big5(const unsigned char *_text, int _len){
return 1;
}
static void enc_list_mtf(iconv_t _enc_list[3],iconv_t _enc){
static void enc_list_mtf(iconv_t _enc_list[ENC_LIST_SIZE],iconv_t _enc){
int i;
for(i=0;i<4;i++)if(_enc_list[i]==_enc){
for(i=0;i<ENC_LIST_SIZE;i++)if(_enc_list[i]==_enc){
int j;
for(j=i;j-->0;)_enc_list[j+1]=_enc_list[j];
_enc_list[0]=_enc;
@ -90,7 +92,7 @@ int qr_code_data_list_extract_text(const qr_code_data_list *_qrlist,
for(i=0;i<nqrdata;i++)if(!mark[i]){
const qr_code_data *qrdataj;
const qr_code_data_entry *entry;
iconv_t enc_list[4];
iconv_t enc_list[ENC_LIST_SIZE];
iconv_t eci_cd;
int sa[16];
int sa_size;
@ -292,7 +294,7 @@ int qr_code_data_list_extract_text(const qr_code_data_list *_qrlist,
}
/*Try our list of encodings.*/
for(ei=0;ei<4;ei++)if(enc_list[ei]!=(iconv_t)-1){
for(ei=0;ei<ENC_LIST_SIZE;ei++)if(enc_list[ei]!=(iconv_t)-1){
/*According to the 2005 version of the standard,
ISO/IEC 8859-1 (one hyphen) is supposed to be used, but
reality is not always so (and in the 2000 version of the
@ -307,7 +309,7 @@ int qr_code_data_list_extract_text(const qr_code_data_list *_qrlist,
if(ei<3&&enc_list[ei]==latin1_cd&&
!text_is_latin1((unsigned char *)in,inleft)){
int ej;
for(ej=ei+1;ej<4;ej++)enc_list[ej-1]=enc_list[ej];
for(ej=ei+1;ej<ENC_LIST_SIZE;ej++)enc_list[ej-1]=enc_list[ej];
enc_list[3]=latin1_cd;
}
err=iconv(enc_list[ei],&in,&inleft,&out,&outleft)==(size_t)-1;

View File

@ -283,6 +283,7 @@ bool find_bottom_dot(zbar_image_t *img, sq_dot *dot, unsigned *found_x,
unsigned *found_y)
{
int x, y;
for (x = dot->x0 + dot->width - 1; x >= (int) dot->x0; x--) {
for (y = dot->y0 + dot->height;
y < (int) (dot->y0 + 3 * dot->height); y++) {

View File

@ -98,38 +98,80 @@ const char *zbar_get_orientation_name (zbar_orientation_t orient)
}
}
#ifndef _MSC_VER
static const signed char _zbar_symbol_hash[ZBAR_CODE128 + 1] = {
[0 ... ZBAR_CODE128] = -1,
/* [ZBAR_FOO] = 0, is empty */
[ZBAR_SQCODE] = 1,
[ZBAR_CODE128] = 2,
[ZBAR_EAN13] = 3,
[ZBAR_UPCA] = 4,
[ZBAR_EAN8] = 5,
[ZBAR_UPCE] = 6,
[ZBAR_ISBN13] = 7,
[ZBAR_ISBN10] = 8,
[ZBAR_CODE39] = 9,
[ZBAR_I25] = 10,
[ZBAR_PDF417] = 11,
[ZBAR_QRCODE] = 12,
[ZBAR_DATABAR] = 13,
[ZBAR_DATABAR_EXP] = 14,
[ZBAR_CODE93] = 15,
[ZBAR_EAN2] = 16,
[ZBAR_EAN5] = 17,
[ZBAR_COMPOSITE] = 18,
[ZBAR_CODABAR] = 19,
/* Please update NUM_SYMS accordingly */
};
static const signed char *_init_hash() { return _zbar_symbol_hash; };
#else
/*
* Needed By Microsoft C. Even on Visual Studio 2019, C99 designated
* identifiers aren't supported! So, we need this hack.
*/
static const signed char *_init_hash() {
static signed char hash[ZBAR_CODE128 + 1] = { -1 };
static int was_initialized = 0;
if (was_initialized)
return (const signed char *)hash;
memset(hash, -1, sizeof(hash));
/* Keep in sync with the C99 implementation */
hash[ZBAR_SQCODE] = 1,
hash[ZBAR_CODE128] = 2,
hash[ZBAR_EAN13] = 3,
hash[ZBAR_UPCA] = 4,
hash[ZBAR_EAN8] = 5,
hash[ZBAR_UPCE] = 6,
hash[ZBAR_ISBN13] = 7,
hash[ZBAR_ISBN10] = 8,
hash[ZBAR_CODE39] = 9,
hash[ZBAR_I25] = 10,
hash[ZBAR_PDF417] = 11,
hash[ZBAR_QRCODE] = 12,
hash[ZBAR_DATABAR] = 13,
hash[ZBAR_DATABAR_EXP] = 14,
hash[ZBAR_CODE93] = 15,
hash[ZBAR_EAN2] = 16,
hash[ZBAR_EAN5] = 17,
hash[ZBAR_COMPOSITE] = 18,
hash[ZBAR_CODABAR] = 19;
was_initialized = 1;
return (const signed char *)hash;
};
#endif
int _zbar_get_symbol_hash (zbar_symbol_type_t sym)
{
int h;
signed char hash[ZBAR_CODE128 + 1] = { 0 };
{
//[0 ... ZBAR_CODE128] = -1,
memset(hash, -1, sizeof(hash));
/* [ZBAR_FOO] = 0, is empty */
hash[ZBAR_SQCODE] = 1,
hash[ZBAR_CODE128] = 2,
hash[ZBAR_EAN13] = 3,
hash[ZBAR_UPCA] = 4,
hash[ZBAR_EAN8] = 5,
hash[ZBAR_UPCE] = 6,
hash[ZBAR_ISBN13] = 7,
hash[ZBAR_ISBN10] = 8,
hash[ZBAR_CODE39] = 9,
hash[ZBAR_I25] = 10,
hash[ZBAR_PDF417] = 11,
hash[ZBAR_QRCODE] = 12,
hash[ZBAR_DATABAR] = 13,
hash[ZBAR_DATABAR_EXP] = 14,
hash[ZBAR_CODE93] = 15,
hash[ZBAR_EAN2] = 16,
hash[ZBAR_EAN5] = 17,
hash[ZBAR_COMPOSITE] = 18,
hash[ZBAR_CODABAR] = 19;
/* Please update NUM_SYMS accordingly */
}
const signed char *hash = _init_hash();
assert (sym >= ZBAR_PARTIAL && sym <= ZBAR_CODE128);

View File

@ -1015,8 +1015,10 @@ static int dshow_determine_formats(zbar_video_t* vdo)
if (is_supported)
{
// first search for existing fourcc format
resolution_t resolution;
int j;
// first search for existing fourcc format
for (j = 0; j < n; ++j)
{
if (state->int_formats[i].fourcc == fmt)
@ -1031,11 +1033,11 @@ static int dshow_determine_formats(zbar_video_t* vdo)
vdo->formats[n] = fmt;
++n;
}
{
resolution_t resolution = { bih->biWidth, bih->biHeight };
resolution.cx = bih->biWidth;
resolution.cy = bih->biHeight;
resolution_list_add(&state->int_formats[j].resolutions,
&resolution);
}
}
}
// note: other format types could be possible, e.g. VIDEOINFOHEADER2 ...

View File

@ -29,8 +29,12 @@
# include <stdlib.h>
#endif
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

View File

@ -167,13 +167,13 @@ int _zbar_window_end (zbar_window_t *w)
int _zbar_window_clear (zbar_window_t *w)
{
RECT r = { 0, 0, w->width, w->height };
HDC hdc = GetDC(w->display);
if(!hdc)
return(-1/*FIXME*/);
{
RECT r = { 0, 0, w->width, w->height };
FillRect(hdc, &r, GetStockObject(BLACK_BRUSH));
}
ReleaseDC(w->display, hdc);
ValidateRect(w->display, NULL);
return(0);
@ -273,15 +273,14 @@ int _zbar_window_fill_rect (zbar_window_t *w,
point_t org,
point_t size)
{
RECT r = { org.x, org.y, org.x + size.x, org.y + size.y };
HDC hdc = w->state->hdc;
SetDCBrushColor(hdc, RGB((rgb & 4) * 0x33,
(rgb & 2) * 0x66,
(rgb & 1) * 0xcc));
{
RECT r = { org.x, org.y, org.x + size.x, org.y + size.y };
FillRect(hdc, &r, GetStockObject(DC_BRUSH));
}
return(0);
}

View File

@ -28,6 +28,7 @@ DISTCLEANFILES += $(nodist_zbarcam_zbarcam_qt_SOURCES) zbarcam/moc_zbarcam_qt.h
zbarcam/moc_zbarcam_qt.h: zbarcam/zbarcam-qt.cpp
$(mkdir_p) zbarcam
$(MOC) -i $(zbarcam_zbarcam_qt_CPPFLAGS) $< -o $@
endif

View File

@ -21,6 +21,8 @@
* http://sourceforge.net/projects/zbar
*------------------------------------------------------------------------*/
#include <config.h>
#include <fcntl.h>
#include <ftw.h>
#include <stdio.h>
@ -32,8 +34,9 @@
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif
typedef void (cb_t) (void *userdata, const char *device);
struct devnodes {