libcamera, Librem 5 and autofocus
Pavel Machek
pavel at ucw.cz
Tue Apr 8 22:55:17 CEST 2025
Hi!
I played a bit with libcamera on Librem 5, and got autofocus to work
(slowly!) on Librem 5. I'll be likely busy with other stuff in next
weeks, so I thought I'd share the results.
The tree is at
https://gitlab.com/tui/libcamera/-/commits/l5?ref_type=heads . And no,
patches are not yet in ready to merge state.
What might be interesting:
ad88b0bc9d46cd825873f3c16dd81ba7979384d7 -- that's port of autofocus
tree to recent libcamera.
Other "af: " patches -- original AF code expected YUV data, this ports
it to Bayer8. Needs more work, but if you are using bayer, this should
be good start.
ucam: make "%" mean sequence number of frame.
adf18d2336ab7c3f32d4a1948d197e8c1078b259 -- would adding "%x" formats
to cam be acceptable? I'd really like filenames in timestamp.ppm form,
likely other people will want other format specifiers, for example
"640x480.RGGB8.raw" might be good name for stuff that can't go into
ppm.
cff1b23f7e212cc868fd27705a675abe83f2c92f ppm: add support for argb8888
-- by default with swIsp, libcamera started producing ARGB
data... which can't be written into ppm. This and next fix teaches
libcamera to deal with that. Would it be acceptable after indenting
properly?
1b8a7edd28b75c7a134931ed2cf612b9234faacb -- adds note into help text
explaining single frame capture does not work.
Plus I have two README updates, "doc: we need libtiff for dng" and
"fix: newer meson is needed for build". I guess those are simple
enough to do merge into one patch and submit properly.
Oh and this is the other half:
https://gitlab.com/tui/tui/-/tree/master/ucam?ref_type=heads
Python scripts; they allow me to get frames from libcamera, and
display them in gtk window for viewfinder. Plus it displays
exposure/gain/focus information, and it was able to take photos and
record videos at one point.
Best regards,
Pavel
--
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, and Musk!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20250408/a0b753f0/attachment.sig>
More information about the libcamera-devel
mailing list