I have published the snippet of code that implements a GPU-based ISP with bunch of corrections and encodes video in real time on the Librem 5. Feel free to take parts of it and use in your apps and frameworks... or record your cats 😼
https://source.puri.sm/-/snippets/1223
#linuxmobile #mobilelinux #linuxphones #camera #librem5 #shotonlibrem5
@pavel It shows the right way and runs reliably for hours here on crimson. There should be no crashes whatsoever. Could be some regression on GStreamer side, but on newer distros you should rather use GTK4 and GtkGraphicsOffload instead anyway.
Of course simpler shaders allow for higher performance, the challenge is in simplifying the shader without making the output shitty ;)
Some time ago you mentioned you had phase-detection AF. Is that code somewhere? I understand it needs kernel changes.