commit | 86207bac10e8ad0f0459b92cb9814b165db74896 | [log] [tgz] |
---|---|---|
author | Nick Deakin <deakin@google.com> | Mon Nov 21 16:07:36 2022 -0500 |
committer | Nick Deakin <deakin@google.com> | Mon Nov 21 16:27:52 2022 -0500 |
tree | 49183a44bb4cf888fbee29652ee629fb69554d96 | |
parent | dee51fe8b4f8950a04b20b832c5a5a1cd041885b [diff] |
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