commit | 816baa35ae5374f350ee4031ac54d7d1e90af183 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Thu Mar 01 14:11:39 2018 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Thu Mar 01 14:11:39 2018 +0100 |
tree | 9bdd1b3e1753798c020490d1f41f5d21f6ae2c51 | |
parent | e6810fa3e598c06f64f82af0141c7da3b8f9b9a8 [diff] |
Fix rounding error in pixel down conversion Simple shifting can give noticable rounding errors if there is a large difference in the number of bits between the formats. Do the proper thing via a lookup table, the same way things are done for up conversion.