-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Description
Hi,
I am currently porting my (now working) SFOS app to Ubuntu Touch, and thus I also had to include qzxing in my project. I did it via cmake, like so:
set(QZXING_MULTIMEDIA "true")
set(QZXING_USE_QML "true")
add_subdirectory(submodules/qzxing/src)
add_definitions(-DQZXING_QML) // for the main project to register meta types
include_directories(submodules/qzxing/src) // for the main project to register meta types
target_link_libraries(${PROJECT_NAME} [.....] qzxing)
In QML I'm doing this:
{
[...]
Camera {
id: camera
focus {
focusMode: Camera.FocusContinuous
focusPointMode: Camera.FocusPointCenter
}
}
Rectangle {
width: parent.width * 0.8
height: parent.width * 0.8
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
color: "transparent"
VideoOutput {
id: videoOutput
anchors.fill: parent
source: camera
filters: [ videoFilter ]
autoOrientation: true
}
}
QZXingFilter {
id: videoFilter
decoder {
imageSourceFilter: QZXing.SourceFilter_ImageNormal
enabledDecoders: QZXing.DecoderFormat_QR_CODE
tryHarder: true
tryHarderType: QZXing.TryHarderBehaviour_Rotate | QZXing.TryHarderBehaviour_ThoroughScanning
onTagFound: {
if (popped)
return;
popped = true
pageStack.pop()
handleScannedCode(tag)
}
}
}
[...]
}
However detecting QR codes does not work. Instead I get the logs flooded with the following, as soon as the camera is activated (no matter where it is pointed to):
QZXingFilterRunnable: Buffer is empty
virtual uchar* AalGLTextureBuffer::map(QAbstractVideoBuffer::MapMode, int*, int*)
QVideoFrame::unmap() was called more times then QVideoFrame::map()
QZXingFilterRunnable: Buffer is empty
virtual uchar* AalGLTextureBuffer::map(QAbstractVideoBuffer::MapMode, int*, int*)
QVideoFrame::unmap() was called more times then QVideoFrame::map()
QZXingFilterRunnable: Buffer is empty
virtual uchar* AalGLTextureBuffer::map(QAbstractVideoBuffer::MapMode, int*, int*)
QVideoFrame::unmap() was called more times then QVideoFrame::map()
QZXingFilterRunnable: Buffer is empty
virtual uchar* AalGLTextureBuffer::map(QAbstractVideoBuffer::MapMode, int*, int*)
QVideoFrame::unmap() was called more times then QVideoFrame::map()
How can I make this work? QT version should be 5.12.
Metadata
Metadata
Assignees
Labels
No labels