src/main/java/org/jcodec/scale/BaseResampler.java
public void resample(Picture src, Picture dst) {
        int[] temp = tempBuffers.get();
        int taps = nTaps();
        if (temp == null) {
            temp = new int[toSize.getWidth() * (fromSize.getHeight() + taps)];
            tempBuffers.set(temp);
        }
        for (int p = 0; p < src.getColor().nComp; p++) {
            // Horizontal pass
            for (int y = 0; y < src.getPlaneHeight(p) + taps; y++) {
                for (int x = 0; x < dst.getPlaneWidth(p); x++) {
                    short[] tapsXs = getTapsX(x);
                    int srcX = (int) (scaleFactorX * x) - taps / 2 + 1;

                    int sum = 0;
                    for (int i = 0; i < taps; i++) {
                        sum += (getPel(src, p, srcX + i, y - taps / 2 + 1) + 128) * tapsXs[i];
                    }
                    temp[y * toSize.getWidth() + x] = sum;
                }
            }

            // Vertical pass
            for (int y = 0; y < dst.getPlaneHeight(p); y++) {
                for (int x = 0; x < dst.getPlaneWidth(p); x++) {
                    short[] tapsYs = getTapsY(y);
                    int srcY = (int) (scaleFactorY * y);

                    int sum = 0;
                    for (int i = 0; i < taps; i++) {
                        sum += temp[x + (srcY + i) * toSize.getWidth()] * tapsYs[i];
                    }
                    dst.getPlaneData(p)[y * dst.getPlaneWidth(p) + x] = (byte) (MathUtil.clip((sum + 8192) >> 14, 0,
                            255) - 128);
                }
            }
        }
    }
public void resample(Picture src, Picture dst) {
        int[] temp = tempBuffers.get();
        int taps = nTaps();
        if (temp == null) {
            temp = new int[toSize.getWidth() * (fromSize.getHeight() + taps)];
            tempBuffers.set(temp);
        }
        for (int p = 0; p < src.getColor().nComp; p++) {
            // Horizontal pass
            for (int y = 0; y < src.getPlaneHeight(p) + taps; y++) {
                for (int x = 0; x < dst.getPlaneWidth(p); x++) {
                    short[] tapsXs = getTapsX(x);
                    int srcX = (int) (scaleFactorX * x) - taps / 2 + 1;

                    int sum = 0;
                    for (int i = 0; i < taps; i++) {
                        sum += (getPel(src, p, srcX + i, y - taps / 2 + 1) + 128) * tapsXs[i];
                    }
                    temp[y * toSize.getWidth() + x] = sum;
                }
            }

            // Vertical pass
            for (int y = 0; y < dst.getPlaneHeight(p); y++) {
                for (int x = 0; x < dst.getPlaneWidth(p); x++) {
                    short[] tapsYs = getTapsY(y);
                    int srcY = (int) (scaleFactorY * y);

                    int sum = 0;
                    for (int i = 0; i < taps; i++) {
                        sum += temp[x + (srcY + i) * toSize.getWidth()] * tapsYs[i];
                    }
                    dst.getPlaneData(p)[y * dst.getPlaneWidth(p) + x] = (byte) (MathUtil.clip((sum + 8192) >> 14, 0,
                            255) - 128);
                }
            }
        }
    }
Wrong usage of Javascript keyword:in