IssueRaiser

Feature Request: libcamera support

**Is your feature request related to a problem? Please describe.** Waydroid currently supports mainline Linux cameras by passing low-level V4L2 camera devices through to Android, which sets them up as extremely limited external webcams. This is not ideal, e.g. for Android apps that use the front-facing camera to capture QR codes. **Describe the solution you'd like** * Include libcamera as an optional dependency * Install the compiled libcamera Android HAL in the container * Set "ro.hardware.camera=\<libcamera-so-path\>" instead of "ro.hardware.camera=v4l2" on supported hardware **Describe alternatives you've considered** * One-off camera implementations per platform: Infeasible due to required effort, but support would be betteer * Vanilla v4l2-- Generally unusable because lacks color calibration support, autofocus, etc. found in complex cameras (e.g., PinePhone Pro, Librem 5) **Additional context** * libcamera has basic support for [Librem 5](https://git.libcamera.org/libcamera/libcamera.git/commit/src/libcamera?id=502ab9a146e037cc10e3315ced91a0bdfa385472), with more thorough support [coming soon](https://puri.sm/posts/cameras-its-complicated/) * libcamera fully supports [PinePhone Pro](https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/pipeline/rkisp1?id=83996258a9fc852552fc66726c313c9ed4e325b3) * libcamera supports the vanilla [PinePhone](https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/pipeline/simple/simple.cpp?id=502ab9a146e037cc

Posted by rothn on Sep 12, 2022, 3:43 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

ux (Sysadmin)

Feature Request: libcamera support

rothnSep 12, 2022, 3:43 AM

**Is your feature request related to a problem? Please describe.** Waydroid currently supports mainline Linux cameras by passing low-level V4L2 camera devices through to Android, which sets them up as extremely limited external webcams. This is not ideal, e.g. for Android apps that use the front-facing camera to capture QR codes. **Describe the solution you'd like** * Include libcamera as an optional dependency * Install the compiled libcamera Android HAL in the container * Set "ro.hardware.camera=\<libcamera-so-path\>" instead of "ro.hardware.camera=v4l2" on supported hardware **Describe alternatives you've considered** * One-off camera implementations per platform: Infeasible due to required effort, but support would be betteer * Vanilla v4l2-- Generally unusable because lacks color calibration support, autofocus, etc. found in complex cameras (e.g., PinePhone Pro, Librem 5) **Additional context** * libcamera has basic support for [Librem 5](https://git.libcamera.org/libcamera/libcamera.git/commit/src/libcamera?id=502ab9a146e037cc10e3315ced91a0bdfa385472), with more thorough support [coming soon](https://puri.sm/posts/cameras-its-complicated/) * libcamera fully supports [PinePhone Pro](https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/pipeline/rkisp1?id=83996258a9fc852552fc66726c313c9ed4e325b3) * libcamera supports the vanilla [PinePhone](https://git.libcamera.org/libcamera/libcamera.git/tree/src/libcamera/pipeline/simple/simple.cpp?id=502ab9a146e037cc

Comments (0)

No comments yet. Start the discussion.

Comment on this issue