Fix thumbnail resampling code to eliminate rounding errors
Fix thumbnail resampling code to eliminate rounding errors

When resampling thumbnail image during extraction, the math logic
resulted in various rounding errors causing wrong rows/columns of
pixels to be sampled.

Replaced floating point math with integer arithmetic to remove the
rounding errors and produce exact copy of stored thumbnail when no
resampling is needed.

Change-Id: Ic80987f646c5695b4a6755bd8e7110a1a4f675b4

baldurk/renderdoc,googlestadia/renderdoc,baldurk/renderdoc,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,Zorro666/renderdoc,googlestadia/renderdoc,TurtleRockStudios/renderdoc_public,baldurk/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,TurtleRockStudios/renderdoc_public,googlestadia/renderdoc,googlestadia/renderdoc,Zorro666/renderdoc,Zorro666/renderdoc,baldurk/renderdoc