I think both left- and right-masked PDAF pixels are accessible in 1:2 mode with binning disabled, though I haven't done the math yet to be 100% sure. Enabling/disabling it on demand will be somewhat clunky though. I can also read calibration data from OTP, but AFAIK there are no kernel APIs to expose that to userspace :(
https://source.puri.sm/Librem5/linux/-/issues/411#note_285719
@pavel @datenwolf @dcz @martijnbraam @NekoCWD I played with it over the last days and I already have 526x390 30 FPS encoding with live viewfinder, perfectly synced audio, color correction, lens shading correction, tone mapping, AWB and AE - consuming about 40% CPU. Still needs chromatic shading correction and AF, and I started experimenting with enabling PDAF.
I can also make the sensor output 60 FPS and RAW10. Patches incoming ;) Still only 2 MIPI lanes though, so no 13MP 30FPS yet.
@asegPL Żeby jakikolwiek system się dało tak zainstalować przy EFI, musiałby siedzieć na FAT32.
@1peter10 @agx @postmarketOS @yoasif @phosh I mean, I'm not exactly a social butterfly and we had a pandemic meanwhile, but "ooh it doesn't need swipes, I hate those on my phone" was still something I heard surprising number of times when I showed my phone to people in those early days 😂 I honestly didn't expect these reactions.
@1peter10 @agx @postmarketOS @yoasif @phosh I've seen many people praise the early Phosh interface for everything being an obvious tap away and that there's no need for performing swipes to use it. At the same time lots of people (perhaps more) complained that they couldn't swipe
Swipes solve some issues and we're in much better place now than we were without them, but I think it may be worth contemplating on how to bring back the possibility of swipeless operation, even if behind an a11y flag
@pavel Passing the right buffer size to gst_dmabuf_allocator_alloc helps it to not crash and not have garbage at the end of the frame 😂
@pavel For GTK: either https://docs.gtk.org/gdk4/class.DmabufTextureBuilder.html or https://gstreamer.freedesktop.org/documentation/gtk4/index.html
For SDL with GL: just import it the same way V4L buffers are imported.
Frankly, it's flexible enough that your choice of toolkit should only depend on other factors.
@pavel That one line is the only thing that runs from another thread and it's neither scary nor requires any locking 😁
But there are several other smelly things in this code and lots of missing error handling, so I'd rather start with that when looking for suspects.
Hi, I'm dos. Silly FLOSS games, open smartphones, terrible music and more. 50% of @holypangolin; 100% of dosowisko.net. he/him/any. I don't receive DMs.