swscale: implement error dithering in planarCopyWrapper.