Two-step motion estimation algorithm using low-resolution quantization