aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/dsputil_mmx.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-20 20:28:28 +0200
committerDiego Biurrun <diego@biurrun.de>2013-05-12 22:28:07 +0200
commit46bb456853b197f4562de7acf5d42abf11ded9be (patch)
tree1a371d94273a54680e8c581743e3aed9a6a311b2 /libavcodec/x86/dsputil_mmx.h
parent2c2c48a9bdbef51177204dfc2f151f3be257f9b8 (diff)
downloadffmpeg-46bb456853b197f4562de7acf5d42abf11ded9be.tar.gz
x86: dsputil: Refactor pixels16 wrapper functions with a macro
Diffstat (limited to 'libavcodec/x86/dsputil_mmx.h')
-rw-r--r--libavcodec/x86/dsputil_mmx.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputil_mmx.h b/libavcodec/x86/dsputil_mmx.h
index 9f62faa0b9..388916b895 100644
--- a/libavcodec/x86/dsputil_mmx.h
+++ b/libavcodec/x86/dsputil_mmx.h
@@ -153,4 +153,16 @@ void ff_deinterlace_line_inplace_mmx(const uint8_t *lum_m4,
const uint8_t *lum_m1,
const uint8_t *lum, int size);
+#define PIXELS16(STATIC, PFX1, PFX2, TYPE, CPUEXT) \
+STATIC void PFX1 ## _pixels16 ## TYPE ## CPUEXT(uint8_t *block, \
+ const uint8_t *pixels, \
+ ptrdiff_t line_size, \
+ int h) \
+{ \
+ PFX2 ## PFX1 ## _pixels8 ## TYPE ## CPUEXT(block, pixels, \
+ line_size, h); \
+ PFX2 ## PFX1 ## _pixels8 ## TYPE ## CPUEXT(block + 8, pixels + 8, \
+ line_size, h); \
+}
+
#endif /* AVCODEC_X86_DSPUTIL_MMX_H */