Merge Wave 5B: the phone, Android, and the quick share's sound
The phone's voice channel screen (mockup 02), Home and bottom navigation; Android cameras through Camera2, the screen shared into MediaCodec's input surface without a copy, notifications with working actions, "Share to Voelin"; the multi-select audio picker with app icons; and, asked by the user, the quick share's sound: the share dialog shows the studio's mixer rows (meter, gain, mute) for `stream.audio_sources` and its picker, and a running share follows changes live. docs/android.md rewritten. Conflicts: both waves gave studio cameras a new backend (Windows Media Foundation from Wave 6A, Android Camera2 here); both are kept, in the docs and code. The Windows build caught what the merge could not: each side's `Capture` initializers lacked the other's field, and Media Foundation cameras lacked `Camera::mirrored` (webcams face the user, so true). Checked: fmt, clippy (host, x86_64-pc-windows-gnu for voelin-media, both Android runs), and the tests of stream, media, core, ui, android and voelinctl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
0b2d2d776d
73 files changed
+4398
-355
No files matched your search
+12
-1
@@ -133,6 +133,17 @@ other formats itself. Frames go through the same pacer, pool and
|
||||
background filter as on Linux. **Never run**: it is type-checked for
|
||||
`x86_64-pc-windows-gnu` only, as nothing here runs Windows.
|
||||
|
||||
Android: the app registers a `camera::CameraProvider` (Camera2 through its
|
||||
Kotlin side, [android.md](android.md#cameras)), whose cameras `list()` puts
|
||||
first (front ones first). A camera opens into an `ImageReader`
|
||||
(YUV_420_888) and its planes arrive as `camera::YuvPlanes` with the turn
|
||||
that makes the picture upright for the screen's rotation: an upright planar
|
||||
or NV12 picture goes to the source's sink as it is, NV21 and turned ones are
|
||||
gathered into I420 in a buffer each camera keeps (nothing is allocated per
|
||||
frame). `Camera::mirrored` is the default mirroring (a camera that faces the
|
||||
user; not a phone's back camera); the source menu's Switch camera moves a
|
||||
camera source to the next camera.
|
||||
|
||||
## Background replacement (`studio::segment`)
|
||||
|
||||
A source's `background` is `keep`, `blur` (`strength`: radius as a fraction
|
||||
@@ -356,7 +367,7 @@ two threads) takes about 3 ms at its own rate (15 fps by default).
|
||||
| Background blur, image and colour backdrops on the oval mask | `segment::tests` | tested |
|
||||
| Person segmentation (PP-HumanSeg through tract): loads, 192x192 mask, nobody in an empty room, time per mask | `segment::tests::the_model_finds_nobody_in_an_empty_room` | tested (about 50 ms per mask); on a photo of a person the mask follows the silhouette, arms and legs included (checked by eye, the photo is not in the repository); not yet tried with a camera |
|
||||
| Windows cameras (Media Foundation: listing, the native format nearest the wanted size, NV12 through the source reader, MJPEG decoded by it) | `cargo clippy --target x86_64-pc-windows-gnu -p voelin-media` | type-checked only, never run |
|
||||
| Android cameras | – | not implemented: `camera::list()` has only the test pattern there |
|
||||
| Android cameras (Camera2): planes borrowed, gathered or turned | `camera::tests::camera_planes_are_borrowed_gathered_and_turned` (the Rust side) | tested on the host; the Camera2 side compiles only (no device here) |
|
||||
| RTMP: the FLV tags (sizes, times past 24 bits, AVC from Annex B, `onMetaData` in AMF0), URL and key handling (the name hides the key), dead servers refused | `flv::tests`, `rtmp::tests` | tested |
|
||||
| RTMP beside another stream codec: an output asks for H.264 of its layer only, its packets reach it alone, the recording and the replay buffer keep the stream's | `studio::tests::packets_reach_the_outputs_and_the_studio_is_a_capture_backend` | tested |
|
||||
| RTMP: write errors seen (`AVIOContext.error`, found at load), an abort ends a stuck connect, the sample format field of the AAC encoder, Opus → AAC (frames back to back from the packets' clock, priming, a gap restarts the clock) | `ffmpeg::avio::tests`, `ffmpeg::audio::tests`, `ffmpeg::tests` | tested with FFmpeg 9.0.1 (libavformat 63: `error` at 84, `sample_fmt` at 348) and FFmpeg 4.4.8 (58: 120 and 408) |
|
||||
|
||||
Reference in new issue
Block a user