diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-04-20 20:28:28 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-12 22:28:07 +0200 |
commit | 46bb456853b197f4562de7acf5d42abf11ded9be (patch) | |
tree | 1a371d94273a54680e8c581743e3aed9a6a311b2 /libavcodec/x86/dsputil_mmx.c | |
parent | 2c2c48a9bdbef51177204dfc2f151f3be257f9b8 (diff) | |
download | ffmpeg-46bb456853b197f4562de7acf5d42abf11ded9be.tar.gz |
x86: dsputil: Refactor pixels16 wrapper functions with a macro
Diffstat (limited to 'libavcodec/x86/dsputil_mmx.c')
-rw-r--r-- | libavcodec/x86/dsputil_mmx.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c index b6d9f62c1b..89da17890a 100644 --- a/libavcodec/x86/dsputil_mmx.c +++ b/libavcodec/x86/dsputil_mmx.c @@ -440,19 +440,9 @@ static void draw_edges_mmx(uint8_t *buf, int wrap, int width, int height, #if HAVE_YASM -static void ff_avg_pixels16_mmxext(uint8_t *block, const uint8_t *pixels, - int line_size, int h) -{ - ff_avg_pixels8_mmxext(block, pixels, line_size, h); - ff_avg_pixels8_mmxext(block + 8, pixels + 8, line_size, h); -} -static void ff_put_pixels16_mmxext(uint8_t *block, const uint8_t *pixels, - ptrdiff_t line_size, int h) -{ - ff_put_pixels8_mmxext(block, pixels, line_size, h); - ff_put_pixels8_mmxext(block + 8, pixels + 8, line_size, h); -} +PIXELS16(static, ff_avg, , , _mmxext) +PIXELS16(static, ff_put, , , _mmxext) #define QPEL_OP(OPNAME, RND, MMX) \ static void OPNAME ## qpel8_mc00_ ## MMX (uint8_t *dst, uint8_t *src, \ |