Skip to content
Commit ad7e0187 authored by akharlamov's avatar akharlamov Committed by Baldur Karlsson
Browse files

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
parent e1d0275b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment