summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Andrew Zeng <zenga@google.com> 2022-11-08 11:10:48 -0800
committer Andrew Zeng <zenga@google.com> 2022-11-08 20:00:34 +0000
commitf9f5822d8d391e9a4e053f89ef7b7944b26351bb (patch)
treeee2f7ed26f439191ba1fff8ac9480fa307117e5e /libs/androidfw/StringPool.cpp
parentc3322a827afa8acdcbfbbad652b8bd112910f9bc (diff)
Fix boot animation alpha multiplication computations
Previously, this was resulting in the output color roughtly as output_n = color_n * mask_n^2 * (mask_0 + mask_1 + mask_2 + mask_3) where n is a color channel between 0 and 3. This caused extra aliasing around edges, since the alpha fades too quickly along an edge. Bug: 239632466 Bug: 258246539 Test: verify pixel values for boot animation match mask on watch + phone Test: modify uFade value, verify pixel colors match Change-Id: I86742a181576e684aa698a190a8766f4223de799
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions