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

Function pam_computeacolorhist

mapquantization.c:595–610  ·  view source on GitHub ↗
( apixels, cols, rows, maxacolors, acolorsP )

Source from the content-addressed store, hash-verified

593 & 0x7fffffff ) % HASH_SIZE )
594
595static acolorhist_vector
596pam_computeacolorhist( apixels, cols, rows, maxacolors, acolorsP )
597rgbaPixel** apixels;
598int cols, rows, maxacolors;
599int* acolorsP;
600{
601 acolorhash_table acht;
602 acolorhist_vector achv;
603
604 acht = pam_computeacolorhash( apixels, cols, rows, maxacolors, acolorsP );
605 if ( acht == (acolorhash_table) 0 )
606 return (acolorhist_vector) 0;
607 achv = pam_acolorhashtoacolorhist( acht, maxacolors );
608 pam_freeacolorhash( acht );
609 return achv;
610}
611
612
613

Callers 1

msQuantizeRasterBufferFunction · 0.85

Calls 3

pam_computeacolorhashFunction · 0.85
pam_freeacolorhashFunction · 0.85

Tested by

no test coverage detected