mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
WGC/D3D surfaces are top-down, but the MF SinkWriter's RGB32->NV12 conversion treats uncompressed RGB as bottom-up, so feeding our top-down buffer through produced a vertically-flipped (upside-down) recording. Cancel the fixed flip by writing each source row into the mirrored destination row, handing MF a bottom-up buffer. Same number of memcpys, no extra cost. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>