Home | History | Annotate | Download | only in jpeg

Lines Matching full:cell

38  * in the same histogram cell.
110 * (preferably unsigned long) for each cell. In practice this is overkill;
111 * we can get by with 16 bits per cell. Few of the cell counts will overflow,
116 * in that capacity, each cell must be able to store zero to the number of
117 * desired colors. 16 bits/cell is plenty for that too.)
147 typedef UINT16 histcell; /* histogram cell; prefer an unsigned type */
400 * Since the differences are expressed in histogram-cell units,
575 * histogram cell will be mapped to the same colormap entry, namely the one
576 * closest to the cell's center. This may not be quite the closest entry to
578 * indicates we haven't found the nearest color for that cell yet; the array
580 * nearest color for a cell, its colormap index plus one is recorded in the
588 * the distances from a given colormap entry to each cell of the histogram can
592 * distance from every colormap entry to every histogram cell. Unfortunately,
594 * cell (because the inner loop has to be over cells, not colormap entries).
649 * for the nearest entry to some cell(s) in the update box. The update box
650 * is specified by the center coordinates of its first cell. The number of
666 * histogram cell, which are the upper bounds of the volume we care about.
701 /* within cell range so no contribution to min_dist */
724 /* within cell range so no contribution to min_dist */
746 /* within cell range so no contribution to min_dist */
761 /* Now we know that no cell in the update box is more than minmaxdist
777 /* Find the closest colormap entry for each cell in the update box,
793 /* This array holds the distance to the nearest-so-far color for each cell */
796 /* Initialize best-distance for each cell of the update box */
802 * compute its distance to the center of each cell in the box.
806 /* Nominal steps between cell centers ("x" in Thomas article) */
857 /* histogram cell c0/c1/c2. (Only that one cell MUST be filled, but */
869 /* This array holds the actually closest colormap index for each cell. */
872 /* Convert cell coordinates to update box ID */
879 * histogram cell, which are the lower bounds of the volume we care about.
886 * for the nearest entry to some cell in the update box.
895 c0 <<= BOX_C0_LOG; /* convert ID back to base cell indexes */
941 /* Now emit the colormap index for this cell */
1032 /* Now emit the colormap index for this cell */