Warning: session_start(): open(/var/lib/php/sessions/sess_vtvev975dm5g1apnr1q75okmr4, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
srecord noeq HashBWImage(BWImage img) {
long hash;
long get() {
if (img == null) ret hash;
int w = img.getWidth(), h = img.getHeight();
int n = w*h;
byte[] pixels = img.pixels;
addToHash(w);
addToHash(h);
for i to n:
addToHash(0xFF000000 | rgbIntFromGrayscale(ubyteToInt(pixels[i])));
ret hash;
}
void addToHash(long x) {
hash = boostHashCombine64(hash, x);
printVars ifdef HashBWImage_debug(x := longToHex(x), +hash);
}
}