- tests/codec_roundtrip.rs: synthetic pattern -> VP8 / VP9 -> decode
(PSNR, rectangle and background colours, forced keyframes, bitrate
change) and capture thread -> encoder -> decoder
- tests/x11_capture.rs: draws windows on a real X server ($DISPLAY, e.g.
Xvfb), checks MIT-SHM and GetImage pixels, window listing, window
capture -> VP8 -> decode colours, and cursor drawing; skipped without
DISPLAY
- tests/openh264.rs: missing-library errors; with TSC_OPENH264_LIB a full
H.264 roundtrip incl. SPS profile checks (High 100, Baseline 66); an
ignored test downloads Cisco's binary and runs the roundtrip
- OpenH264: allow frame skipping so rate control holds the bitrate, no
adaptive quantisation / background detection for screen content
- docs/media.md: API, backends, features, build requirements, licenses
(OpenH264 runtime download and attribution), verification status
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
- ScreenCapture / AudioCapture traits (async start for the portal),
SourceId / CaptureSource / CaptureOptions, platform default backends
- Synthetic sources: animated test pattern (moving rectangle + frame
counter) and a sine tone, for tests and synthetic streams
- X11 (feature x11): x11rb with MIT-SHM over a memfd (GetImage fallback),
RandR 1.5 monitors, window listing (_NET_CLIENT_LIST or root children),
XFixes cursor blending
- Wayland (feature pipewire): ScreenCast portal via ashpd with restore
tokens (PersistMode::ExplicitlyRevoked) and a PipeWire video stream
(SHM BGRx/RGBx family); clear "unavailable" errors without bus/portal
- PipeWire system audio from the default sink monitor
(stream.capture.sink), 48 kHz stereo f32
- Windows: Windows Graphics Capture (windows-capture) and WASAPI process
loopback excluding our own process tree, falling back to plain loopback
(type-checked for x86_64-pc-windows-gnu, not run)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G