diff options
author | Roland Scheidegger <rscheidegger_lists@hispeed.ch> | 2012-04-15 22:13:26 +0300 |
---|---|---|
committer | Roland Scheidegger <rscheidegger_lists@hispeed.ch> | 2012-04-15 22:13:26 +0300 |
commit | 5a6586d1c506525cbcc17f557944094b3bb3bd28 (patch) | |
tree | b45f4eee47a79bf58e7b19075f099f201923f0fb /m4 | |
parent | 31888decee607dae7032dc3ec67c9a9c80624326 (diff) | |
download | xine-lib-5a6586d1c506525cbcc17f557944094b3bb3bd28.tar.gz xine-lib-5a6586d1c506525cbcc17f557944094b3bb3bd28.tar.bz2 |
simplify greedy2frame deinterlacer a bit
Cuts roughly 10% of the instructions (with sse), results should be
identical.
Not sure why it was that complicated in the first place, the
simplification is possible because the code gave a score of 1 to top and
bottom comparisons, and 2 for the middle one, and weaved when all scores
added together were more than 2. This is equivalent to weave when
(cmp(m) AND (cmp(b) OR cmp(t))) which is a much better match for the
available hw instructions. This also reduces the number of constant
loads a lot, and the patch moves up some memory loads a bit which can
never hurt.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions