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

Skip to content
Commit 2f708883 authored by John Reck's avatar John Reck Committed by Android Build Coastguard Worker
Browse files

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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9519757d99f5e709cb623b5abcd474e44bc084e1)
Merged-In: I0685579d6835a6a06d73ef50c59b08611ca80211
Change-Id: I0685579d6835a6a06d73ef50c59b08611ca80211
parent e4300edc
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