summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-09 23:43:48 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-09 23:43:48 +0000
commit9a93e7607aa958d83d2612f4fc34e33cfbe414c5 (patch)
treebd4c5d082d4521de5b1853917cc5b1b61b376698 /postproc/swscale.c
parent1dbeaf91541e7b7ba685df92d02555b9a05d9d15 (diff)
downloadmpv-9a93e7607aa958d83d2612f4fc34e33cfbe414c5.tar.bz2
mpv-9a93e7607aa958d83d2612f4fc34e33cfbe414c5.tar.xz
bgr24toUV in MMX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4620 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r--postproc/swscale.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index dbd381c943..5610b65dcd 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -182,10 +182,15 @@ static uint64_t __attribute__((aligned(8))) M24C= 0x0000FF0000FF0000LL;
#ifdef FAST_BGR2YV12
static const uint64_t bgr2YCoeff __attribute__((aligned(8))) = 0x000000210041000DULL;
+static const uint64_t bgr2UCoeff __attribute__((aligned(8))) = 0x0000FFEEFFDC0038ULL;
+static const uint64_t bgr2VCoeff __attribute__((aligned(8))) = 0x00000038FFD2FFF8ULL;
#else
static const uint64_t bgr2YCoeff __attribute__((aligned(8))) = 0x000020E540830C8BULL;
+static const uint64_t bgr2UCoeff __attribute__((aligned(8))) = 0x0000ED0FDAC23831ULL;
+static const uint64_t bgr2VCoeff __attribute__((aligned(8))) = 0x00003831D0E6F6EAULL;
#endif
static const uint64_t bgr2YOffset __attribute__((aligned(8))) = 0x1010101010101010ULL;
+static const uint64_t bgr2UVOffset __attribute__((aligned(8)))= 0x8080808080808080ULL;
static const uint64_t w1111 __attribute__((aligned(8))) = 0x0001000100010001ULL;
// FIXME remove