libcamera-org/libcamera

LibCamera QML

Opened this issue · 0 comments

I'm trying to port my QtWidgets + OpenGL (Qt6) viewfinder to QML (also Qt6) 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.cpp

What 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?