mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-12-03 20:01:50 +01:00
hwdec is now mediacodec,mediacodec-copy with every codec allowed. The direct decoder goes through mpv's aimagereader interop, which loads with the render context and needs no SurfaceView: frames arrive as AHardwareBuffers sampled through EGLImages, never copied through memory. On a Pixel 6 the 4K AV1 file that leaked a frame per frame in copy mode (B80) now plays in hardware at flat memory, without the green line, and with a sixth of dav1d's dropped frames. The copy path stays as the fallback for devices whose interop fails. An AV1 file that lands there switches to software, since that path leaks. B49's reasoning (no window, so copy only) is corrected.