summaryrefslogtreecommitdiffstats
path: root/k9decmpeg/rgb_mmx.cpp
diff options
context:
space:
mode:
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 59b7c6e..957708c 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_bluetqmask = {0xf8f8f8f8f8f8f8f8LL};
- static mmx_t mmx_greentqmask = {0xfcfcfcfcfcfcfcfcLL};
- static mmx_t mmx_redtqmask = {0xf8f8f8f8f8f8f8f8LL};
+ static mmx_t mmx_bluemask = {0xf8f8f8f8f8f8f8f8LL};
+ static mmx_t mmx_greenmask = {0xfcfcfcfcfcfcfcfcLL};
+ static mmx_t mmx_redmask = {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_bluetqmask, mm0); /* mm0 = b7b6b5b4b3______ */
- pand_m2r (mmx_greentqmask, mm2); /* mm2 = g7g6g5g4g3g2____ */
- pand_m2r (mmx_redtqmask, mm1); /* mm1 = r7r6r5r4r3______ */
+ pand_m2r (mmx_bluemask, mm0); /* mm0 = b7b6b5b4b3______ */
+ pand_m2r (mmx_greenmask, mm2); /* mm2 = g7g6g5g4g3g2____ */
+ pand_m2r (mmx_redmask, mm1); /* mm1 = r7r6r5r4r3______ */
psrlq_i2r (3, mm0); /* mm0 = ______b7b6b5b4b3 */
pxor_r2r (mm4, mm4); /* mm4 = 0 */
movq_r2r (mm0, mm5); /* mm5 = ______b7b6b5b4b3 */