commit | 14c6e6fcf512f74bf83ee6724045af4f8840dfc6 | [log] [tgz] |
---|---|---|
author | James O'Leary <jamesoleary@google.com> | Fri Mar 12 13:30:22 2021 -0500 |
committer | James O'Leary <jamesoleary@google.com> | Fri Mar 12 13:30:22 2021 -0500 |
tree | 7ca50b3a87d7d5e12da33e08387774073e9d4933 | |
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