[FFmpeg-cvslog] r28972 - trunk/libswscale/yuv2rgb_template.c

sdrik subversion
Mon Mar 16 09:29:41 CET 2009


Author: sdrik
Date: Mon Mar 16 09:29:40 2009
New Revision: 28972

Log:
Split YUV2RGB operands declaration into a separate macro

Modified:
   trunk/libswscale/yuv2rgb_template.c

Modified: trunk/libswscale/yuv2rgb_template.c
==============================================================================
--- trunk/libswscale/yuv2rgb_template.c	Sun Mar 15 23:19:05 2009	(r28971)
+++ trunk/libswscale/yuv2rgb_template.c	Mon Mar 16 09:29:40 2009	(r28972)
@@ -162,7 +162,8 @@
         "add $"AV_STRINGIFY(depth*8)", %1    \n\t" \
         "add                       $4, %0    \n\t" \
         " js                       1b        \n\t" \
-\
+
+#define YUV2RGB_OPERANDS \
         : "+r" (index), "+r" (image) \
         : "r" (pu - index), "r" (pv - index), "r"(&c->redDither), "r" (py - 2*index) \
         ); \
@@ -223,6 +224,7 @@ static inline int RENAME(yuv420_rgb16)(S
         MOVNTQ "   %%mm5, 8 (%1);" /* store pixel 4-7 */
 
     YUV2RGB_ENDLOOP(2)
+    YUV2RGB_OPERANDS
 }
 
 static inline int RENAME(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
@@ -280,6 +282,7 @@ static inline int RENAME(yuv420_rgb15)(S
         MOVNTQ " %%mm5, 8 (%1);" /* store pixel 4-7 */
 
     YUV2RGB_ENDLOOP(2)
+    YUV2RGB_OPERANDS
 }
 
 static inline int RENAME(yuv420_rgb24)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
@@ -394,6 +397,7 @@ static inline int RENAME(yuv420_rgb24)(S
 #endif
 
     YUV2RGB_ENDLOOP(3)
+    YUV2RGB_OPERANDS
 }
 
 #define RGB_PLANAR2PACKED32                                             \
@@ -450,4 +454,5 @@ static inline int RENAME(yuv420_rgb32)(S
         RGB_PLANAR2PACKED32
 
     YUV2RGB_ENDLOOP(4)
+    YUV2RGB_OPERANDS
 }




More information about the ffmpeg-cvslog mailing list