# HG changeset patch # User sdrik # Date 1237192180 0 # Node ID f2abbc7bb8f05c9b94991b0f7e526ac7a8202a08 # Parent fd9de1e70d47e57d2c449e9f51229aaeb5cfba89 Split YUV2RGB operands declaration into a separate macro diff -r fd9de1e70d47 -r f2abbc7bb8f0 libswscale/yuv2rgb_template.c --- a/libswscale/yuv2rgb_template.c Sun Mar 15 22:19:05 2009 +0000 +++ b/libswscale/yuv2rgb_template.c Mon Mar 16 08:29:40 2009 +0000 @@ -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 @@ 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 @@ 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 @@ #endif YUV2RGB_ENDLOOP(3) + YUV2RGB_OPERANDS } #define RGB_PLANAR2PACKED32 \ @@ -450,4 +454,5 @@ RGB_PLANAR2PACKED32 YUV2RGB_ENDLOOP(4) + YUV2RGB_OPERANDS }