3 #include <QtQml/qqmlregistration.h>
6 #include <qquickimageprovider.h>
9 #include <QMediaDevices>
10 #include <QCameraDevice>
12 #include <QMediaCaptureSession>
16 #include <esterv/utils/qrcode_dec.hpp>
19 #if defined(QTQRDEC_SHARED)
20 #include <QtCore/QtGlobal>
22 #define DEC_EXPORT Q_DECL_EXPORT
24 #define DEC_EXPORT Q_DECL_IMPORT
35 Q_PROPERTY(
QString source READ get_source NOTIFY sourceChanged)
36 Q_PROPERTY(
bool useTorch MEMBER m_useTorch NOTIFY useTorchChanged)
37 Q_PROPERTY(
bool hasTorch MEMBER m_hasTorch NOTIFY hasTorchChanged)
52 Q_INVOKABLE
void start();
53 Q_INVOKABLE
void stop();
54 Q_INVOKABLE
void clear();
58 void reload(
int offset,
int width,
int height);
62 void hasTorchChanged();
63 void useTorchChanged();
66 #ifndef USE_EMSCRIPTEN
68 QMediaCaptureSession* captureSession;
69 QVideoSink* videoSink;
73 void decodePicture(QImage picture);
76 bool m_useTorch,m_hasTorch;
89 static void restart(
void);
Definition: qrcode_dec.hpp:8
Definition: qr_image_decoder.hpp:33
State
Definition: qr_image_decoder.hpp:48
static QRImageDecoder * create(QQmlEngine *qmlEngine, QJSEngine *jsEngine)
Definition: qr_image_decoder.hpp:44
QString get_source(void) const
Definition: qr_image_decoder.hpp:55
Definition: qr_image_decoder.hpp:82
WasmImageProvider()
Definition: qr_image_decoder.hpp:84
static QImage img
Definition: qr_image_decoder.hpp:90
double start
Definition: core_c.h:1381
void * parent
Definition: core_c.h:1913
CvSize size
Definition: core_c.h:112
CvArr CvPoint offset
Definition: imgproc_c.h:88
Definition: qrcode_dec.hpp:6