Early termination for warp error computation

This terminates the computation for the warp error once
the frame error exceeds the best frame error found
so far to avoid unneccessary computation.

Change-Id: I094a0b3e13f8b91610e051cb91d20a815879dd80
5 files changed