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.h | |
parent | 2c2c48a9bdbef51177204dfc2f151f3be257f9b8 (diff) | |
download | ffmpeg-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.h | 12 |
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 */ |