Libcamera – A complex camera support library for Linux, Android, and ChromeOS
This is no simple thing to do.The biggest issue is that "raw" Linux is not an RTOS.When the photographer presses the shutter, you have a few milliseconds to capture the image. You can't have the OS decide to prioritize receiving a tweet before getting to the shutter release.It's even more intense with video, and most still cameras are quickly morphing into high-quality video cameras.Also, image processing is REAL intense; especially with Computational Photography. It can suck down your battery in seconds.There's a few ways to deal with it. You could use something like Xenomai or RTLinux, or establish some kind of SoC for the realtime-sensitive processing (what most phone manufacturers probably do -Apple sure does).It's a non-trivial task.