]> git.sesse.net Git - ffmpeg/commitdiff
dsputil: Move WRAPPER8_16_SQ macro to the only place it is used
authorDiego Biurrun <diego@biurrun.de>
Thu, 7 Feb 2013 21:39:26 +0000 (22:39 +0100)
committerDiego Biurrun <diego@biurrun.de>
Fri, 8 Feb 2013 22:10:17 +0000 (23:10 +0100)
libavcodec/dsputil.c
libavcodec/dsputil.h

index 9015d9dd6524cfa87ffd070ec14d3da8b94a862e..3b88164b2e2d27fc8546bc51d1beb2d02029f9ff 100644 (file)
@@ -2315,6 +2315,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)
index 70e2489d32620f61d104977d28722bade9b278c8..e4568ab4536f25f046106ae77b2f7228f9e2e66b 100644 (file)
@@ -443,18 +443,4 @@ void ff_dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
 #   define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__)
 #endif
 
-#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;\
-}
-
 #endif /* AVCODEC_DSPUTIL_H */