emscripten video: faster conversion RGBA->gray