src/main/java/org/apache/pdfbox/jbig2/image/Resizer.java [220:243]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            lineBuffer[y].y = -1; /* mark scanline as unread */
        }

        // range of source and destination scanlines in regions
        final int srcY0 = srcBounds.y;
        final int srcY1 = srcBounds.y + srcBounds.height;
        final int dstY0 = dstBounds.y;
        final int dstY1 = dstBounds.y + dstBounds.height;

        int yFetched = -1; // used to assert no backtracking

        // loop over dest scanlines
        for (int dstY = dstY0; dstY < dstY1; dstY++)
        {
            // a sampled filter for source pixels for each dest x position
            final Weighttab yWeight = new Weighttab(yFilter, weightOne,
                    mappingY.mapPixelCenter(dstY), srcY0, srcY1 - 1, true);

            accumulator.clear();

            // loop over source scanlines that contribute to this dest scanline
            for (int srcY = yWeight.i0; srcY <= yWeight.i1; srcY++)
            {
                final Scanline srcBuffer = lineBuffer[srcY % yBufferSize];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/pdfbox/jbig2/image/Resizer.java [300:325]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            lineBuffer[y].y = -1;
        }

        // range of source and destination scanlines in regions
        final int srcY0 = srcBounds.y;
        final int srcY1 = srcBounds.y + srcBounds.height;
        final int dstY0 = dstBounds.y;
        final int dstY1 = dstBounds.y + dstBounds.height;

        // used to assert no backtracking
        int yFetched = -1;

        // loop over destination scanlines
        for (int dstY = dstY0; dstY < dstY1; dstY++)
        {
            // prepare a weighttab for destination y position by a single sampled filter for current y
            // position
            final Weighttab yWeight = new Weighttab(yFilter, weightOne,
                    mappingY.mapPixelCenter(dstY), srcY0, srcY1 - 1, true);

            accumulator.clear();

            // loop over source scanlines that contribute to this destination scanline
            for (int srcY = yWeight.i0; srcY <= yWeight.i1; srcY++)
            {
                final Scanline srcBuffer = lineBuffer[srcY % yBufferSize];
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



