diff options
author | James O'Leary <jamesoleary@google.com> | 2021-03-12 13:30:22 -0500 |
---|---|---|
committer | James O'Leary <jamesoleary@google.com> | 2021-03-12 13:30:22 -0500 |
commit | 14c6e6fcf512f74bf83ee6724045af4f8840dfc6 (patch) | |
tree | 7ca50b3a87d7d5e12da33e08387774073e9d4933 /core/jni/AndroidRuntime.cpp | |
parent | c22a37804881a0ac7896cd903b125ab877c5f638 (diff) |
Fix crash when quantizing
Incoming pixels are negative numbers. Performing this operation
ensures we receive an accurate alpha value, without it, all pixels have negative alphas.
Fixes: 182523380
Test: Add logs, see that alphas _before_ this patch are logged
as negative numbers, causing all pixels to be marked as transparent and ignored in quantization. Add patch, see logs
indicate valid alphas.
Change-Id: Ice7b7db245de9dd089cffc490b2e24780f9c025b
Diffstat (limited to 'core/jni/AndroidRuntime.cpp')
0 files changed, 0 insertions, 0 deletions