Modeling 3D quantization error for motion