Hjg.Pngcs.PngWriter.reportResultsForFilter C# (CSharp) Method

reportResultsForFilter() private method

private reportResultsForFilter ( int rown, FilterType type, bool tentative ) : void
rown int
type FilterType
tentative bool
return void
        private void reportResultsForFilter(int rown, FilterType type, bool tentative)
        {
            for (int i = 0; i < histox.Length; i++)
                histox[i] = 0;
            int s = 0, v;
            for (int i = 1; i <= ImgInfo.BytesPerRow; i++) {
                v = rowbfilter[i];
                if (v < 0)
                    s -= (int)v;
                else
                    s += (int)v;
                histox[v & 0xFF]++;
            }
            filterStrat.fillResultsForFilter(rown, type, s, histox, tentative);
        }