Searched refs:netbiasshift (Results 1 – 1 of 1) sorted by relevance
57 protected static final int netbiasshift = 4; /* bias for colour values */ field in NeuQuant153 p[0] = p[1] = p[2] = (i << (netbiasshift + 8)) / netsize; in NeuQuant()276 b = (p[pix + 0] & 0xff) << netbiasshift; in learn()277 g = (p[pix + 1] & 0xff) << netbiasshift; in learn()278 r = (p[pix + 2] & 0xff) << netbiasshift; in learn()394 network[i][0] >>= netbiasshift; in unbiasnet() local395 network[i][1] >>= netbiasshift; in unbiasnet() local396 network[i][2] >>= netbiasshift; in unbiasnet() local493 biasdist = dist - ((bias[i]) >> (intbiasshift - netbiasshift)); in contest()