Posts
1993
Following
95
Followers
183
Riding horses, hacking computers, phones and smartwatch.
@dos That's problem for future Pavel :-). Right now, I'm storing frames on ramdisk, as "RGB3" basically.
0
0
0
@dos Lets keep the example simple :-). Yes, g = G1+G2/2 is superior, and there are advanced debayer algorithms. I know them. Examples are at https://gitlab.com/tui/debayer-gpu/ . There's just one small problem: It takes minute and I need it to take 10 seconds.
0
0
0
Edited 4 months ago
edit: Thanks for all the heroes that chimed in. In meantime, I got help from entity that shall not be named, and currently have something fast enough. And I have great human experts on line, with patches to test. Thanks again! :-)

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

We are trying record video, and have most pieces working, but one is
missing: fast enough debayering. That means about 23MB/sec on #librem5.

Debayering is not hard; camera images have subpixels split on two
lines, which need to be corrected. They also use different color
representation, but that's fixable by some table lookup and two matrix
multiplies.

Librem 5 has Vivante GPU, 4 in-order CPU cores and 3GB RAM. My feeling
is that it should be fast enough for that. If task is for some reason
impossible, that would be good to know, too.

Image data looks like this

RGRGRG...
xBxBxB...
.........
.........

Task is to turn that into usual rgbrgb.... format. rgb = RGB * color
matrix, with table lookups for better quality. I can fix that once I
get an example.

I'm looking for example code (#pinephone would work, too), reasons it
can not be done... and boosts if you have friends that can program
GPUs. #gpu #opensource
4
35
17
Ok, I thought that "Librem 5 GPU is faster than X220 GPU" was a bit too good to be true. Turns out code was broken and simply produced black frames on Wayland... but did that fast. #linuxphone #librem5
0
0
2
So... camera is flakey on Librem 5. It works on _most_ boots in both PureOS and Mobian, as usual. I was unlucky and have non-working app installed on PureOS, which confused me.
0
0
2
@lkundrak Not sure, it got more confusing. Latest youtube news say they are starting to investigate sabotage, too.

Lets see. I still believe aircraft was not fully functional before it hit the ground.
1
0
1
@BeardlyDavid Nah, there are few of those around. They are still best "development board" available for camera development.
1
0
1
Did camera support on Librem 5 break with recent PureOS updates? That's bad timing for me :-(. #linuxphone #librem5
1
0
2
Jasne ze srst izoluje. Ale vnitrni prostredi ma ~36C a je v nem tepelny zdroj; vnejsi s trochou stesti min. A zvirata na leto linaji, to se asi evoluce spletla... https://www.seznamzpravy.cz/clanek/domaci-zivot-v-cesku-ve-vedru-nebrat-zvire-do-rozpaleneho-auta-a-rozhodne-nezkracovat-srst-280494
0
0
1
@mkyral @piratzbrna Madarsko neni Belorusko (zatim). Za ucast je pouze pokuta... takze zatykani nebude urcite.
1
0
0
@mcepl @stepan "Jus in bello" je ten problem.

Jake nazory drzite uplne nevim, ale treba tohle bych nazval "bezpodminecnou podporou izraele": https://www.seznamzpravy.cz/clanek/domaci-politika-ambasadu-do-jeruzalema-presuneme-rekl-fiala-spor-se-vede-o-bezpecnost-277869 .

A minimalne namestkyne ministra zahranici Izraele dava dost jasne najevo, ze kritizovat Izrael je "bodnuti do zad", "lzive pomluvy": https://www.seznamzpravy.cz/clanek/domaci-politika-cilem-je-uplne-zniceni-izraele-a-vyvrazdeni-vsech-zidu-sveta-rika-politicka-277878
1
0
0
@mcepl @stepan Jasne ze situace na strednim vychode je slozita, a Izrael tam neni zdaleka nejhorsi akter.

Ale zacina byt jasne ze bezpodminecna podpora Izraele neni udrzitelna, a myslim ze za 10 let budeme vedet co se v Gaze deje ted, a nebude se nam to libit. Budou se nas ptat "jak jsme mohli prihlizet vrazdeni civilistu v Gaze" :-(. A tady se zatim debatuje jestli bychom nemeli presunout ambasadu do Jerusalema.
1
0
0
@agx No, you are right, X220 is old hardware. But I like the keyboard and it is powerful enough ... so I use it.

I assumed relative power of CPU, GPU and memory would be approximately similar... and clearly that's not the case. Which is a good thing, 512x384 might be doable on Librem 5's CPUs, but that's really quite low.
0
0
0
Quite scary: yt ChatGPT\ Is\ Becoming\ A\ Religion\ \[zKCynxiV_8I\]. Please do _not_ turn language models into priests, don't make it emulate Jesus or Gods. Its too easy to do, and ... it would be highway to hell if hell actually existed.
0
0
1
@mcepl @stepan A koneckoncu... to ze Bibiho chteji videt v Haagu, stejne jako Putina a vedeni Hamasu... by taky mohl byt celkem dobry hint :-).
1
0
0
@mcepl @stepan Ano, na nektere veci nemame dostatecne kvalitni informace. Jestli jsou ty kupy mrtvych civilistu v Gaze omyl nebo zamer tezko zjistime. I kdyz tvrzeni Izraelskych politiku ze "Palestinci by meli zmizet z povrchu zemskeho" nam dava jisty navod.

Ale ze Izrael nema problem porusovat mezinarodni pravo vime dost jiste. Osady na okupovanem uzemi jsou valecny zlocin. Preventivni utok na Iran je ... no .... proste take neni v souladu s mezinarodnim pravem. Unosy? Jasne, naposledy unesli Gretu.

Je mozny ze v Gaze mezinarodni pravo dodrzujou? No, vyloucit to nemuzem, ale indicie mame :-).
0
0
0
@agx X220 is still second-best notebook, ever :-). Yeah, its old, but I kind of assumed TDP difference would make up for technology difference. Part is that Intel GPU insists on producing RGBA data, and I need RGB data.. and that was slowing things down. Anyway, good for Librem 5.
1
0
2
GPU on Librem 5 is actually faster than on X220? Good. I proved to myself that 1Mpix/30fps is possible. Now for the boring task of actually getting it to work... #linuxphone #librem5
2
4
8
@mcepl @stepan No, izraelskej pohled to asi vysvetluje... Jen na me porad blika "jasne, jasne, genocida je fuj, jenze kdo ted zrovna dela genocidu?" :-(. Doporucim tohle; ted uz by to autor asi napsal jinak, ale tohle aspon vypada jako nestranejsi pohled. https://www.nihilistanabalkonu.cz/l/co-se-to-deje-v-izraeli/
1
0
0
ISP on GPU is probably doable. If I'm lucky, it will do ~1Mpix / 30fps on Librem 5. #linuxphone Standby.
0
0
3
Show older