Home | History | Annotate | Download | only in jingle

Lines Matching full:quantizer

1328 Index: org/jivesoftware/smackx/jingle/mediaimpl/sshare/api/Quantizer.java
1330 --- org/jivesoftware/smackx/jingle/mediaimpl/sshare/api/Quantizer.java (revision 11644)
1331 +++ org/jivesoftware/smackx/jingle/mediaimpl/sshare/api/Quantizer.java (working copy)
1352 - * The interface for an image quantizer. The addColor method is called (repeatedly
1356 -public interface Quantizer {
1358 - * Initialize the quantizer. This should be called before adding any pixels.
1364 - * Add pixels to the quantizer.
1515 - Quantizer quantizer = new OctTreeQuantizer();
1516 - quantizer.setup(numColors);
1517 - quantizer.addPixels(inPixels, 0, count);
1518 - int[] table = quantizer.buildColorTable();
1522 - outPixels[i] = table[quantizer.getIndexForColor(inPixels[i])];
1537 - int rgb2 = table[quantizer.getIndexForColor(rgb1)];
1996 - * An image Quantizer based on the Octree algorithm. This is a very basic implementation
2000 -public class OctTreeQuantizer implements Quantizer {
2057 - * Initialize the quantizer. This should be called before adding any pixels.
2066 - * Add pixels to the quantizer.
2218 - * A quick way to use the quantizer. Just create a table the right size and pass in the pixels.