void function ( int [ ] arg0 , int [ ] arg1 ) { int loc0 = arg0 . length ; maximumColors = arg1 . length ; for ( int loc1 = 0 ; loc1 < loc0 ; loc1 ++ ) { insertColor ( arg0 [ loc1 ] ) ; if ( colors > reduceColors ) reduceTree ( reduceColors ) ; } if ( colors > maximumColors ) reduceTree ( maximumColors ) ; buildColorTable ( root , arg1 , 0 ) ; }
a quick way to use the quantizer . just create a table the right size and pass in the pixels . concode_field_sep OctTreeNode parent concode_elem_sep int level concode_elem_sep int colors concode_elem_sep OctTreeNode leaf[] concode_elem_sep int count concode_elem_sep int index concode_elem_sep int nodes concode_elem_sep int reduceColors concode_elem_sep boolean isLeaf concode_elem_sep Vector[] colorList concode_elem_sep int totalBlue concode_elem_sep int maximumColors concode_elem_sep int children concode_elem_sep OctTreeNode root concode_elem_sep int MAX_LEVEL concode_elem_sep int totalRed concode_elem_sep int totalGreen concode_field_sep void insertColor concode_elem_sep void addPixels concode_elem_sep void setup concode_elem_sep void list concode_elem_sep void reduceTree concode_elem_sep int getIndexForColor