hpeldsp: add half-pel functions (currently copies of dsputil).

This commit is contained in:
Ronald S. Bultje
2013-03-09 15:14:35 -08:00
committed by Michael Niedermayer
parent 1f27053b91
commit 9628e5a4ac
7 changed files with 434 additions and 6 deletions

View File

@@ -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)