Fix the rounding bug of resize test and impl; Add mirror test.

Change-Id: Ibfcc942ae3126d0186556f80dc5af17f77060b04
7 files changed