fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

11K
active users

Hey people.

Maybe you heard about my little project.

Which phone should support after ?

I'm looking for one which has the kernel drivers but cameras still don't work great.

@dcz Ok, so which phone should I play with? I'd like to try libobscura. README says "cargo run --bin glium_2". But I guess "cd libobscura/crates/vidi-examples" is needed before that. And that, on right system. On Librem 5, I get "this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.".

@pavel I haven't gotten to the Librem 5 yet.
There is only support for UVC cameras now.

If you want to build it on the Librem 5, I would use a recent operating system (not PureOS) or install Rust using Rustup.

rustup.rs/

Yes, it is "execute random shell from the internet", but I think that's the only way to get recenr Rust on PureOS.

rustup.rsrustup.rs - The Rust toolchain installerThe Rust toolchain installer
@dcz So far I found that I should be able to build on Droidian on oneplus6, but that has no working camera. I'd really like to play with rggb8 -> rgb888 conversion on the GPU, is that going to be feasible with the current code? (Any hints? :-) )

@pavel Yeah, it's actually implemented and you don't need a phone. There's the "bayer" binary that will pick up a file and decode it.

Check out --help.

@dcz Where do I get the bayer binary or its sources? Best I could find is crates/crispy/src/shaders/bayer.rs, and that seems to be something else.
@dcz Thank you, that's much better. Is there any special setup to be done?

I'm getting permission denied. Running it as root does not fix stuff.

(Is there easy way to force CPU fallback just to test things)?

droidian@ONEPLUSA6003:/my/libobscura$ /my/libobscura/target/debug/raw --raw 5000,3000,8 /tmp/delme.raw RGGB /tmp/delme.tiff
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
thread 'main' panicked at crates/conv/src/bin/raw.rs:59:7:
@dcz Aha, and kmscube fails, too, and it has no manpage. GPUs are fun :-(.

@pavel Ouch. This looks like it's related to creating the GBM buffer?

@pavel It *should* be possible to skip the GBM parts and create regular OpenGL buffers, but my OpenGL skills are not enough to do it quickly.

@dcz Ok. I guess you'll let me know when you'll get it working on Librem 5 or PinePhone? I'll try to replicate your setup at that point.
dorotaC

@pavel Of course! L5 is my next target.

Are you interested in having a compiling version that produces only Bayer data, or minimally working debayering?

Also, what OS are you using on the L5?

@dcz I still have original PureOS on L5. I can install rust from web, I guess, and I can also install newer Debian or something.

I'd like to play with debayering, but ...