diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2013-03-09 15:14:35 -0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-13 03:54:47 +0100 |
commit | 9628e5a4acb02467d6bcc07989527664bf2334e7 (patch) | |
tree | e238d6fc11ab89ac4637be06166d4670d4866216 /libavcodec/rnd_avg.h | |
parent | 1f27053b91e4f0b1f6571448db9e363fd84e65b6 (diff) | |
download | ffmpeg-9628e5a4acb02467d6bcc07989527664bf2334e7.tar.gz |
hpeldsp: add half-pel functions (currently copies of dsputil).
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 bc663ef864..50ab59a0fc 100644 --- a/libavcodec/rnd_avg.h +++ b/libavcodec/rnd_avg.h @@ -22,8 +22,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) |