summaryrefslogtreecommitdiff
path: root/libavcodec/dsputil.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-09 14:27:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-09 14:27:44 +0100
commit276c9c0577e99c870d4d281bc8f0df82b402efc4 (patch)
tree98afdf91d6b38464087ceeec7cf3c0bdb4667ba9 /libavcodec/dsputil.c
parent5fd6d85d17d567684da0399388ae411b52ce059f (diff)
parent059866eb17cd3c66422a61d3e9c3305f55830a50 (diff)
Merge commit '059866eb17cd3c66422a61d3e9c3305f55830a50'
* commit '059866eb17cd3c66422a61d3e9c3305f55830a50': dsputil: Move WRAPPER8_16_SQ macro to the only place it is used Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r--libavcodec/dsputil.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index 5f7d6360c7..518abae319 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -2438,6 +2438,20 @@ static int ssd_int8_vs_int16_c(const int8_t *pix1, const int16_t *pix2,
return score;
}
+#define WRAPPER8_16_SQ(name8, name16)\
+static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int stride, int h){\
+ int score=0;\
+ score +=name8(s, dst , src , stride, 8);\
+ score +=name8(s, dst+8 , src+8 , stride, 8);\
+ if(h==16){\
+ dst += 8*stride;\
+ src += 8*stride;\
+ score +=name8(s, dst , src , stride, 8);\
+ score +=name8(s, dst+8 , src+8 , stride, 8);\
+ }\
+ return score;\
+}
+
WRAPPER8_16_SQ(hadamard8_diff8x8_c, hadamard8_diff16_c)
WRAPPER8_16_SQ(hadamard8_intra8x8_c, hadamard8_intra16_c)
WRAPPER8_16_SQ(dct_sad8x8_c, dct_sad16_c)