Re: RFC: User/World Facing camera control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ricardo

On Thu, 12 Dec 2024 at 12:14, Ricardo Ribalda <ribalda@xxxxxxxxxx> wrote:
>
> Hi
>
> For a system with multiple cameras (think of a phone or a tablet),
> userspace needs to know if the camera is facing the user or the world.
>
> AFAIK, we have no way to tell userspace about this it has to rely to
> tricks/hardcoding. Eg for UVC cameras they match the vid/pid or the
> camera name.
>
> Assuming we define a new field in the acpi table/device tree to
> describe this.... Would it be an option to add a new V4L2 standard
> control for this?

Doesn't V4L2_CID_CAMERA_ORIENTATION already meet the control requirement?
"This read-only control describes the camera orientation by reporting
its mounting position on the device where the camera is installed."
[1]

  Dave

[1] https://www.kernel.org/doc/html/latest/userspace-api/media/v4l/ext-ctrls-camera.html

> Any thoughts?
>
> Thanks!
>
> --
> Ricardo Ribalda
> Software Engineer
> ribalda@xxxxxxxxxx
>




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux