opengl resamplers improvements

Make current resamples in opengl vo more compatible to those commonly used in avisynth.

Basically these commits are independent from each other. Please review them one by one.