Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 86207bac authored by Nick Deakin's avatar Nick Deakin
Browse files

Some recoverymap fixes from initial Ittiam feedback.

Add missing right shift to account for P010 data format. This is
because the 6 LSBs are ignored for each 16-bit data element.

Also fix potential out-of-bounds indexing in sampleMap() by clamping
x/y_lower/upper values to the map size.

Bug: 252835416
Test: builds
Change-Id: I2064a507a458f1d5d20f3d48eca974a712307d4a
parent dee51fe8
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