MCPcopy Create free account
hub / github.com/MapServer/MapServer / pam_lookupacolor

Function pam_lookupacolor

mapquantization.c:736–750  ·  view source on GitHub ↗
( acht, acolorP )

Source from the content-addressed store, hash-verified

734
735
736static int
737pam_lookupacolor( acht, acolorP )
738acolorhash_table acht;
739rgbaPixel* acolorP;
740{
741 int hash;
742 acolorhist_list achl;
743
744 hash = pam_hashapixel( *acolorP );
745 for ( achl = acht[hash]; achl != (acolorhist_list) 0; achl = achl->next )
746 if ( PAM_EQUAL( achl->ch.acolor, *acolorP ) )
747 return achl->ch.value;
748
749 return -1;
750}
751
752
753

Callers 1

msClassifyRasterBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected