From 5ce82accbe2b446d572516a4636831e16ee21b16 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 4 Mar 2023 18:20:48 +0000 Subject: add comments git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4509 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- other/pnmcolormap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'other') 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); -- cgit 1.4.1