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

Message ID 20240620213607.32583-1-joelselvaraj.oss@gmail.com
Headers show
Series
  • qcam: rotate the viewfinder output as per camera properties
Related show

Message

Joel Selvaraj June 20, 2024, 9:36 p.m. UTC
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(-)