I’ve been getting more and more uncomfortable with how little I understood what was going on behind the scenes in
Cinder-WMFVideo, and although it’s served me well over the years there’s been enough little quirks here and there that I decided to try and do something about it. After failing to make heads or tails of the existing code, it turned out much simpler to just implement a new media player instead
Currently it copies frames to the CPU which means it’s not as performant as it could be, but there is a fast path available via DXGI, so once i learn what the hell that is I might try and add that a bit later. It can come in handy to have access to the pixel data sometimes as recently discussed with @morphogencc so my goal is to have this player offer both paths.
All the usual warnings apply, I just knocked this together in an evening or two so while all care was taken, i can’t guarantee zero leaks or data races, but hopefully it still comes in handy for someone anyway.