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

Function pam_allocacolorhash

mapquantization.c:662–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660
661
662static acolorhash_table
663pam_allocacolorhash( )
664{
665 acolorhash_table acht;
666 int i;
667
668 acht = (acolorhash_table) malloc( HASH_SIZE * sizeof(acolorhist_list) );
669 if ( acht == 0 ) {
670 fprintf( stderr, " out of memory allocating hash table\n" );
671 exit(8);
672 }
673
674 for ( i = 0; i < HASH_SIZE; ++i )
675 acht[i] = (acolorhist_list) 0;
676
677 return acht;
678}
679
680
681

Callers 2

msClassifyRasterBufferFunction · 0.85
pam_computeacolorhashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected