Posts
1861
Following
92
Followers
172
Riding horses, hacking computers, phones and smartwatch.
@mkyral Tak ty veci se uplne nevylucuji :-). Nevim. Trump je kriminalnik. Sehnat na nej kompromitujici material nebude tezke, pravdepodobne je na Epsteinovych seznamech, napr. Vlastne bych se divil kdyby ho Rusove nevydirali.
1
0
0
@nenos @Gina #oneplus6 is getting pretty usable with mobile Linux. Give it a try :-).
0
1
2
@dexternemrod If you have to ask, then probably #droidian :-). Is your goal to have something "stable" (-> #mobian) or is your goal to be on "bleeding edge" (-> #postmarketos)? Do you need working camera? (-> #postmarketos, probably).
1
0
0
@mkyral Nevim. V Rusku ma / mel nejake obchodni aktivity... A brani / davani uplatku v Rusku je tak trochu tradice :-).
1
0
0
@datenwolf So I did some asking, and it looks like it is cache coherency problem on ARM CPUs and there's no easy way around.

I got your code to run on both Librem 5 and a notebook, thanks. Could you add a copyright notice and some kind of license, preferably GPLv2+ compatible?
1
0
0
Trump je placeny a/nebo vydirany Putinem.

Trump is paid and/or extorted by Putin.
22% Ano / Yes
44% Ano a za 10 let to bude obecne uznavane / Yes and it will be common knowledge in 10 years
33% No
2
2
0
@dos I'm not really looking for doing anything with gstreamer output. But if you have example of doing debayering and output via SDL, or know where to find it, I'd love to see it.
1
0
0
@dos @datenwolf @dcz @martijnbraam @NekoCWD I guess that for 120 fps video, you'd want to capture a burst to available memory, and do the conversion after the capture is done.

Could we get some intermediate (maybe cropped) modes, too? For digital zoom, or maybe for cases where performance is not available to deal with full image.
1
0
0
@dos @datenwolf @dcz @martijnbraam @NekoCWD If you have something where you can draw / handle controls on top of the viewfinder, or at least around it. I did some hacks in the past with capturing gstreamer window, but they were a) probably X11 specific and b) not really great code. If you have nice solution, I'd like to see one.
1
0
0
@dos @datenwolf @dcz @martijnbraam @NekoCWD I'm quite curious how the viewfinder integration looks. Even unfinished code would be interesting to look at :-).
1
0
0
@dos @datenwolf @dcz @martijnbraam @NekoCWD I hope you played with it in your day job for about 8 hours a day, because otherwise I'll feel kind of bad :-). Thanks!

Do you also get constant clicking from the AF system? I thought it was gone on Mobian, but then it came back.

526x390 is easy, can you do 1052x..? Is it possible to peek at sources somewhere?

Thanks again.
1
0
2
@lkundrak No, zda se, ze povery umi kolovar i stoleti. Ke me doputovala dneska, zminovane datum bylo myslim vcera.

https://en.wikipedia.org/wiki/Three_Days_of_Darkness
0
0
0
@lkundrak Pokus o kratkou povidku, inspirovany skutecnou poverou :-).
0
0
0
Jak uklidnit povercivou pribuznou

(telefonni hovor) "Neboj, zadna tma nebude, co je to za nesmysl? Svetlo nemuze jen tak zmizet."

(jako kdyby mluvil k nekomu jinemu) "Belial!"

(pauza)"Fakt planujete nejaky zatmeni pristi ctvrtek? Jakyho c****a to napadlo?"

"Ta k**va bohorodna. Ne, to nepujde, mam rande a taky je koncert Zombiero Martin."

"Jak ze to nemuzes zrusit?"

(chvili pauza, pak temnym, autoritativnim hlasem) "Lorem ipsum dolor sit amet,
consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
labore et dolore magna aliqua.

(zase do telefonu) "Ne teticko, nepotrebujes svecenou svicku, prece bys neverila na nesmysly."

(spis pro sebe) "A taky jsem to zaridil."

[A kdybyste chteli vedet "ktera sekta", tak pry se to siri mezi katolickyma oveckama.]
1
0
0
@NekoCWD @datenwolf @dcz @martijnbraam Yes, Oneplus 6 is easier there. (Someone should get Megapixels to work there -- https://gitlab.com/megapixels-org/Megapixels -- already has QR code decoder, AF, AE). But at 640x.. , gstreamer should be plenty fast enough to do encoding. You have 8 cores, right? I guess 1024x768 should be doable in software...
1
0
2
#phonecamera #linuxphone #librem5

Librem 5 camera/kernel can do three possible resolutions, ~1024x768 @ ~24fps, ~2048x.. @ ~31 fps and ~4096x.. @ ~15fps. Debayering is actually easier and better quality if we downscale at the same time, and that allows best framerate, so we do that (2048x.. resolution).

ARM has problems with cache coherency w.r.t. DMA, and kernel solution is to simply disable cache on DMAbufs for userspace, which means accessing video data is 10x slower than it should be on the CPU. Which means debayering on GPU is attractive, and that's what we do. (gold.frag). GPU can do more image signal processing functions easily, too, so we do some of that.

Unfortunately, we hit the same uncached memory problem at the GPU output. So we use separate thread to copy. All this unfortunately does not fit on one core, so we need two threads, one controlling GPU debayer on frame n+1, while the other one copies video data from frame n. (heart.c). We save resulting RGBA data to ramdisk. This all costs maybe 80% of one core.

From there, Python scripts can pick them up: ucam.py displaying the viewfinder and mpegize.py handling the video encoding via gstreamer. There's basically 0% cpu left, but I can encode ~1024x.. video. Unfortunately that's without audio and with viewfinder at 1fps. Plus, combination of C + Python is great for prototyping, but may not be that great for performance.

Code is here: https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads .

At this point I'd like viewfinder functionality merged into the rest of GPU processing. Ideally, I'd like to have a bitmap with GUI elements, combine it with scaled RGBA data, and rendering it to screen. I know SDL and Gtk, SDL looked like better match, but I could not get SDL and GPU debayering to work in single process (template SDL code is here https://gitlab.com/tui/debayer-gpu/-/blob/master/sdl/main.c?ref_type=heads ).

If you can integrate main.c and heart.c, that would be welcome. If you have example code that combines SDL with processing on GPU, that would be nice, too. If you know someone who can do GPU/SDL, boost would not be bad, I guess.

@datenwolf
@NekoCWD
@dcz
@martijnbraam
3
6
10
@mkyral @smoon Aha a vlasne -- TangoGPS. V menu ma "stahnout mapu" vcetne toho kolik zoomu, a body zajmu to ma. Pouzivam, hodi se, takovy fungujici zaklad.
0
0
0
@mkyral @smoon A teda myslim ze i podklady by nejak mel umet, abych tam mohl importovat treba vlastni ortofoto, ale tu cast jsem nikdy nedelal.
0
0
0
@mkyral @smoon No, stahnu .osm, a mam offline mapu. Teda, vektorovou, a ne uplne krasnou no :-). A body ukladam do vrstvy, takze mam body zajmu v osm formatu. Uploadovat nemusim.
0
0
0
Show older