178179180181182183184185186187188
case SUB: return new ScanlineFilterSub(bytesPerPixel); case UP: return new ScanlineFilterUp(); case AVERAGE: return new ScanlineFilterAverage(bytesPerPixel); case PAETH: return new ScanlineFilterPaeth(bytesPerPixel); } return null;
200201202203204205206207208209210
case 2: // Up filter = new ScanlineFilterUp(BytesPerPixel); break; case 3: // Average filter = new ScanlineFilterAverage(BytesPerPixel); break; case 4: // Paeth filter = new ScanlineFilterPaeth(BytesPerPixel); break;
201202203204205206207208209210211
202203204205206207208209210211212