LibCamera viewfinder QML
Unsolved
QML and Qt Quick
-
I'm trying to port my QtWidgets + OpenGL viewfinder to QML since my whole application is QML. Currently I'm using a viewfinder similar to this from libcamera qcam:
https://github.com/raspberrypi/libcamera/blob/main/src/apps/qcam/viewfinder_gl.cppWhat is my best option to accomplish this?
- QML CaptureSession with VideoOutput (how?)
- QML ShaderEffect with Image / ShaderEffectSource as textures for each frame
- QQuickView / QQuickWidget for QML pages and C++ QOpenGLWidget for the viewfinder
- other / better ideas?