]> git.sesse.net Git - vlc/blobdiff - modules/video_chroma/i422_yuy2.h
* modules/video_chroma/i420_rgb_mmx.h: use RIP-related code on amd64.
[vlc] / modules / video_chroma / i422_yuy2.h
index 3e20357924651339d9a199a6a4256ad3e482a0f7..0524a0373e765a286b91639a864629dffd618c02 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * i422_yuy2.h : YUV to YUV conversion module for vlc
  *****************************************************************************
- * Copyright (C) 2002 VideoLAN
- * $Id: i422_yuy2.h,v 1.2 2003/08/29 18:58:05 fenrir Exp $
+ * Copyright (C) 2002 the VideoLAN team
+ * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -83,10 +83,10 @@ movq      %%mm1, 8(%0)  # Store high UYVY                                 \n\
     *(p_line)++ = *(p_y)++;                                                 \
 
 #define C_YUV422_Y211( p_line, p_y, p_u, p_v )                              \
-    *(p_line)++ = *(p_y); ((uint16_t*)p_y)++;                               \
-    *(p_line)++ = *(p_u) - 0x80; ((uint16_t*)p_u)++;                        \
-    *(p_line)++ = *(p_y); ((uint16_t*)p_y)++;                               \
-    *(p_line)++ = *(p_v) - 0x80; ((uint16_t*)p_v)++;                        \
+    *(p_line)++ = *(p_y); p_y += 2;                                         \
+    *(p_line)++ = *(p_u) - 0x80; p_u += 2;                                  \
+    *(p_line)++ = *(p_y); p_y += 2;                                         \
+    *(p_line)++ = *(p_v) - 0x80; p_v += 2;                                  \
 
 #endif