summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJames O'Leary <jamesoleary@google.com>2021-06-02 10:31:24 -0400
committerJames O'Leary <jamesoleary@google.com>2021-06-09 13:33:41 -0400
commitbf1b65be0e0b989290b5de17c7123c130138abe9 (patch)
treebb6e2521d3015f8e0d90cc3dbe64e03fbc0f88a3 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentd1bc261d8dcf00e894dfd07e46a3232081448266 (diff)
Quantize image to 128 colors instead of 5
Quantizing an image to five colors results in an extreme amount of averaging of colors, leading to low chroma colors and erasing colors from the image that the eye gravitates towards. Coupled with a change to ensure there's still a broadly accurate signal of a given cluster's population of the image, via summing the population of all the clusters close to the hue of the cluster, and with proof that having this many data points doesn't lead to instability in results, we gain access to a much larger variety of colors. This gives room to add heuristics to avoid 'bad' colors, as well as increase the number of colorful colors we offer. Bug: 189931209 Test: Test tons and tons of wallpapers over a couple days. Change-Id: Ifc2d9393039194c151920536b9217ae9636ff0d6
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions