Posts
1993
Following
95
Followers
183
Riding horses, hacking computers, phones and smartwatch.
re: uspol
Show content
@karolherbst Nah. How would that work? Is there any other country where they have majority system and more than two parties?
0
0
0
Hi!

I asked for help with ISP...

Can you program GPUs and do you want to become a HERO? #linuxphone
community needs your help.

[...]

and I got help. Both from humans and from language models. Quickly it
turned out Librem 5's GPU is fast enough for debayering at 24fps,
0.8MP and data can be transfered enough fast enough. Soon, it turned
GPU can use full 13MP image as a source, scaling it down to 0.2MP for
gstreamer mp4 recording.

This opens possibility to do phase-detection AF and digital
zoom. Librem 5 is not fast machine, its CPU/GPU/RAM is slower than
Thinkpad X220, for example.

Then I set out to investigate "how much of an ISP can I do" and it
turned out I did not yet find a limit.

So far I did black level, some attempt at denoise, three matrix
multiplies and gamma correction. (CPU could do black level + gamma +
one matrix multiply, almost, if I did vector instructions and a lot of
care). I don't know how much my GPU is loaded, but at the moment I
believe ISP on the GPU is the way to go.

Yes, I'm doing simpler debayer than usual, through not as simple as
explained below. I believe that's right choice when 13MP image is
available.

Code is at
https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads . It has
some pretty rough edges. But get Librem 5, it is worth it :-).

Special thanks to @dos Sebastian Krzyszkowiak and @datenwolf.

Best regards,
Pavel
0
1
2
@dos Yep, that helps. Thanks! :-)
0
0
0
@dos Heh. Is my guess correct that it should be stride * HO, not WO * HO * 4? :-)
0
0
0
@dos I don't have much experiences with GUI programming, so I was looking for suggestions. I've got dma-buf handle but would not know what to do with it in gtk, and maybe SDL is better match. Or perhaps stick to original plan and do user interface ("take picture" button etc) in another process.
1
0
0
@dos There are at least two threads in this code: main one, and whatever runs "on_buffer_released". I don't yet know what causes the segfaults, but I suspect gstreamer.
1
0
0
@janantos @sesivany No a taky cim pozdejc to cloveku reknou, tim mensi sance je ze couvne, ze? :-)
1
0
0
@janantos @sesivany No, porad by to slo zlepsit (informuji az po zadani pinu a castky; kdybych to vedel, tak pin nezadavam), ale ano, je to lepsi nez to byvalo.
1
0
1
@sesivany @janantos Segre takhle (kdysi) proste nauctovali 100Kc. Bankomat nic nerekl, zjistila to az na vypisu. Na stiznost reagovali "to je normalni". :-(.
1
0
2
@mkyral smrskflaci. Pekne nove slovo :-). Podekujme vyrobcum cokolad co ... no v podstate podvadej zakazniky tim ze odeberou par gramu tak aby si nikdo moc nevsimhl.
1
0
0
@ozzelot That's... quite clever and true. But often having some code is better than having no code...
0
0
0
@eevee I used LLM to translate into czech and get summary. Should I feel bad? :-). There are good uses for LLM, and yes, that includes "startrek", but someone will have to do that. And yes, I tried to start (but did not get far, so far).
1
0
0
@sesivany @dodo1095zd @mcepl V prenosove siti se problemy siri rychlosti svetla. Proto byva zvykem sit shodit do konfigurace "po jednom selhani" uz ve chvili, kdy se o tom dozvim.

Coz vlastne moc nevysvetluje. Pockal bych na nejake vysetrovani.
0
0
0
@dos That gstreamer code in C is scary. Multiple threads, no locking, what could go wrong?
1
0
0
@dos Do you have some ideas how to do viewfinder easily?
1
0
0
@datenwolf Thanks a lot. I took a look and got it to build but not run so far. I got distracted by.. other camera code and real life. https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads (We had blackout today).
1
0
0
@dos I don't believe gstreamer can handle complex cameras. But yes, eventually this code should disappear into libraries somewhere.
0
0
0
Mam tu lahvicku s napisem "sampon", dvema jednorozci a dvema srdicky. A otazka je -- je ten sampon pro me nebo pro zlutaka? 🙂.
0
0
0
@mkyral @programydovoleb "Chce-li nekdo zastrelit Bobosikovou, dobre. Neni to nase kamaradka." Jak to zni? Ta pani neni nase kamaradka, nechme karmu at ji to spocita, a prosim jdete k volbam a nevolte komunisty.
1
0
0
@programydovoleb "Chce-li nekdo zastrelit Bobosikovou, dobre. Neni to nase kamaradka." Jak to zni? Ta pani neni nase kamaradka, nechme karmu at ji to spocita, a prosim jdete k volbam a nevolte komunisty.
0
0
0
Show older