generalized YUV422 converter, fixed memory leak, fixed FPS measurement