mirror of https://github.com/status-im/qzxing.git
updated the QQrDecoder project to use the library source.
This commit is contained in:
parent
4f5efb0436
commit
377f9104d0
|
@ -1,14 +0,0 @@
|
|||
moc/
|
||||
obj/
|
||||
rcc/
|
||||
tmp/
|
||||
ui/
|
||||
.make.cache
|
||||
*.BAT
|
||||
*.inf
|
||||
Makefile
|
||||
*.mk
|
||||
*.loc
|
||||
*.user
|
||||
*.mmp
|
||||
*.pkg
|
|
@ -280,7 +280,7 @@ void QCameraControllerWidget::captureImage()
|
|||
|
||||
void QCameraControllerWidget::onImageCaptured(int id, const QImage &preview)
|
||||
{
|
||||
m_stillImageCapture->cancelCapture();
|
||||
// m_stillImageCapture->cancelCapture();
|
||||
// showViewFinder = false;
|
||||
m_focusing = false;
|
||||
pictureCaptured = true;
|
||||
|
@ -372,9 +372,9 @@ void QCameraControllerWidget::paintEvent(QPaintEvent *event)
|
|||
if (!m_focusMessage.isEmpty())
|
||||
painter.drawText(r, Qt::AlignCenter, m_focusMessage);
|
||||
|
||||
} else {
|
||||
}/* else {
|
||||
painter.fillRect(event->rect(), palette().background());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void QCameraControllerWidget::redirectImageSignalFromVideoFinder(QImage image)
|
||||
|
|
|
@ -35,8 +35,9 @@
|
|||
#include <QPoint>
|
||||
#include <QPixmap>
|
||||
#include <QMessageBox>
|
||||
#include <QDebug>
|
||||
|
||||
QQrDecoder::QQrDecoder(QWidget *parent): QMainWindow(parent), decoder(this)
|
||||
QQrDecoder::QQrDecoder(QWidget *parent): QMainWindow(parent), decoder(QZXing::DecoderFormat_QR_CODE)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
connect(ui.centralwidget, SIGNAL(imageCaptured(QImage)), this, SLOT(decodeImage(QImage)));
|
||||
|
@ -53,7 +54,11 @@ QQrDecoder::~QQrDecoder()
|
|||
|
||||
void QQrDecoder::decodeImage(QImage originalImage)
|
||||
{
|
||||
decoder.decodeImage(originalImage);
|
||||
qDebug() << "Start of decoding";
|
||||
decoder.decodeImage(originalImage,640, 640, false);
|
||||
qDebug() << "End of decoding";
|
||||
|
||||
ui.retranslateUi(this);
|
||||
}
|
||||
|
||||
void QQrDecoder::reportTagFound(QString tag)
|
||||
|
|
|
@ -4,7 +4,7 @@ QT += core \
|
|||
gui \
|
||||
declarative
|
||||
|
||||
VERSION = 1.3.0
|
||||
VERSION = 2.0.0
|
||||
|
||||
CONFIG += mobility
|
||||
MOBILITY = multimedia #\
|
||||
|
@ -12,6 +12,8 @@ MOBILITY = multimedia #\
|
|||
|
||||
RESOURCES += resources.qrc
|
||||
|
||||
include(../../source/QZXing.pri)
|
||||
|
||||
HEADERS += QQrDecoder.h \
|
||||
QCameraControllerWidget.h \
|
||||
button.h \
|
||||
|
@ -38,11 +40,11 @@ symbian{
|
|||
LocalServices \
|
||||
UserEnvironment
|
||||
|
||||
customrules.pkg_prerules = \
|
||||
";QZXing" \
|
||||
"@\"$$(EPOCROOT)Epoc32/InstallToDevice/QZXing_selfsigned.sis\",(0xE618743C)"\
|
||||
" "
|
||||
DEPLOYMENT += customrules
|
||||
# customrules.pkg_prerules = \
|
||||
# ";QZXing" \
|
||||
# "@\"$$(EPOCROOT)Epoc32/InstallToDevice/QZXing_selfsigned.sis\",(0xE618743C)"\
|
||||
# " "
|
||||
# DEPLOYMENT += customrules
|
||||
}
|
||||
|
||||
ICON = QQrDecoder.svg
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
// ============================================================================
|
||||
// * Generated by qmake (2.01a) (Qt 4.7.3) on: 2012-05-14T15:44:30
|
||||
// * This file is generated by qmake and should not be modified by the
|
||||
// * user.
|
||||
// ============================================================================
|
||||
|
||||
CHARACTER_SET UTF8
|
||||
#include <appinfo.rh>
|
||||
#include "QQrDecoder.loc"
|
||||
|
||||
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
|
||||
{
|
||||
short_caption = STRING_r_short_caption;
|
||||
caption_and_icon =
|
||||
CAPTION_AND_ICON_INFO
|
||||
{
|
||||
caption = STRING_r_caption;
|
||||
number_of_icons = 1;
|
||||
icon_file = "\\resource\\apps\\QQrDecoder.mif";
|
||||
};
|
||||
}
|
||||
|
Binary file not shown.
|
@ -1,18 +0,0 @@
|
|||
// ============================================================================
|
||||
// * Generated by qmake (2.01a) (Qt 4.7.3) on: 2012-05-14T15:44:30
|
||||
// * This file is generated by qmake and should not be modified by the
|
||||
// * user.
|
||||
// ============================================================================
|
||||
|
||||
#include <QQrDecoder.rsg>
|
||||
#include <appinfo.rh>
|
||||
|
||||
UID2 KUidAppRegistrationResourceFile
|
||||
UID3 0xEF2CE79D
|
||||
|
||||
RESOURCE APP_REGISTRATION_INFO
|
||||
{
|
||||
app_file="QQrDecoder";
|
||||
localisable_resource_file="\\resource\\apps\\QQrDecoder";
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
TEMPLATE = app
|
||||
TARGET = QQrDecoder
|
||||
QT += core \
|
||||
gui \
|
||||
declarative
|
||||
|
||||
VERSION = 1.3.0
|
||||
|
||||
CONFIG += mobility
|
||||
MOBILITY = multimedia #\
|
||||
#systeminfo
|
||||
|
||||
RESOURCES += resources.qrc
|
||||
|
||||
HEADERS += QQrDecoder.h \
|
||||
QCameraControllerWidget.h \
|
||||
button.h \
|
||||
myvideosurface.h
|
||||
SOURCES += main.cpp \
|
||||
QQrDecoder.cpp \
|
||||
QCameraControllerWidget.cpp \
|
||||
button.cpp \
|
||||
myvideosurface.cpp
|
||||
FORMS += QQrDecoder.ui
|
||||
|
||||
symbian{
|
||||
TARGET.UID3 = 0xEF2CE79D
|
||||
TARGET.EPOCSTACKSIZE = 0x14000
|
||||
TARGET.EPOCHEAPSIZE = 0x20000 0x8000000
|
||||
|
||||
# Because landscape orientation lock
|
||||
LIBS += -lcone -leikcore -lavkon -lqzxing
|
||||
|
||||
# Self-signing capabilities
|
||||
TARGET.CAPABILITY += NetworkServices \
|
||||
ReadUserData \
|
||||
WriteUserData \
|
||||
LocalServices \
|
||||
UserEnvironment
|
||||
|
||||
customrules.pkg_prerules = \
|
||||
";QZXing" \
|
||||
"@\"$$(EPOCROOT)Epoc32/InstallToDevice/QZXing_selfsigned.sis\",(0xE618743C)"\
|
||||
" "
|
||||
DEPLOYMENT += customrules
|
||||
}
|
||||
|
||||
ICON = QQrDecoder.svg
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
moc/
|
||||
obj/
|
||||
rcc/
|
||||
tmp/
|
||||
ui/
|
||||
.make.cache
|
||||
*.BAT
|
||||
*.inf
|
||||
Makefile
|
||||
*.mk
|
||||
*.loc
|
||||
*.user
|
||||
*.mmp
|
||||
*.pkg
|
|
@ -3,8 +3,6 @@
|
|||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
#include <vld.h>
|
||||
|
||||
CameraImageWrapper::CameraImageWrapper() : LuminanceSource(0,0), isSmoothTransformationEnabled(false)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,118 +0,0 @@
|
|||
EXPORTS
|
||||
_ZN6QZXing10setDecoderEj @ 1 NONAME
|
||||
_ZN6QZXing11decodeImageE6QImage @ 2 NONAME
|
||||
_ZN6QZXing11qt_metacallEN11QMetaObject4CallEiPPv @ 3 NONAME
|
||||
_ZN6QZXing11qt_metacastEPKc @ 4 NONAME
|
||||
_ZN6QZXing14decodeImageQMLEP7QObject @ 5 NONAME
|
||||
_ZN6QZXing15decodingStartedEv @ 6 NONAME
|
||||
_ZN6QZXing16decodingFinishedEb @ 7 NONAME
|
||||
_ZN6QZXing16staticMetaObjectE @ 8 NONAME DATA 16
|
||||
_ZN6QZXing17decodeSubImageQMLEP7QObjectdddd @ 9 NONAME
|
||||
_ZN6QZXing19getStaticMetaObjectEv @ 10 NONAME
|
||||
_ZN6QZXing8tagFoundE7QString @ 11 NONAME
|
||||
_ZN6QZXingC1EP7QObject @ 12 NONAME
|
||||
_ZN6QZXingC2EP7QObject @ 13 NONAME
|
||||
_ZNK6QZXing10metaObjectEv @ 14 NONAME
|
||||
_ZTI12ImageHandler @ 15 NONAME
|
||||
_ZTI18CameraImageWrapper @ 16 NONAME
|
||||
_ZTI6QZXing @ 17 NONAME
|
||||
_ZTIN5zxing10datamatrix16DataMatrixReaderE @ 18 NONAME
|
||||
_ZTIN5zxing10datamatrix17DetectorExceptionE @ 19 NONAME
|
||||
_ZTIN5zxing10datamatrix7VersionE @ 20 NONAME
|
||||
_ZTIN5zxing10datamatrix8DetectorE @ 21 NONAME
|
||||
_ZTIN5zxing11ResultPointE @ 22 NONAME
|
||||
_ZTIN5zxing12BinaryBitmapE @ 23 NONAME
|
||||
_ZTIN5zxing15FormatExceptionE @ 24 NONAME
|
||||
_ZTIN5zxing15HybridBinarizerE @ 25 NONAME
|
||||
_ZTIN5zxing15LuminanceSourceE @ 26 NONAME
|
||||
_ZTIN5zxing15ReaderExceptionE @ 27 NONAME
|
||||
_ZTIN5zxing17MultiFormatReaderE @ 28 NONAME
|
||||
_ZTIN5zxing17NotFoundExceptionE @ 29 NONAME
|
||||
_ZTIN5zxing19ResultPointCallbackE @ 30 NONAME
|
||||
_ZTIN5zxing20ReedSolomonExceptionE @ 31 NONAME
|
||||
_ZTIN5zxing24GlobalHistogramBinarizerE @ 32 NONAME
|
||||
_ZTIN5zxing24GreyscaleLuminanceSourceE @ 33 NONAME
|
||||
_ZTIN5zxing24IllegalArgumentExceptionE @ 34 NONAME
|
||||
_ZTIN5zxing31GreyscaleRotatedLuminanceSourceE @ 35 NONAME
|
||||
_ZTIN5zxing4oned10EAN8ReaderE @ 36 NONAME
|
||||
_ZTIN5zxing4oned10OneDReaderE @ 37 NONAME
|
||||
_ZTIN5zxing4oned10UPCAReaderE @ 38 NONAME
|
||||
_ZTIN5zxing4oned10UPCEReaderE @ 39 NONAME
|
||||
_ZTIN5zxing4oned11EAN13ReaderE @ 40 NONAME
|
||||
_ZTIN5zxing4oned12Code39ReaderE @ 41 NONAME
|
||||
_ZTIN5zxing4oned12UPCEANReaderE @ 42 NONAME
|
||||
_ZTIN5zxing4oned13Code128ReaderE @ 43 NONAME
|
||||
_ZTIN5zxing4oned21MultiFormatOneDReaderE @ 44 NONAME
|
||||
_ZTIN5zxing4oned23MultiFormatUPCEANReaderE @ 45 NONAME
|
||||
_ZTIN5zxing4oned9ITFReaderE @ 46 NONAME
|
||||
_ZTIN5zxing5aztec11AztecReaderE @ 47 NONAME
|
||||
_ZTIN5zxing5multi13MultiDetectorE @ 48 NONAME
|
||||
_ZTIN5zxing5multi16ByQuadrantReaderE @ 49 NONAME
|
||||
_ZTIN5zxing5multi17QRCodeMultiReaderE @ 50 NONAME
|
||||
_ZTIN5zxing5multi21MultipleBarcodeReaderE @ 51 NONAME
|
||||
_ZTIN5zxing5multi24MultiFinderPatternFinderE @ 52 NONAME
|
||||
_ZTIN5zxing5multi28GenericMultipleBarcodeReaderE @ 53 NONAME
|
||||
_ZTIN5zxing6ReaderE @ 54 NONAME
|
||||
_ZTIN5zxing6ResultE @ 55 NONAME
|
||||
_ZTIN5zxing6qrcode12QRCodeReaderE @ 56 NONAME
|
||||
_ZTIN5zxing6qrcode14QREdgeDetectorE @ 57 NONAME
|
||||
_ZTIN5zxing6qrcode22AlignmentPatternFinderE @ 58 NONAME
|
||||
_ZTIN5zxing6qrcode7VersionE @ 59 NONAME
|
||||
_ZTIN5zxing6qrcode8DataMaskE @ 60 NONAME
|
||||
_ZTIN5zxing6qrcode8DetectorE @ 61 NONAME
|
||||
_ZTIN5zxing8BitArrayE @ 62 NONAME
|
||||
_ZTIN5zxing9BinarizerE @ 63 NONAME
|
||||
_ZTIN5zxing9BitMatrixE @ 64 NONAME
|
||||
_ZTIN5zxing9ExceptionE @ 65 NONAME
|
||||
_ZTV12ImageHandler @ 66 NONAME
|
||||
_ZTV18CameraImageWrapper @ 67 NONAME
|
||||
_ZTV6QZXing @ 68 NONAME
|
||||
_ZTVN5zxing10datamatrix16DataMatrixReaderE @ 69 NONAME
|
||||
_ZTVN5zxing10datamatrix17DetectorExceptionE @ 70 NONAME
|
||||
_ZTVN5zxing10datamatrix7VersionE @ 71 NONAME
|
||||
_ZTVN5zxing10datamatrix8DetectorE @ 72 NONAME
|
||||
_ZTVN5zxing11ResultPointE @ 73 NONAME
|
||||
_ZTVN5zxing12BinaryBitmapE @ 74 NONAME
|
||||
_ZTVN5zxing15FormatExceptionE @ 75 NONAME
|
||||
_ZTVN5zxing15HybridBinarizerE @ 76 NONAME
|
||||
_ZTVN5zxing15LuminanceSourceE @ 77 NONAME
|
||||
_ZTVN5zxing15ReaderExceptionE @ 78 NONAME
|
||||
_ZTVN5zxing17MultiFormatReaderE @ 79 NONAME
|
||||
_ZTVN5zxing17NotFoundExceptionE @ 80 NONAME
|
||||
_ZTVN5zxing19ResultPointCallbackE @ 81 NONAME
|
||||
_ZTVN5zxing20ReedSolomonExceptionE @ 82 NONAME
|
||||
_ZTVN5zxing24GlobalHistogramBinarizerE @ 83 NONAME
|
||||
_ZTVN5zxing24GreyscaleLuminanceSourceE @ 84 NONAME
|
||||
_ZTVN5zxing24IllegalArgumentExceptionE @ 85 NONAME
|
||||
_ZTVN5zxing31GreyscaleRotatedLuminanceSourceE @ 86 NONAME
|
||||
_ZTVN5zxing4oned10EAN8ReaderE @ 87 NONAME
|
||||
_ZTVN5zxing4oned10OneDReaderE @ 88 NONAME
|
||||
_ZTVN5zxing4oned10UPCAReaderE @ 89 NONAME
|
||||
_ZTVN5zxing4oned10UPCEReaderE @ 90 NONAME
|
||||
_ZTVN5zxing4oned11EAN13ReaderE @ 91 NONAME
|
||||
_ZTVN5zxing4oned12Code39ReaderE @ 92 NONAME
|
||||
_ZTVN5zxing4oned12UPCEANReaderE @ 93 NONAME
|
||||
_ZTVN5zxing4oned13Code128ReaderE @ 94 NONAME
|
||||
_ZTVN5zxing4oned21MultiFormatOneDReaderE @ 95 NONAME
|
||||
_ZTVN5zxing4oned23MultiFormatUPCEANReaderE @ 96 NONAME
|
||||
_ZTVN5zxing4oned9ITFReaderE @ 97 NONAME
|
||||
_ZTVN5zxing5aztec11AztecReaderE @ 98 NONAME
|
||||
_ZTVN5zxing5multi13MultiDetectorE @ 99 NONAME
|
||||
_ZTVN5zxing5multi16ByQuadrantReaderE @ 100 NONAME
|
||||
_ZTVN5zxing5multi17QRCodeMultiReaderE @ 101 NONAME
|
||||
_ZTVN5zxing5multi21MultipleBarcodeReaderE @ 102 NONAME
|
||||
_ZTVN5zxing5multi24MultiFinderPatternFinderE @ 103 NONAME
|
||||
_ZTVN5zxing5multi28GenericMultipleBarcodeReaderE @ 104 NONAME
|
||||
_ZTVN5zxing6ReaderE @ 105 NONAME
|
||||
_ZTVN5zxing6ResultE @ 106 NONAME
|
||||
_ZTVN5zxing6qrcode12QRCodeReaderE @ 107 NONAME
|
||||
_ZTVN5zxing6qrcode14QREdgeDetectorE @ 108 NONAME
|
||||
_ZTVN5zxing6qrcode22AlignmentPatternFinderE @ 109 NONAME
|
||||
_ZTVN5zxing6qrcode7VersionE @ 110 NONAME
|
||||
_ZTVN5zxing6qrcode8DataMaskE @ 111 NONAME
|
||||
_ZTVN5zxing6qrcode8DetectorE @ 112 NONAME
|
||||
_ZTVN5zxing8BitArrayE @ 113 NONAME
|
||||
_ZTVN5zxing9BinarizerE @ 114 NONAME
|
||||
_ZTVN5zxing9BitMatrixE @ 115 NONAME
|
||||
_ZTVN5zxing9ExceptionE @ 116 NONAME
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
The Debian Package qzxing
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- unknown <> Wed, 16 Nov 2011 18:02:57 +0200
|
|
@ -1,5 +0,0 @@
|
|||
qzxing (0.0.1) unstable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- unknown <> Wed, 16 Nov 2011 18:02:57 +0200
|
|
@ -1 +0,0 @@
|
|||
7
|
|
@ -1,15 +0,0 @@
|
|||
Source: qzxing
|
||||
Section: user/hidden
|
||||
Priority: optional
|
||||
Maintainer: unknown <>
|
||||
Build-Depends: debhelper (>= 5), libqt4-dev
|
||||
Standards-Version: 3.7.3
|
||||
Homepage: <insert the upstream URL, if relevant>
|
||||
|
||||
Package: qzxing
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: <insert up to 60 chars description>
|
||||
<insert long description, indented with spaces>
|
||||
XB-Maemo-Display-Name: QZXing
|
||||
XB-Maemo-Icon-26:
|
|
@ -1,40 +0,0 @@
|
|||
This package was debianized by unknown <> on
|
||||
Wed, 16 Nov 2011 18:02:57 +0200.
|
||||
|
||||
It was downloaded from <url://example.com>
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
<put author's name and email here>
|
||||
<likewise for another author>
|
||||
|
||||
Copyright:
|
||||
|
||||
<Copyright (C) YYYY Name OfAuthor>
|
||||
<likewise for another author>
|
||||
|
||||
License:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This package 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2011, unknown <> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
|
@ -1,91 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
# qmake PREFIX=/usr# Uncomment this line for use without Qt Creator
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
# $(MAKE) # Uncomment this line for use without Qt Creator
|
||||
#docbook-to-man debian/qzxing.sgml > qzxing.1
|
||||
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
$(MAKE) clean
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/qzxing.
|
||||
$(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/qzxing install
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_python
|
||||
# dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_shlibdeps # Uncomment this line for use without Qt Creator
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
@ -1,6 +0,0 @@
|
|||
The Debian Package qzxing
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- unknown <> Mon, 14 May 2012 15:23:23 +0300
|
|
@ -1,5 +0,0 @@
|
|||
qzxing (0.0.1) unstable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
-- unknown <> Mon, 14 May 2012 15:23:23 +0300
|
|
@ -1 +0,0 @@
|
|||
7
|
|
@ -1,14 +0,0 @@
|
|||
Source: qzxing
|
||||
Section: user/other
|
||||
Priority: optional
|
||||
Maintainer: unknown <>
|
||||
Build-Depends: debhelper (>= 5), libqt4-dev
|
||||
Standards-Version: 3.7.3
|
||||
Homepage: <insert the upstream URL, if relevant>
|
||||
|
||||
Package: qzxing
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: <insert up to 60 chars description>
|
||||
<insert long description, indented with spaces>
|
||||
XSBC-Maemo-Display-Name: QZXing
|
|
@ -1,40 +0,0 @@
|
|||
This package was debianized by unknown <> on
|
||||
Mon, 14 May 2012 15:23:23 +0300.
|
||||
|
||||
It was downloaded from <url://example.com>
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
<put author's name and email here>
|
||||
<likewise for another author>
|
||||
|
||||
Copyright:
|
||||
|
||||
<Copyright (C) YYYY Name OfAuthor>
|
||||
<likewise for another author>
|
||||
|
||||
License:
|
||||
|
||||
This package is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This package 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 General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2012, unknown <> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
|
@ -1,70 +0,0 @@
|
|||
AutoGenerateAegisFile
|
||||
<!-- Aegis manifest declares the security credentials required by an
|
||||
application to run correctly. By default, a manifest file will be
|
||||
created or updated automatically as a part of build.
|
||||
|
||||
The detection of required credentials is based on static scan of
|
||||
application binaries. In some cases, the scan may not be able to
|
||||
detect the correct set of permissions. If this is the case, you must
|
||||
declare the credentials required by your application in this file.
|
||||
|
||||
To create a manifest file automatically as a part of build (DEFAULT):
|
||||
|
||||
* Make sure this file starts with the string "AutoGenerateAegisFile" (without quotes).
|
||||
* Alternatively, it can also be completely empty.
|
||||
|
||||
To provide a manifest yourself:
|
||||
|
||||
* List the correct credentials for the application in this file.
|
||||
* Some commented-out examples of often required tokens are provided.
|
||||
* Ensure the path to your application binary given in
|
||||
'<for path="/path/to/app" />' is correct.
|
||||
* Please do not request more credentials than what your application
|
||||
actually requires.
|
||||
|
||||
To disable manifest file:
|
||||
|
||||
* Replace this file with a file starting with the string "NoAegisFile" (without quotes).
|
||||
* Final application package will not contain a manifest.
|
||||
|
||||
-->
|
||||
<aegis>
|
||||
<request policy="add">
|
||||
|
||||
<!-- Make a GSM call, send text messages (SMS). -->
|
||||
<!--
|
||||
<credential name="Cellular" />
|
||||
-->
|
||||
|
||||
<!-- Access Facebook social data. -->
|
||||
<!--
|
||||
<credential name="FacebookSocial" />
|
||||
-->
|
||||
|
||||
<!-- Read access to data stored in tracker. -->
|
||||
<!--
|
||||
<credential name="TrackerReadAccess" />
|
||||
-->
|
||||
|
||||
<!-- Read and write access to data stored in tracker. -->
|
||||
<!--
|
||||
<credential name="TrackerWriteAccess" />
|
||||
-->
|
||||
|
||||
<!-- Read Location information. -->
|
||||
<!--
|
||||
<credential name="Location" />
|
||||
-->
|
||||
|
||||
<!-- Access to Audio, Multimedia and Camera. -->
|
||||
<!--
|
||||
<credential name="GRP::pulse-access" />
|
||||
<credential name="GRP::video" />
|
||||
<credential name="GRP::audio" />
|
||||
-->
|
||||
|
||||
</request>
|
||||
|
||||
<for path="/opt/QZXing/bin/QZXing" />
|
||||
<for path="applauncherd-launcher::/usr/bin/applauncherd.bin" id="" />
|
||||
</aegis>
|
|
@ -1,91 +0,0 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# This file was originally written by Joey Hess and Craig Small.
|
||||
# As a special exception, when this file is copied by dh-make into a
|
||||
# dh-make output file, you may use that output file without restriction.
|
||||
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
# qmake PREFIX=/usr# Uncomment this line for use without Qt Creator
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
# $(MAKE) # Uncomment this line for use without Qt Creator
|
||||
#docbook-to-man debian/qzxing.sgml > qzxing.1
|
||||
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
$(MAKE) clean
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package into debian/qzxing.
|
||||
$(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/qzxing install
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_python
|
||||
# dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_shlibdeps # Uncomment this line for use without Qt Creator
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
|
@ -1,87 +0,0 @@
|
|||
#include "qzxingworker_p.h"
|
||||
|
||||
#include <zxing/common/GlobalHistogramBinarizer.h>
|
||||
#include <zxing/Binarizer.h>
|
||||
#include <zxing/BinaryBitmap.h>
|
||||
#include <zxing/MultiFormatReader.h>
|
||||
#include <zxing/DecodeHints.h>
|
||||
#include "CameraImageWrapper.h"
|
||||
#include "imagehandler.h"
|
||||
#include <QTime>
|
||||
#include <qzxing.h>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
using namespace zxing;
|
||||
|
||||
QZXingWorker_p::QZXingWorker_p(QObject *parent) :
|
||||
QObject(parent), maxWidth(-1), maxHeight(-1), smoothTransformation(false)
|
||||
{
|
||||
}
|
||||
|
||||
QString QZXingWorker_p::decode()
|
||||
{
|
||||
qDebug() << "Entered threaded decoding";
|
||||
QTime t;
|
||||
t.start();
|
||||
Ref<Result> res;
|
||||
emit decodingStarted();
|
||||
|
||||
if(image.isNull())
|
||||
{
|
||||
emit decodingFinished(false);
|
||||
|
||||
*processingTime = -1;
|
||||
|
||||
qDebug() << "Exited threaded decoding, error";
|
||||
|
||||
emit quitThread();
|
||||
return "";
|
||||
}
|
||||
|
||||
try{
|
||||
CameraImageWrapper ciw;
|
||||
|
||||
ciw.setSmoothTransformation(smoothTransformation);
|
||||
ciw.setImage(image, maxWidth, maxHeight);
|
||||
|
||||
Ref<LuminanceSource> imageRef(&ciw);
|
||||
GlobalHistogramBinarizer binz(imageRef);
|
||||
|
||||
Ref<Binarizer> bz (&binz);
|
||||
BinaryBitmap bb(bz);
|
||||
|
||||
Ref<BinaryBitmap> ref(&bb);
|
||||
|
||||
res = ((MultiFormatReader*)decoder)->decode(ref, DecodeHints((int)enabledDecoders));
|
||||
|
||||
QString string = QString(res->getText()->getText().c_str());
|
||||
*processingTime = t.elapsed();
|
||||
emit tagFound(string);
|
||||
emit decodingFinished(true);
|
||||
|
||||
qDebug() << "Exited threaded decoding";
|
||||
emit quitThread();
|
||||
return string;
|
||||
}
|
||||
catch(zxing::Exception& e)
|
||||
{
|
||||
emit decodingFinished(false);
|
||||
*processingTime = -1;
|
||||
|
||||
qDebug() << "Exited threaded decoding, error";
|
||||
emit quitThread();
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void QZXingWorker_p::setData(int *processingTime, QImage image, int maxWidth, int maxHeight, bool smoothTransformation, void *decoder, uint enabledDecoders)
|
||||
{
|
||||
this->processingTime = processingTime;
|
||||
this->image = image;
|
||||
this->maxWidth = maxWidth;
|
||||
this->maxHeight = maxHeight;
|
||||
this->smoothTransformation = smoothTransformation;
|
||||
this->decoder = decoder;
|
||||
this->enabledDecoders = enabledDecoders;
|
||||
}
|
|
@ -1,35 +0,0 @@
|
|||
#ifndef QZXINGWORKER_P_H
|
||||
#define QZXINGWORKER_P_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QImage>
|
||||
|
||||
class QZXingWorker_p : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QZXingWorker_p(QObject *parent = 0);
|
||||
|
||||
signals:
|
||||
void decodingStarted();
|
||||
void decodingFinished(bool succeeded);
|
||||
void tagFound(QString tag);
|
||||
|
||||
void quitThread();
|
||||
|
||||
public slots:
|
||||
void setData(int* processingTime, QImage image, int maxWidth, int maxHeight, bool smoothTransformation,
|
||||
void* decoder, uint enabledDecoders);
|
||||
QString decode();
|
||||
|
||||
private:
|
||||
int* processingTime;
|
||||
QImage image;
|
||||
int maxWidth;
|
||||
int maxHeight;
|
||||
bool smoothTransformation;
|
||||
void* decoder;
|
||||
uint enabledDecoders;
|
||||
};
|
||||
|
||||
#endif // QZXINGWORKER_P_H
|
Loading…
Reference in New Issue