diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-27 23:37:00 +0000 |
commit | b0e912c8b3d02a518fedda28c3180eb4794a7520 (patch) | |
tree | 07d344862562fab58cbe2df39d13d16f2e4d2bea /k9decmpeg/idct_alpha.cpp | |
parent | 4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff) | |
download | k9copy-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/idct_alpha.cpp')
-rwxr-xr-x | k9decmpeg/idct_alpha.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/k9decmpeg/idct_alpha.cpp b/k9decmpeg/idct_alpha.cpp index 4f1e88f..7105089 100755 --- a/k9decmpeg/idct_alpha.cpp +++ b/k9decmpeg/idct_alpha.cpp @@ -158,7 +158,7 @@ static void inline idct_col (int16_t * const block) void mpeg2_idct_copy_mvi (int16_t * block, uint8_t * dest, const int stride) { - uint64_t clampmask; + uint64_t clamptqmask; int i; for (i = 0; i < 8; i++) @@ -167,18 +167,18 @@ void mpeg2_idct_copy_mvi (int16_t * block, uint8_t * dest, const int stride) for (i = 0; i < 8; i++) idct_col (block + i); - clampmask = zap (-1, 0xaa); /* 0x00ff00ff00ff00ff */ + clamptqmask = zap (-1, 0xaa); /* 0x00ff00ff00ff00ff */ do { uint64_t shorts0, shorts1; shorts0 = ldq (block); shorts0 = maxsw4 (shorts0, 0); - shorts0 = minsw4 (shorts0, clampmask); + shorts0 = minsw4 (shorts0, clamptqmask); stl (pkwb (shorts0), dest); shorts1 = ldq (block + 4); shorts1 = maxsw4 (shorts1, 0); - shorts1 = minsw4 (shorts1, clampmask); + shorts1 = minsw4 (shorts1, clamptqmask); stl (pkwb (shorts1), dest + 4); stq (0, block); @@ -192,8 +192,8 @@ void mpeg2_idct_copy_mvi (int16_t * block, uint8_t * dest, const int stride) void mpeg2_idct_add_mvi (const int last, int16_t * block, uint8_t * dest, const int stride) { - uint64_t clampmask; - uint64_t signmask; + uint64_t clamptqmask; + uint64_t signtqmask; int i; if (last != 129 || (block[0] & (7 << 4)) == (4 << 4)) { @@ -201,9 +201,9 @@ void mpeg2_idct_add_mvi (const int last, int16_t * block, idct_row (block + 8 * i); for (i = 0; i < 8; i++) idct_col (block + i); - clampmask = zap (-1, 0xaa); /* 0x00ff00ff00ff00ff */ - signmask = zap (-1, 0x33); - signmask ^= signmask >> 1; /* 0x8000800080008000 */ + clamptqmask = zap (-1, 0xaa); /* 0x00ff00ff00ff00ff */ + signtqmask = zap (-1, 0x33); + signtqmask ^= signtqmask >> 1; /* 0x8000800080008000 */ do { uint64_t shorts0, pix0, signs0; @@ -214,22 +214,22 @@ void mpeg2_idct_add_mvi (const int last, int16_t * block, pix0 = unpkbw (ldl (dest)); /* signed subword add (MMX paddw). */ - signs0 = shorts0 & signmask; - shorts0 &= ~signmask; + signs0 = shorts0 & signtqmask; + shorts0 &= ~signtqmask; shorts0 += pix0; shorts0 ^= signs0; /* clamp. */ shorts0 = maxsw4 (shorts0, 0); - shorts0 = minsw4 (shorts0, clampmask); + shorts0 = minsw4 (shorts0, clamptqmask); /* next 4. */ pix1 = unpkbw (ldl (dest + 4)); - signs1 = shorts1 & signmask; - shorts1 &= ~signmask; + signs1 = shorts1 & signtqmask; + shorts1 &= ~signtqmask; shorts1 += pix1; shorts1 ^= signs1; shorts1 = maxsw4 (shorts1, 0); - shorts1 = minsw4 (shorts1, clampmask); + shorts1 = minsw4 (shorts1, clamptqmask); stl (pkwb (shorts0), dest); stl (pkwb (shorts1), dest + 4); |