GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
472 stars 66 forks source link

PINEPHONE: Adapt libcamera HAL #59

Closed rsglobal closed 2 years ago

rsglobal commented 4 years ago

libcamera aims to become the main universal camera HAL for AOSP near future: https://libcamera.org/docs.html#android-camera-hal

Detailed description/motivation from authors: https://www.youtube.com/watch?v=S04jOKWHWOg https://www.youtube.com/watch?v=FovurKj28rw

Unfortunately there is no Android.bp/mk exists. Only meason.

kbingham commented 4 years ago

Indeed we don't yet have an Android blueprint in libcamera, and Android do not support meson or external builds.

We discussed this at the recent Linux plumbers conference, but solutions for integrating meson are not coming soon.

If you construct your own bp integration for Android, the src/android later in libcamera should be already usable, however you might have to add an entry to the simple pipeline handler to support the pinephone.

rsglobal commented 4 years ago

@kbingham ,

Hi, Thank you for your help. I'm just wondering, how do you testing it with Android? Are you building it using NDK?

rsglobal commented 3 years ago

Initial version available: https://github.com/kbingham/libcamera/pull/26

rsglobal commented 3 years ago

Some progress has been done, more info available at : https://github.com/kbingham/libcamera/issues/28

rsglobal commented 2 years ago

This is already done in GloDroid, but kernel drivers require a few improvements to make it work. See https://github.com/kbingham/libcamera/issues/28 for more info.