Donald -
I can now get results for both YV12 and YUY2 that are fairly good but I can not make it leave the image totally unchanged. And I can not figure out why either. With your test file it should indeed be unchanged, but isn't.
But again, ignore the first frame (and the man behind the curtain). That is always done with SE=0 because there is no history yet. Though maybe I should cheat and look forward in that case ????
But for every pixel I step through in debug it finds 0 motion and uses the weave pixels. Yet the image is obviously changed a little.
BTW, if using my source, be sure to check the dates that I changed in the last 24 hours. There were a few places that had to have the BPP definition used, including one member that was in the zip but not even included in the project file, so I had not seen it previously.
- Tom