dailz
d80b34f44f
feat: GPU-downscale + software H.264 encode pipeline (WIP)
Add SwEncState in avhw.rs: GPU pipeline using scale_vaapi to downscale
4K BGRA -> 2K NV12 on AMD iGPU, then software encode with libopenh264.
- import_dma_buf_to_vaapi: av_hwframe_map based DMA-BUF import
- SwEncState: GPU filter graph (scale_vaapi) + NV12->YUV420P + libopenh264
- state_portal.rs: integrated SwEncState, auto DRM device detection
- vaapi_import_bench.rs: CPU vs GPU pipeline benchmark
- sw_encode_bench.rs: software encode benchmark
Benchmark results: GPU pipeline ~91 FPS theoretical (10.95ms/frame)
vs CPU pipeline ~33 FPS (30.21ms/frame).
Known issue: only 1 frame encoded in production recording,
diagnostic STATS logging added to debug frame flow.
2026-05-29 22:04:12 +08:00
..
2026-05-29 22:04:12 +08:00
2026-05-11 08:49:08 +08:00
2026-05-29 22:04:12 +08:00
2026-05-29 22:04:12 +08:00
2026-05-29 22:04:12 +08:00
2026-04-05 23:35:00 +08:00
2026-04-05 23:35:00 +08:00
2026-05-29 22:04:12 +08:00
2026-05-29 22:04:12 +08:00
2026-05-29 22:04:12 +08:00
2026-05-29 22:04:12 +08:00
2026-05-11 08:49:08 +08:00