diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-09 15:14:35 -0800 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-04-19 23:17:17 +0300 |
commit | 68d8238cca52e50e8cc81bf2edcaf8088c52d4c0 (patch) | |
tree | d32539e3ed023b14152dbe2924fd3ff4297d15e2 /libavcodec/rnd_avg.h | |
parent | bc7fbd36ea855339b6a12bf02a55b0bec7bba14f (diff) | |
download | ffmpeg-68d8238cca52e50e8cc81bf2edcaf8088c52d4c0.tar.gz |
hpeldsp: Add half-pel functions (currently copies of dsputil)
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/rnd_avg.h')
-rw-r--r-- | libavcodec/rnd_avg.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <stddef.h> #include <stdint.h> +#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) |