diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-22 11:07:33 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-12-24 10:50:12 +0100 |
commit | 2fc458479e289e5157864f3ed817bba179461e2d (patch) | |
tree | b569c7fe0caa0c6095ad74339181efd2f373e30e /.tag | |
parent | 9cdc3f0558b8c278e91037c2330b876da7ca99e2 (diff) | |
download | nextcloud-server-2fc458479e289e5157864f3ed817bba179461e2d.tar.gz nextcloud-server-2fc458479e289e5157864f3ed817bba179461e2d.zip |
[Avatars] Calculate 'sane' hue precissions
We used to get the numeric value of the entrire md5 string which is a
128bit integer. We would then devide this by the maxval of a 128bit int.
There is no need for such huge computations. As we just require a value
between 0 and 255. Thus using two 16 bit values is more than enough to
get the precision we need. By just taking the MSB we get nearly
identical results.
Diffstat (limited to '.tag')
0 files changed, 0 insertions, 0 deletions