[SCM] libav/experimental: dsputil: Move hpel_template #include out of dsputil_template

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:24 UTC 2014


The following commit has been merged in the experimental branch:
commit d3c3c1664a958923f234283e66fbcbfe69a6927f
Author: Diego Biurrun <diego at biurrun.de>
Date:   Wed Jan 8 00:06:52 2014 +0100

    dsputil: Move hpel_template #include out of dsputil_template
    
    Multiple inclusion makes no sense as it is only used in the 8-bit case.

diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c
index b81ba47..e41ea86 100644
--- a/libavcodec/dsputil.c
+++ b/libavcodec/dsputil.c
@@ -48,6 +48,7 @@ uint32_t ff_square_tab[512] = { 0, };
 #undef BIT_DEPTH
 
 #define BIT_DEPTH 8
+#include "hpel_template.c"
 #include "tpel_template.c"
 #include "dsputil_template.c"
 
diff --git a/libavcodec/dsputil_template.c b/libavcodec/dsputil_template.c
index 56f41ad..c2b30d2 100644
--- a/libavcodec/dsputil_template.c
+++ b/libavcodec/dsputil_template.c
@@ -97,10 +97,6 @@ static void FUNCC(clear_blocks)(int16_t *blocks)
 }
 #endif
 
-#if BIT_DEPTH == 8
-#include "hpel_template.c"
-#endif
-
 #define PIXOP2(OPNAME, OP)                                              \
 static inline void FUNC(OPNAME ## _no_rnd_pixels8_l2)(uint8_t *dst,     \
                                                       const uint8_t *src1, \
diff --git a/libavcodec/hpel_template.c b/libavcodec/hpel_template.c
index 0a8550a..fa7a614 100644
--- a/libavcodec/hpel_template.c
+++ b/libavcodec/hpel_template.c
@@ -21,6 +21,8 @@
 
 #include "pixels.h"
 
+#include "bit_depth_template.c"
+
 #define DEF_HPEL(OPNAME, OP)                                            \
 static inline void FUNC(OPNAME ## _pixels8_l2)(uint8_t *dst,            \
                                                const uint8_t *src1,     \

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list