diff options
| author | 2022-11-21 16:07:36 -0500 | |
|---|---|---|
| committer | 2022-11-21 16:27:52 -0500 | |
| commit | 86207bac10e8ad0f0459b92cb9814b165db74896 (patch) | |
| tree | 49183a44bb4cf888fbee29652ee629fb69554d96 /libs/jpegrecoverymap/jpegencoderhelper.cpp | |
| 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
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions