[PATCH 0/2] qcam: rotate the viewfinder output as per camera properties

Joel Selvaraj joelselvaraj.oss at gmail.com
Thu Jun 20 23:36:05 CEST 2024


Devicetrees may specify the rotation at which the camera is
mounted in the hardware. If available, this gets populated in camera 
properties. Rotate the viewfinder output accordingly in qcam qt and
opengl renderers. However, sometimes devicetrees may not specify the
rotation or incorrectly specify it. So, also introduce a command line
argument to quickly test different rotations. This also helps in
quickly identifying the rotation at which the camera is mounted in
the device if kernel developer already doesn't know it.

Joel Selvaraj (2):
  qcam: rotate the viewfinder output as per camera properties
  qcam: introduce a command line argument to rotate the viewfinder
    output

 include/libcamera/orientation.h |  2 ++
 src/apps/qcam/main.cpp          |  3 +++
 src/apps/qcam/main_window.cpp   | 28 +++++++++++++++++++-
 src/apps/qcam/main_window.h     |  1 +
 src/apps/qcam/viewfinder.h      |  4 ++-
 src/apps/qcam/viewfinder_gl.cpp | 46 ++++++++++++++++++++++++++++++---
 src/apps/qcam/viewfinder_gl.h   |  4 ++-
 src/apps/qcam/viewfinder_qt.cpp | 18 +++++++++++--
 src/apps/qcam/viewfinder_qt.h   |  5 +++-
 src/libcamera/orientation.cpp   | 34 ++++++++++++++++++++++++
 10 files changed, 136 insertions(+), 9 deletions(-)

-- 
2.45.2



More information about the libcamera-devel mailing list