MCPcopy Create free account
hub / github.com/DentonW/DevIL / Mark

Function Mark

DevIL/src-IL/src/il_quantizer.cpp:392–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391
392void Mark(struct Box *cube, int label, unsigned char *tag)
393{
394 ILint r, g, b;
395
396 for (r = cube->r0 + 1; r <= cube->r1; r++) {
397 for (g = cube->g0 + 1; g <= cube->g1; g++) {
398 for (b = cube->b0 + 1; b <= cube->b1; b++) {
399 tag[(r<<10) + (r<<6) + r + (g<<5) + g + b] = label;
400 }
401 }
402 }
403 return;
404}
405
406
407ILimage *iQuantizeImage(ILimage *Image, ILuint NumCols)

Callers 1

iQuantizeImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected