rEFIt_UEFI/libeg/lodepng.cpp
/*
Paeth predictor, used by PNG filter type 4
The parameters are of type short, but should come from unsigned chars, the shorts
are only needed to make the paeth calculation correct.
*/
Paeth predictor, used by PNG filter type 4
The parameters are of type short, but should come from unsigned chars, the shorts
are only needed to make the paeth calculation correct.
Paeth predictor used by PNG filter type 4 The parameters are of type short but should come from unsigned chars the shorts are only needed to make the paeth calculation correct .
static unsigned char paethPredictor(short a, short b, short c) {
  short pa = LODEPNG_ABS(b - c);
  short pb = LODEPNG_ABS(a - c);
  short pc = LODEPNG_ABS(a + b - c - c);
  if(pb < pa) { a = b; pa = pb; }
  return (pc < pa) ? c : a;
}
static unsigned char paethPredictor ( short a , short b , short c ) { short pa = LODEPNG_ABS ( b - c ) ; short pb = LODEPNG_ABS ( a - c ) ; short pc = LODEPNG_ABS ( a + b - c - c ) ; if ( pb < pa ) { a = b ; pa = pb ; } return ( pc < pa ) ? c : a ; }
Paeth predictor, used by PNG filter type 4
The parameters are of type short, but should come from unsigned chars, the shorts
are only needed to make the paeth calculation correct.
Paeth predictor used by PNG filter type 4 The parameters are of type short but should come from unsigned chars the shorts are only needed to make the paeth calculation correct .
/* return input value associated with smallest of pa, pb, pc (with certain priority if equal) */