Lines Matching refs:weight
34 unsigned long weight; // number of pixels this node accounts for
50 colors_sum(stored in rs,gs,bs)/weight
86 leaves with minimal impact i.e. [ weight * 2^(2*parentwidth) ] value :
115 averages, computed from weight and color components sums.
199 printf("width:%d weight:%lu rgb:%6x nleaf:%d mi:%lu\n",
201 node->weight,
203 ((node->rs / node->weight) << 16) +
204 ((node->gs / node->weight) << 8) +
205 (node->bs / node->weight)),
234 node->weight = 1;
267 node1->weight += node2->weight;
280 node2->weight += node1->weight;
295 newnode->weight = node1->weight + node2->weight;
348 node->weight << (2 * node->parent->width) : 0;
497 rgbpal[*index].r = node->rs / node->weight;
498 rgbpal[*index].g = node->gs / node->weight;
499 rgbpal[*index].b = node->bs / node->weight;