Pascal Massimino 6585075f8a Change PixelsAreSimilar() to handle black pixels correctly.
if src_{r,g,b} = 0, any value of src_a or dst_a such that
   abs(src_a - dst_a) <= max_allowed_diff
was making the test pass, despite being very different-looking pixels.

The fix is to require same values for src_a and dst_a before attempting
an r/g/b comparison.

Change-Id: If3a55a229eab3904ed454f20065e49e35c39f25c
2016-08-25 07:33:18 +02:00
..
2015-12-17 19:45:14 -08:00
2016-08-19 14:52:57 +02:00
2016-07-19 17:23:17 -07:00
2016-07-19 17:23:17 -07:00