diff options
| author | 2023-07-06 10:40:31 -0400 | |
|---|---|---|
| committer | 2023-07-06 10:42:30 -0400 | |
| commit | 9519757d99f5e709cb623b5abcd474e44bc084e1 (patch) | |
| tree | d9d9a4339b8a11785f4e64fc15f05340083dd1ee /libs/androidfw/FileStream.cpp | |
| parent | dd337315841e1f9b85cecd5328a62958db130745 (diff) | |
Fix inSampleSize != 1 gainmap decoding
When decoding with a sample size we cannot use the width/height of
the subset to allocate the gainmap bitmap as that will be scaled
by the sample size.
Instead split out the destination width/height from the decode
subset to avoid trying to pack too many meanings into a single rect
Fixes: 289103338
Test: manual inspection of inSampleSize 1, 2, and 3 with & without
inBitmap being specified
Change-Id: I0685579d6835a6a06d73ef50c59b08611ca80211
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions