diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-03-04 18:20:48 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-03-04 18:20:48 +0000 |
commit | 5ce82accbe2b446d572516a4636831e16ee21b16 (patch) | |
tree | c3e3bacab62a77e49052b6a9b0b47e16d3a150b1 /other | |
parent | 3b851bc488d064fd6b6419d2dfbdc83bf24d5219 (diff) | |
download | netpbm-mirror-5ce82accbe2b446d572516a4636831e16ee21b16.tar.gz netpbm-mirror-5ce82accbe2b446d572516a4636831e16ee21b16.tar.xz netpbm-mirror-5ce82accbe2b446d572516a4636831e16ee21b16.zip |
add comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4509 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r-- | other/pnmcolormap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/other/pnmcolormap.c b/other/pnmcolormap.c index b8a4387a..fbe85d4e 100644 --- a/other/pnmcolormap.c +++ b/other/pnmcolormap.c @@ -825,6 +825,9 @@ mediancut(tupletable2 const colorFreqTable, multicolorBoxesExist = FALSE; else splitBox(&boxVector, boxIdx, methodForLargest, methodForSplit); + /* Side effect: sorts the extent of 'colorfreqTable' that is + in the box + */ } if (wantBvReport) @@ -987,6 +990,9 @@ computeColorMapFromInput(FILE * const ifP, relevant to our colormap mission; just a fringe benefit). -----------------------------------------------------------------------------*/ tupletable2 colorFreqTable; + /* Table of all colors in the image, with the number of pixels of + each color. + */ computeHistogram(ifP, formatP, freqPamP, &colorFreqTable); |