voelin-media: give the studio its sources and cameras
A scene needs something behind each of its sources. Colour, text and image are drawn once and put in the feed; screens, windows and the portal run the existing capture backends through a sink that copies into pooled frames; cameras get their own module. One broken source only sets its feed's error, so it never stops the studio. Text is rasterised with ab_glyph and the same Inter the UI bundles (reached across crates rather than copied, and tools without the UI crate need it too); images come from the `image` crate, which the tree already had. Cameras are listed straight from V4L2 -- the card name and every pixel format and resolution the driver reports, no hard-coded list -- but captured through PipeWire, which already owns the devices; the connection comes from the user's daemon or, in a sandbox, from the XDG Camera portal, and both reuse the screen capture's PipeWire thread. Only the three read-only enumeration ioctls are hand-written, so no bindgen build dependency joins the tree. The test pattern is always listed as a camera, which is what the tests use. convert gained a borrowed-frame entry point so a capture buffer becomes RGBA without an owned frame in between. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7b61fa9cad
commit
a35d3b6784
8 files changed
+1473
-30
No files matched your search
Generated
+2
@@ -9169,10 +9169,12 @@ dependencies = [
|
||||
name = "voelin-media"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"ab_glyph",
|
||||
"ashpd",
|
||||
"bzip2",
|
||||
"criterion",
|
||||
"dav1d",
|
||||
"image",
|
||||
"libloading",
|
||||
"libvpx-native-sys",
|
||||
"memmap2",
|
||||
|
||||
Reference in new issue
Block a user