src/main/java/com/mxgraph/util/png/mxPngEncodeParam.java
public static final int paethPredictor(int a, int b, int c)
	{
		int p = a + b - c;
		int pa = abs(p - a);
		int pb = abs(p - b);
		int pc = abs(p - c);

		if ((pa <= pb) && (pa <= pc))
		{
			return a;
		}
		else if (pb <= pc)
		{
			return b;
		}
		else
		{
			return c;
		}
	}
/**
	 * The Paeth predictor routine used in PNG encoding.  This routine
	 * is included as a convenience to subclasses that override the
	 * <code>filterRow</code> method.
	 */
The Paeth predictor routine used in PNG encoding.  This routine
is included as a convenience to subclasses that override the
filterRow method.
The Paeth predictor routine used in PNG encoding . This routine is included as a convenience to subclasses that override the filterRow method .
public static final int paethPredictor(int a, int b, int c)
	{
		int p = a + b - c;
		int pa = abs(p - a);
		int pb = abs(p - b);
		int pc = abs(p - c);
		if ((pa <= pb) && (pa <= pc))
		{
			return a;
		}
		else if (pb <= pc)
		{
			return b;
		}
		else
		{
			return c;
		}
	}
public static final int paethPredictor ( int a , int b , int c ) { int p = a + b - c ; int pa = abs ( p - a ) ; int pb = abs ( p - b ) ; int pc = abs ( p - c ) ; if ( ( pa <= pb ) && ( pa <= pc ) ) { return a ; } else if ( pb <= pc ) { return b ; } else { return c ; } }
The Paeth predictor routine used in PNG encoding.
The Paeth predictor routine used in PNG encoding .