summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/rgb_mmx.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /k9decmpeg/rgb_mmx.cpp
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'k9decmpeg/rgb_mmx.cpp')
-rwxr-xr-xk9decmpeg/rgb_mmx.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/k9decmpeg/rgb_mmx.cpp b/k9decmpeg/rgb_mmx.cpp
index 957708c..59b7c6e 100755
--- a/k9decmpeg/rgb_mmx.cpp
+++ b/k9decmpeg/rgb_mmx.cpp
@@ -127,9 +127,9 @@ static inline void mmx_yuv2rgb (uint8_t * py, uint8_t * pu, uint8_t * pv)
static inline void mmx_unpack_16rgb (uint8_t * image, const int cpu)
{
- static mmx_t mmx_bluemask = {0xf8f8f8f8f8f8f8f8LL};
- static mmx_t mmx_greenmask = {0xfcfcfcfcfcfcfcfcLL};
- static mmx_t mmx_redmask = {0xf8f8f8f8f8f8f8f8LL};
+ static mmx_t mmx_bluetqmask = {0xf8f8f8f8f8f8f8f8LL};
+ static mmx_t mmx_greentqmask = {0xfcfcfcfcfcfcfcfcLL};
+ static mmx_t mmx_redtqmask = {0xf8f8f8f8f8f8f8f8LL};
/*
* convert RGB plane to RGB 16 bits
@@ -138,9 +138,9 @@ static inline void mmx_unpack_16rgb (uint8_t * image, const int cpu)
* mm6 -> GB, mm7 -> AR pixel 0-3
*/
- pand_m2r (mmx_bluemask, mm0); /* mm0 = b7b6b5b4b3______ */
- pand_m2r (mmx_greenmask, mm2); /* mm2 = g7g6g5g4g3g2____ */
- pand_m2r (mmx_redmask, mm1); /* mm1 = r7r6r5r4r3______ */
+ pand_m2r (mmx_bluetqmask, mm0); /* mm0 = b7b6b5b4b3______ */
+ pand_m2r (mmx_greentqmask, mm2); /* mm2 = g7g6g5g4g3g2____ */
+ pand_m2r (mmx_redtqmask, mm1); /* mm1 = r7r6r5r4r3______ */
psrlq_i2r (3, mm0); /* mm0 = ______b7b6b5b4b3 */
pxor_r2r (mm4, mm4); /* mm4 = 0 */
movq_r2r (mm0, mm5); /* mm5 = ______b7b6b5b4b3 */