summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorsdrik <sdrik@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-16 08:29:40 +0000
committersdrik <sdrik@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-16 08:29:40 +0000
commitc77884b8edd7658c98551134d5b41196f8744d58 (patch)
tree968b0dab29ecb8e6d98adad43347651c98b4a281 /libswscale
parent773c611884236fe4c4ca233fcc333c08de531687 (diff)
downloadmpv-c77884b8edd7658c98551134d5b41196f8744d58.tar.bz2
mpv-c77884b8edd7658c98551134d5b41196f8744d58.tar.xz
Split YUV2RGB operands declaration into a separate macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28972 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/yuv2rgb_template.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libswscale/yuv2rgb_template.c b/libswscale/yuv2rgb_template.c
index f55568b0ab..35b7f14f60 100644
--- a/libswscale/yuv2rgb_template.c
+++ b/libswscale/yuv2rgb_template.c
@@ -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)(SwsContext *c, uint8_t* src[], int srcStr
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)(SwsContext *c, uint8_t* src[], int srcStr
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)(SwsContext *c, uint8_t* src[], int srcStr
#endif
YUV2RGB_ENDLOOP(3)
+ YUV2RGB_OPERANDS
}
#define RGB_PLANAR2PACKED32 \
@@ -450,4 +454,5 @@ static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStr
RGB_PLANAR2PACKED32
YUV2RGB_ENDLOOP(4)
+ YUV2RGB_OPERANDS
}