raspberrypi/libcamera

LibCamera QML

Closed this issue · 1 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?

I'm sorry, but my knowledge on this topic is non-existent to be honest. I know there is some discussion on the libcamera mailing list about this very topic: https://lists.libcamera.org/pipermail/libcamera-devel/2024-January/040214.html.

I suggest you try and make a post or reply to the above thread for further discussion.