summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-07 03:52:55 +0000
committerramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-07 03:52:55 +0000
commitb5b701c544338af167932a0cd803e3a11d1ab0d7 (patch)
tree740d76d9b744c48171b8cd3df3fe7f71ba814dd9
parent71f9e96fc7470f5ca692698067898c8ce3d6cfec (diff)
downloadmpv-b5b701c544338af167932a0cd803e3a11d1ab0d7.tar.bz2
mpv-b5b701c544338af167932a0cd803e3a11d1ab0d7.tar.xz
Document the differences between the two asm fragments in initMMX2HScaler().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29978 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/swscale.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 222c0c0136..079ed31cd1 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1697,6 +1697,12 @@ static int initMMX2HScaler(int dstW, int xInc, uint8_t *filterCode, int16_t *fil
int xpos, i;
// create an optimized horizontal scaling routine
+ /* This scaler is made of runtime-generated MMX2 code using specially
+ * tuned pshufw instructions. For every four output pixels, if four
+ * input pixels are enough for the fast bilinear scaling, then a chunk
+ * of fragmentB is used. If five input pixels are needed, then a chunk
+ * of fragmentA is used.
+ */
//code fragment