Fix -Wshadow warnings
Degrains: Get rid of MMX functions

Use the SSE2 functions instead. This allows the 64 bit version
to be compiled with MSVC.

Also rearrange the SSE2 functions so they are more readable.