From 68d8238cca52e50e8cc81bf2edcaf8088c52d4c0 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 9 Mar 2013 15:14:35 -0800 Subject: hpeldsp: Add half-pel functions (currently copies of dsputil) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavcodec/rnd_avg.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/rnd_avg.h') diff --git a/libavcodec/rnd_avg.h b/libavcodec/rnd_avg.h index c2b90e06d4..73015787e2 100644 --- a/libavcodec/rnd_avg.h +++ b/libavcodec/rnd_avg.h @@ -19,8 +19,15 @@ #ifndef AVCODEC_RND_AVG_H #define AVCODEC_RND_AVG_H +#include #include +#define CALL_2X_PIXELS(a, b, n)\ +static void a(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\ + b(block , pixels , line_size, h);\ + b(block+n, pixels+n, line_size, h);\ +} + #define BYTE_VEC32(c) ((c)*0x01010101UL) #define BYTE_VEC64(c) ((c)*0x0001000100010001UL) -- cgit v1.2.3