Guest User

Untitled

a guest
May 4th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. paeth_predictor = (a, b, c):
  2. p = a + b - c
  3. pa = abs(p - a)
  4. pb = abs(p - b)
  5. pc = abs(p - c)
  6. if pa <= pb and pa <= pc
  7. return a
  8. elif pb <= pc
  9. return b
  10. else
  11. return c
Advertisement
Add Comment
Please, Sign In to add comment