As mentioned on:
https://cpython-ericholscher.readthedocs.io/en/sphinx-hoverxref/whatsnew/3.9.html
The PyEval_InitThreads() and PyEval_ThreadsInitialized() functions are now
deprecated and will be removed in Python 3.11. Calling PyEval_InitThreads()
now does nothing. The GIL is initialized by Py_Initialize() since Python 3.7.
So, let's not call it on Python 3.9, in order to avoid a
warning noise.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
As reported by:
https://github.com/mchehab/zbar/issues/92
python bindings don't build with Python 3.9, because it is
using tp_print, which has been silently ignored since Python
3.0, according with[1]:
"The tp_print slot of PyTypeObject has been removed.
It was used for printing objects to files in Python 2.7
and before.
Since Python 3.0, it has been ignored and unused."
[1] https://docs.python.org/3.9/whatsnew/3.9.html#id3
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
When decoders encounter binary data, they attempt to guess the encoding
of the data and convert it to text. This destroys other types of data.
The new boolean decoder configuration option ZBAR_CFG_BINARY
suppresses this automatic character set conversion.
The decoders that support it will output the raw binary data.
Signed-off-by: Matheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
As we're maintaining ZBar now mainly at github, update its
location along some places.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
As described at:
http://python3porting.com/cextensions.html
PyObject should be replaced by PyVarObject on python3. This
is backward-compatible with python 2.6 and python 2.7. So,
it should work fine for all practical purposes.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
As python3 default type is unicode, we should return unicode
to it, as otherwise symbols won't be properly displayed.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
On python 3, everything is converted internally to utf-8.
So, in order to have the same API to work with both python2
and python3, we need to teach python C API bindings to handle
unicode too.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
The python3 port uses a different symbol for the zbar initialization
code. re-add the -export-symbol-regex with was removed from libtool,
ensuring that only either initzbar (Python2) or PyInit_zbar (Python3)
will be exported.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Add support for SQ code, a simple 2D barcode. zbarimg works with images
without noise elements. Language bindings have not been tested.
Signed-off-by: Javier Serrano Polo <javier@jasp.net>
The zbar python binding is written for python 2. I doesn't build
with python 3. While nobody works on such conversion, better to
let it clearer.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Some of the examples and test code don't work with python 2.7
and PIL. Modernize them by running 2to3 and fixing PIL manually.
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
- remove (broken/tmp) converted image result sharing
- add explicit symbol recycle API, update processor/widgets to use
- cleanup and update C++ API
- update Python/Perl APIs
- fix broken and add new Python/Perl tests
--HG--
branch : qr