diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-09 17:03:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-09 17:03:53 +0000 |
commit | ac6a2e4550d27bfd23c0c096b1ee10b1d76de213 (patch) | |
tree | 8a91d3bde9e30e67a46cb0a4ea838a7fe1770d3b /postproc/swscale.c | |
parent | 81401c1fbc79c3350e91ef15dd25b50afa9e5d4d (diff) | |
download | ffmpeg-ac6a2e4550d27bfd23c0c096b1ee10b1d76de213.tar.gz |
bgr24toY in MMX
Originally committed as revision 4613 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r-- | postproc/swscale.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c index 511b10c317..dbd381c943 100644 --- a/postproc/swscale.c +++ b/postproc/swscale.c @@ -68,6 +68,8 @@ untested special converters //#undef ARCH_X86 #define DITHER1XBPP +#define FAST_BGR2YV12 // use 7 bit coeffs instead of 15bit + #define RET 0xC3 //near return opcode for X86 #ifdef MP_DEBUG @@ -178,6 +180,14 @@ static uint64_t __attribute__((aligned(8))) M24A= 0x00FF0000FF0000FFLL; static uint64_t __attribute__((aligned(8))) M24B= 0xFF0000FF0000FF00LL; static uint64_t __attribute__((aligned(8))) M24C= 0x0000FF0000FF0000LL; +#ifdef FAST_BGR2YV12 +static const uint64_t bgr2YCoeff __attribute__((aligned(8))) = 0x000000210041000DULL; +#else +static const uint64_t bgr2YCoeff __attribute__((aligned(8))) = 0x000020E540830C8BULL; +#endif +static const uint64_t bgr2YOffset __attribute__((aligned(8))) = 0x1010101010101010ULL; +static const uint64_t w1111 __attribute__((aligned(8))) = 0x0001000100010001ULL; + // FIXME remove static uint64_t __attribute__((aligned(8))) asm_yalpha1; static uint64_t __attribute__((aligned(8))) asm_uvalpha1; |