MCPcopy Index your code
hub / github.com/MapServer/MapServer / pam_addtoacolorhash

Function pam_addtoacolorhash

mapquantization.c:682–699  ·  view source on GitHub ↗
( acht, acolorP, value )

Source from the content-addressed store, hash-verified

680
681
682static int
683pam_addtoacolorhash( acht, acolorP, value )
684acolorhash_table acht;
685rgbaPixel* acolorP;
686int value;
687{
688 register int hash;
689 register acolorhist_list achl;
690
691 achl = (acolorhist_list) msSmallMalloc( sizeof(struct acolorhist_list_item) );
692
693 hash = pam_hashapixel( *acolorP );
694 achl->ch.acolor = *acolorP;
695 achl->ch.value = value;
696 achl->next = acht[hash];
697 acht[hash] = achl;
698 return 0;
699}
700
701
702

Callers 1

msClassifyRasterBufferFunction · 0.85

Calls 1

msSmallMallocFunction · 0.85

Tested by

no test coverage detected