Hjg.Pngcs.PngReader.UnfilterRow C# (CSharp) Method

UnfilterRow() private method

private UnfilterRow ( int nbytes ) : void
nbytes int
return void
        private void UnfilterRow(int nbytes)
        {
            int ftn = rowbfilter[0];
            FilterType ft = (FilterType)ftn;
            switch (ft) {
                case Hjg.Pngcs.FilterType.FILTER_NONE:
                    UnfilterRowNone(nbytes);
                    break;
                case Hjg.Pngcs.FilterType.FILTER_SUB:
                    UnfilterRowSub(nbytes);
                    break;
                case Hjg.Pngcs.FilterType.FILTER_UP:
                    UnfilterRowUp(nbytes);
                    break;
                case Hjg.Pngcs.FilterType.FILTER_AVERAGE:
                    UnfilterRowAverage(nbytes);
                    break;
                case Hjg.Pngcs.FilterType.FILTER_PAETH:
                    UnfilterRowPaeth(nbytes);
                    break;
                default:
                    throw new PngjInputException("Filter type " + ftn + " not implemented");
            }
            if (crctest != null)
                crctest.Update(rowb, 1, nbytes);
        }