Lines Matching refs:table
110 BColorQuantizer::GetColorTable(RGBA* table) const
133 table[j].r = clip((float)nr / ns);
134 table[j].g = clip((float)ng / ns);
135 table[j].b = clip((float)nb / ns);
136 table[j].a = clip((float)na / ns);
139 memcpy(table, tmpPalette, fLeafCount * sizeof(RGBA));
142 _GetPaletteColors(fTree, table, &index, NULL);
258 BColorQuantizer::_GetPaletteColors(Node* node, RGBA* table, uint32* _index,
265 table[*_index].r = clip((float)node->sumR / node->pixelCount);
266 table[*_index].g = clip((float)node->sumG / node->pixelCount);
267 table[*_index].b = clip((float)node->sumB / node->pixelCount);
268 table[*_index].a = clip((float)node->sumA / node->pixelCount);
275 _GetPaletteColors(node->child[i], table, _index, sums);