Libcamera – A complex camera support library for Linux, Android, and ChromeOS
This is no simple thing to do.<p>The biggest issue is that "raw" Linux is not an RTOS.<p>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.<p>It's even more intense with video, and most still cameras are quickly morphing into high-quality video cameras.<p>Also, image processing is REAL intense; especially with Computational Photography. It can suck down your battery in seconds.<p>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).<p>It's a non-trivial task.