Merge "Fix the rounding bug of resize test and impl; Add mirror test." into lmp-mr1-dev