Unified RenderScript logic between different calculators, and fixed some logic issues in MSSIM calculator

Change-Id: Ic0f9cb7b081b8860a616e7b52b7be16751a7296c
19 files changed