save_ora: 33% faster
authorMartin Renold <martinxyz@gmx.ch>
Sun, 7 Aug 2011 10:41:56 +0000 (12:41 +0200)
committerMartin Renold <martinxyz@gmx.ch>
Sun, 7 Aug 2011 10:57:12 +0000 (12:57 +0200)
commit1086c0051d8616cecc606aad3158a39cc93f44dc
tree514a917b1df3cad769275c017d937c0d9afc8b70
parent08c475d632edbd1b465a51780116fc926a2c05ed
save_ora: 33% faster

Use precalculated noise for dithering, don't call rand().
The speed is now the same it was for rounding, but we keep the quality.
lib/pixops.hpp