From: Michael Niedermayer <[email protected]>

---
 libavcodec/hpeldsp.c                          |    1 +
 libavcodec/hpeldsp.h                          |    1 +
 libavcodec/sh4/Makefile                       |    2 +
 libavcodec/sh4/dsputil_align.c                |   94 ++---------
 libavcodec/sh4/dsputil_sh4.h                  |    6 +
 libavcodec/sh4/{dsputil_align.c => hpeldsp.c} |  225 ++++++++++---------------
 6 files changed, 113 insertions(+), 216 deletions(-)
 copy libavcodec/sh4/{dsputil_align.c => hpeldsp.c} (59%)

diff --git a/libavcodec/hpeldsp.c b/libavcodec/hpeldsp.c
index a3826c7..ea626a0 100644
--- a/libavcodec/hpeldsp.c
+++ b/libavcodec/hpeldsp.c
@@ -57,5 +57,6 @@ av_cold void ff_hpeldsp_init(HpelDSPContext *c, int flags)
     if (ARCH_ARM)        ff_hpeldsp_init_arm   (c, flags);
     if (ARCH_BFIN)       ff_hpeldsp_init_bfin  (c, flags);
     if (ARCH_PPC)        ff_hpeldsp_init_ppc   (c, flags);
+    if (ARCH_SH4)        ff_hpeldsp_init_sh4   (c, flags);
     if (ARCH_X86)        ff_hpeldsp_init_x86   (c, flags);
 }
diff --git a/libavcodec/hpeldsp.h b/libavcodec/hpeldsp.h
index f875554..e298824 100644
--- a/libavcodec/hpeldsp.h
+++ b/libavcodec/hpeldsp.h
@@ -97,6 +97,7 @@ void ff_hpeldsp_init(HpelDSPContext *c, int flags);
 void ff_hpeldsp_init_arm(HpelDSPContext* c, int flags);
 void ff_hpeldsp_init_bfin(HpelDSPContext* c, int flags);
 void ff_hpeldsp_init_ppc(HpelDSPContext* c, int flags);
+void ff_hpeldsp_init_sh4(HpelDSPContext* c, int flags);
 void ff_hpeldsp_init_x86(HpelDSPContext* c, int flags);
 
 #endif /* AVCODEC_HPELDSP_H */
diff --git a/libavcodec/sh4/Makefile b/libavcodec/sh4/Makefile
index f907408..a24b298 100644
--- a/libavcodec/sh4/Makefile
+++ b/libavcodec/sh4/Makefile
@@ -3,3 +3,5 @@ OBJS += sh4/dsputil_align.o                                     
        \
         sh4/idct_sh4.o                                                  \
 
 OBJS-$(CONFIG_H264CHROMA)               += sh4/h264chroma_init.o        \
+
+OBJS-$(CONFIG_HPELDSP)                  += sh4/hpeldsp.o
diff --git a/libavcodec/sh4/dsputil_align.c b/libavcodec/sh4/dsputil_align.c
index 5c3e65b..56adbe3 100644
--- a/libavcodec/sh4/dsputil_align.c
+++ b/libavcodec/sh4/dsputil_align.c
@@ -245,55 +245,15 @@ static void op##_##rnd##_pixels##sz##_##xy (uint8_t * 
dest, const uint8_t * ref,
         } \
 }
 
-#define OP put
-
-DEFFUNC(put,   rnd,o,8,OP_C,avg32)
-DEFFUNC(put,   rnd,x,8,OP_X,avg32)
-DEFFUNC(put,no_rnd,x,8,OP_X,avg32)
-DEFFUNC(put,   rnd,y,8,OP_Y,avg32)
-DEFFUNC(put,no_rnd,y,8,OP_Y,avg32)
-DEFFUNC(put,   rnd,xy,8,OP_XY,PACK)
-DEFFUNC(put,no_rnd,xy,8,OP_XY,PACK)
-DEFFUNC(put,   rnd,o,16,OP_C,avg32)
-DEFFUNC(put,   rnd,x,16,OP_X,avg32)
-DEFFUNC(put,no_rnd,x,16,OP_X,avg32)
-DEFFUNC(put,   rnd,y,16,OP_Y,avg32)
-DEFFUNC(put,no_rnd,y,16,OP_Y,avg32)
-DEFFUNC(put,   rnd,xy,16,OP_XY,PACK)
-DEFFUNC(put,no_rnd,xy,16,OP_XY,PACK)
-
-#undef OP
-#define OP avg
-
-DEFFUNC(avg,   rnd,o,8,OP_C,avg32)
-DEFFUNC(avg,   rnd,x,8,OP_X,avg32)
-DEFFUNC(avg,   rnd,y,8,OP_Y,avg32)
-DEFFUNC(avg,   rnd,xy,8,OP_XY,PACK)
-DEFFUNC(avg,   rnd,o,16,OP_C,avg32)
-DEFFUNC(avg,   rnd,x,16,OP_X,avg32)
-DEFFUNC(avg,no_rnd,x,16,OP_X,avg32)
-DEFFUNC(avg,   rnd,y,16,OP_Y,avg32)
-DEFFUNC(avg,no_rnd,y,16,OP_Y,avg32)
-DEFFUNC(avg,   rnd,xy,16,OP_XY,PACK)
-DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
-
-#undef OP
-
-#define         put_no_rnd_pixels8_o     put_rnd_pixels8_o
-#define         put_no_rnd_pixels16_o    put_rnd_pixels16_o
-#define         avg_no_rnd_pixels16_o    avg_rnd_pixels16_o
-
-#define         put_pixels8_c            put_rnd_pixels8_o
-#define         put_pixels16_c           put_rnd_pixels16_o
-#define         avg_pixels8_c            avg_rnd_pixels8_o
-#define         avg_pixels16_c           avg_rnd_pixels16_o
-#define         put_no_rnd_pixels8_c     put_rnd_pixels8_o
-#define         put_no_rnd_pixels16_c    put_rnd_pixels16_o
-#define         avg_no_rnd_pixels16_c    avg_rnd_pixels16_o
-
-#define         QPEL
-
-#ifdef QPEL
+#define         put_pixels8_c            ff_put_rnd_pixels8_o
+#define         put_pixels16_c           ff_put_rnd_pixels16_o
+#define         avg_pixels8_c            ff_avg_rnd_pixels8_o
+#define         avg_pixels16_c           ff_avg_rnd_pixels16_o
+#define         put_no_rnd_pixels8_c     ff_put_rnd_pixels8_o
+#define         put_no_rnd_pixels16_c    ff_put_rnd_pixels16_o
+#define         avg_no_rnd_pixels16_c    ff_avg_rnd_pixels16_o
+
+#if CONFIG_H264QPEL
 
 #include "qpel.c"
 
@@ -303,41 +263,7 @@ av_cold void ff_dsputil_init_align(DSPContext *c, 
AVCodecContext *avctx)
 {
         const int high_bit_depth = avctx->bits_per_raw_sample > 8;
 
-        if (!high_bit_depth) {
-        c->put_pixels_tab[0][0] = put_rnd_pixels16_o;
-        c->put_pixels_tab[0][1] = put_rnd_pixels16_x;
-        c->put_pixels_tab[0][2] = put_rnd_pixels16_y;
-        c->put_pixels_tab[0][3] = put_rnd_pixels16_xy;
-        c->put_pixels_tab[1][0] = put_rnd_pixels8_o;
-        c->put_pixels_tab[1][1] = put_rnd_pixels8_x;
-        c->put_pixels_tab[1][2] = put_rnd_pixels8_y;
-        c->put_pixels_tab[1][3] = put_rnd_pixels8_xy;
-
-        c->put_no_rnd_pixels_tab[0][0] = put_no_rnd_pixels16_o;
-        c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x;
-        c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y;
-        c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy;
-        c->put_no_rnd_pixels_tab[1][0] = put_no_rnd_pixels8_o;
-        c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x;
-        c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y;
-        c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy;
-
-        c->avg_pixels_tab[0][0] = avg_rnd_pixels16_o;
-        c->avg_pixels_tab[0][1] = avg_rnd_pixels16_x;
-        c->avg_pixels_tab[0][2] = avg_rnd_pixels16_y;
-        c->avg_pixels_tab[0][3] = avg_rnd_pixels16_xy;
-        c->avg_pixels_tab[1][0] = avg_rnd_pixels8_o;
-        c->avg_pixels_tab[1][1] = avg_rnd_pixels8_x;
-        c->avg_pixels_tab[1][2] = avg_rnd_pixels8_y;
-        c->avg_pixels_tab[1][3] = avg_rnd_pixels8_xy;
-
-        c->avg_no_rnd_pixels_tab[0] = avg_no_rnd_pixels16_o;
-        c->avg_no_rnd_pixels_tab[1] = avg_no_rnd_pixels16_x;
-        c->avg_no_rnd_pixels_tab[2] = avg_no_rnd_pixels16_y;
-        c->avg_no_rnd_pixels_tab[3] = avg_no_rnd_pixels16_xy;
-        }
-
-#ifdef QPEL
+#if CONFIG_H264QPEL
 
 #define dspfunc(PFX, IDX, NUM) \
     c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_sh4; \
diff --git a/libavcodec/sh4/dsputil_sh4.h b/libavcodec/sh4/dsputil_sh4.h
index f7dc30b..9a137ed 100644
--- a/libavcodec/sh4/dsputil_sh4.h
+++ b/libavcodec/sh4/dsputil_sh4.h
@@ -21,8 +21,14 @@
 
 #include "libavcodec/avcodec.h"
 #include "libavcodec/dsputil.h"
+#include "libavcodec/hpeldsp.h"
 
 void ff_idct_sh4(int16_t *block);
 void ff_dsputil_init_align(DSPContext* c, AVCodecContext *avctx);
 
+void ff_put_rnd_pixels8_o (uint8_t * dest, const uint8_t * ref, const int 
stride, int height);
+void ff_put_rnd_pixels16_o(uint8_t * dest, const uint8_t * ref, const int 
stride, int height);
+void ff_avg_rnd_pixels8_o (uint8_t * dest, const uint8_t * ref, const int 
stride, int height);
+void ff_avg_rnd_pixels16_o(uint8_t * dest, const uint8_t * ref, const int 
stride, int height);
+
 #endif /* AVCODEC_SH4_DSPUTIL_SH4_H */
diff --git a/libavcodec/sh4/dsputil_align.c b/libavcodec/sh4/hpeldsp.c
similarity index 59%
copy from libavcodec/sh4/dsputil_align.c
copy to libavcodec/sh4/hpeldsp.c
index 5c3e65b..8225523 100644
--- a/libavcodec/sh4/dsputil_align.c
+++ b/libavcodec/sh4/hpeldsp.c
@@ -20,10 +20,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "libavutil/attributes.h"
+
 #include "libavcodec/avcodec.h"
 #include "libavcodec/dsputil.h"
-#include "libavcodec/rnd_avg.h"
+#include "libavcodec/bit_depth_template.c" // for BYTE_VEC32
 #include "dsputil_sh4.h"
 
 
@@ -66,6 +66,34 @@
                 dest+=stride; \
         } while(--height)
 
+
+#define         OP      put
+
+static void put_pixels4_c(uint8_t *dest,const uint8_t *ref, const int 
stride,int height)
+{
+        switch((int)ref&3){
+        case 0: OP_C40(); return;
+        case 1: OP_C4(1); return;
+        case 2: OP_C4(2); return;
+        case 3: OP_C4(3); return;
+        }
+}
+
+#undef          OP
+#define         OP      avg
+
+static void avg_pixels4_c(uint8_t *dest,const uint8_t *ref, const int 
stride,int height)
+{
+        switch((int)ref&3){
+        case 0: OP_C40(); return;
+        case 1: OP_C4(1); return;
+        case 2: OP_C4(2); return;
+        case 3: OP_C4(3); return;
+        }
+}
+
+#undef          OP
+
 #define         OP_C(ofs,sz,avg2) \
 { \
         ref-=ofs; \
@@ -233,9 +261,9 @@ if (sz==16) { \
         } while(--height); \
 }
 
-#define         DEFFUNC(op,rnd,xy,sz,OP_N,avgfunc) \
-static void op##_##rnd##_pixels##sz##_##xy (uint8_t * dest, const uint8_t * 
ref, \
-                                const ptrdiff_t stride, int height) \
+#define         DEFFUNC(prefix, op,rnd,xy,sz,OP_N,avgfunc) \
+prefix void op##_##rnd##_pixels##sz##_##xy (uint8_t * dest, const uint8_t * 
ref, \
+                                const int stride, int height) \
 { \
         switch((int)ref&3) { \
         case 0:OP_N##0(sz,rnd##_##avgfunc); return; \
@@ -247,140 +275,73 @@ static void op##_##rnd##_pixels##sz##_##xy (uint8_t * 
dest, const uint8_t * ref,
 
 #define OP put
 
-DEFFUNC(put,   rnd,o,8,OP_C,avg32)
-DEFFUNC(put,   rnd,x,8,OP_X,avg32)
-DEFFUNC(put,no_rnd,x,8,OP_X,avg32)
-DEFFUNC(put,   rnd,y,8,OP_Y,avg32)
-DEFFUNC(put,no_rnd,y,8,OP_Y,avg32)
-DEFFUNC(put,   rnd,xy,8,OP_XY,PACK)
-DEFFUNC(put,no_rnd,xy,8,OP_XY,PACK)
-DEFFUNC(put,   rnd,o,16,OP_C,avg32)
-DEFFUNC(put,   rnd,x,16,OP_X,avg32)
-DEFFUNC(put,no_rnd,x,16,OP_X,avg32)
-DEFFUNC(put,   rnd,y,16,OP_Y,avg32)
-DEFFUNC(put,no_rnd,y,16,OP_Y,avg32)
-DEFFUNC(put,   rnd,xy,16,OP_XY,PACK)
-DEFFUNC(put,no_rnd,xy,16,OP_XY,PACK)
+DEFFUNC(      ,ff_put,rnd,o,8,OP_C,avg32)
+DEFFUNC(static,put,   rnd,x,8,OP_X,avg32)
+DEFFUNC(static,put,no_rnd,x,8,OP_X,avg32)
+DEFFUNC(static,put,   rnd,y,8,OP_Y,avg32)
+DEFFUNC(static,put,no_rnd,y,8,OP_Y,avg32)
+DEFFUNC(static,put,   rnd,xy,8,OP_XY,PACK)
+DEFFUNC(static,put,no_rnd,xy,8,OP_XY,PACK)
+DEFFUNC(      ,ff_put,rnd,o,16,OP_C,avg32)
+DEFFUNC(static,put,   rnd,x,16,OP_X,avg32)
+DEFFUNC(static,put,no_rnd,x,16,OP_X,avg32)
+DEFFUNC(static,put,   rnd,y,16,OP_Y,avg32)
+DEFFUNC(static,put,no_rnd,y,16,OP_Y,avg32)
+DEFFUNC(static,put,   rnd,xy,16,OP_XY,PACK)
+DEFFUNC(static,put,no_rnd,xy,16,OP_XY,PACK)
 
 #undef OP
 #define OP avg
 
-DEFFUNC(avg,   rnd,o,8,OP_C,avg32)
-DEFFUNC(avg,   rnd,x,8,OP_X,avg32)
-DEFFUNC(avg,   rnd,y,8,OP_Y,avg32)
-DEFFUNC(avg,   rnd,xy,8,OP_XY,PACK)
-DEFFUNC(avg,   rnd,o,16,OP_C,avg32)
-DEFFUNC(avg,   rnd,x,16,OP_X,avg32)
-DEFFUNC(avg,no_rnd,x,16,OP_X,avg32)
-DEFFUNC(avg,   rnd,y,16,OP_Y,avg32)
-DEFFUNC(avg,no_rnd,y,16,OP_Y,avg32)
-DEFFUNC(avg,   rnd,xy,16,OP_XY,PACK)
-DEFFUNC(avg,no_rnd,xy,16,OP_XY,PACK)
+DEFFUNC(      ,ff_avg,rnd,o,8,OP_C,avg32)
+DEFFUNC(static,avg,   rnd,x,8,OP_X,avg32)
+DEFFUNC(static,avg,   rnd,y,8,OP_Y,avg32)
+DEFFUNC(static,avg,   rnd,xy,8,OP_XY,PACK)
+DEFFUNC(      ,ff_avg,rnd,o,16,OP_C,avg32)
+DEFFUNC(static,avg,   rnd,x,16,OP_X,avg32)
+DEFFUNC(static,avg,no_rnd,x,16,OP_X,avg32)
+DEFFUNC(static,avg,   rnd,y,16,OP_Y,avg32)
+DEFFUNC(static,avg,no_rnd,y,16,OP_Y,avg32)
+DEFFUNC(static,avg,   rnd,xy,16,OP_XY,PACK)
+DEFFUNC(static,avg,no_rnd,xy,16,OP_XY,PACK)
 
 #undef OP
 
-#define         put_no_rnd_pixels8_o     put_rnd_pixels8_o
-#define         put_no_rnd_pixels16_o    put_rnd_pixels16_o
-#define         avg_no_rnd_pixels16_o    avg_rnd_pixels16_o
-
-#define         put_pixels8_c            put_rnd_pixels8_o
-#define         put_pixels16_c           put_rnd_pixels16_o
-#define         avg_pixels8_c            avg_rnd_pixels8_o
-#define         avg_pixels16_c           avg_rnd_pixels16_o
-#define         put_no_rnd_pixels8_c     put_rnd_pixels8_o
-#define         put_no_rnd_pixels16_c    put_rnd_pixels16_o
-#define         avg_no_rnd_pixels16_c    avg_rnd_pixels16_o
-
-#define         QPEL
+#define         ff_put_no_rnd_pixels8_o     ff_put_rnd_pixels8_o
+#define         ff_put_no_rnd_pixels16_o    ff_put_rnd_pixels16_o
+#define         ff_avg_no_rnd_pixels16_o    ff_avg_rnd_pixels16_o
 
-#ifdef QPEL
-
-#include "qpel.c"
-
-#endif
-
-av_cold void ff_dsputil_init_align(DSPContext *c, AVCodecContext *avctx)
+void ff_hpeldsp_init_sh4(HpelDSPContext* c, int flags)
 {
-        const int high_bit_depth = avctx->bits_per_raw_sample > 8;
-
-        if (!high_bit_depth) {
-        c->put_pixels_tab[0][0] = put_rnd_pixels16_o;
-        c->put_pixels_tab[0][1] = put_rnd_pixels16_x;
-        c->put_pixels_tab[0][2] = put_rnd_pixels16_y;
-        c->put_pixels_tab[0][3] = put_rnd_pixels16_xy;
-        c->put_pixels_tab[1][0] = put_rnd_pixels8_o;
-        c->put_pixels_tab[1][1] = put_rnd_pixels8_x;
-        c->put_pixels_tab[1][2] = put_rnd_pixels8_y;
-        c->put_pixels_tab[1][3] = put_rnd_pixels8_xy;
-
-        c->put_no_rnd_pixels_tab[0][0] = put_no_rnd_pixels16_o;
-        c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x;
-        c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y;
-        c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy;
-        c->put_no_rnd_pixels_tab[1][0] = put_no_rnd_pixels8_o;
-        c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x;
-        c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y;
-        c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy;
-
-        c->avg_pixels_tab[0][0] = avg_rnd_pixels16_o;
-        c->avg_pixels_tab[0][1] = avg_rnd_pixels16_x;
-        c->avg_pixels_tab[0][2] = avg_rnd_pixels16_y;
-        c->avg_pixels_tab[0][3] = avg_rnd_pixels16_xy;
-        c->avg_pixels_tab[1][0] = avg_rnd_pixels8_o;
-        c->avg_pixels_tab[1][1] = avg_rnd_pixels8_x;
-        c->avg_pixels_tab[1][2] = avg_rnd_pixels8_y;
-        c->avg_pixels_tab[1][3] = avg_rnd_pixels8_xy;
-
-        c->avg_no_rnd_pixels_tab[0] = avg_no_rnd_pixels16_o;
-        c->avg_no_rnd_pixels_tab[1] = avg_no_rnd_pixels16_x;
-        c->avg_no_rnd_pixels_tab[2] = avg_no_rnd_pixels16_y;
-        c->avg_no_rnd_pixels_tab[3] = avg_no_rnd_pixels16_xy;
-        }
-
-#ifdef QPEL
-
-#define dspfunc(PFX, IDX, NUM) \
-    c->PFX ## _pixels_tab[IDX][ 0] = PFX ## NUM ## _mc00_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 1] = PFX ## NUM ## _mc10_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 2] = PFX ## NUM ## _mc20_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 3] = PFX ## NUM ## _mc30_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 4] = PFX ## NUM ## _mc01_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 5] = PFX ## NUM ## _mc11_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 6] = PFX ## NUM ## _mc21_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 7] = PFX ## NUM ## _mc31_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 8] = PFX ## NUM ## _mc02_sh4; \
-    c->PFX ## _pixels_tab[IDX][ 9] = PFX ## NUM ## _mc12_sh4; \
-    c->PFX ## _pixels_tab[IDX][10] = PFX ## NUM ## _mc22_sh4; \
-    c->PFX ## _pixels_tab[IDX][11] = PFX ## NUM ## _mc32_sh4; \
-    c->PFX ## _pixels_tab[IDX][12] = PFX ## NUM ## _mc03_sh4; \
-    c->PFX ## _pixels_tab[IDX][13] = PFX ## NUM ## _mc13_sh4; \
-    c->PFX ## _pixels_tab[IDX][14] = PFX ## NUM ## _mc23_sh4; \
-    c->PFX ## _pixels_tab[IDX][15] = PFX ## NUM ## _mc33_sh4
-
-    dspfunc(put_qpel, 0, 16);
-    dspfunc(put_no_rnd_qpel, 0, 16);
-
-    dspfunc(avg_qpel, 0, 16);
-    /* dspfunc(avg_no_rnd_qpel, 0, 16); */
-
-    dspfunc(put_qpel, 1, 8);
-    dspfunc(put_no_rnd_qpel, 1, 8);
-
-    dspfunc(avg_qpel, 1, 8);
-    /* dspfunc(avg_no_rnd_qpel, 1, 8); */
-
-#undef dspfunc
-
-    c->put_mspel_pixels_tab[0]= put_mspel8_mc00_sh4;
-    c->put_mspel_pixels_tab[1]= put_mspel8_mc10_sh4;
-    c->put_mspel_pixels_tab[2]= put_mspel8_mc20_sh4;
-    c->put_mspel_pixels_tab[3]= put_mspel8_mc30_sh4;
-    c->put_mspel_pixels_tab[4]= put_mspel8_mc02_sh4;
-    c->put_mspel_pixels_tab[5]= put_mspel8_mc12_sh4;
-    c->put_mspel_pixels_tab[6]= put_mspel8_mc22_sh4;
-    c->put_mspel_pixels_tab[7]= put_mspel8_mc32_sh4;
-
-    c->gmc1 = gmc1_c;
-
-#endif
+    c->put_pixels_tab[0][0] = ff_put_rnd_pixels16_o;
+    c->put_pixels_tab[0][1] = put_rnd_pixels16_x;
+    c->put_pixels_tab[0][2] = put_rnd_pixels16_y;
+    c->put_pixels_tab[0][3] = put_rnd_pixels16_xy;
+    c->put_pixels_tab[1][0] = ff_put_rnd_pixels8_o;
+    c->put_pixels_tab[1][1] = put_rnd_pixels8_x;
+    c->put_pixels_tab[1][2] = put_rnd_pixels8_y;
+    c->put_pixels_tab[1][3] = put_rnd_pixels8_xy;
+
+    c->put_no_rnd_pixels_tab[0][0] = ff_put_no_rnd_pixels16_o;
+    c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x;
+    c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y;
+    c->put_no_rnd_pixels_tab[0][3] = put_no_rnd_pixels16_xy;
+    c->put_no_rnd_pixels_tab[1][0] = ff_put_no_rnd_pixels8_o;
+    c->put_no_rnd_pixels_tab[1][1] = put_no_rnd_pixels8_x;
+    c->put_no_rnd_pixels_tab[1][2] = put_no_rnd_pixels8_y;
+    c->put_no_rnd_pixels_tab[1][3] = put_no_rnd_pixels8_xy;
+
+    c->avg_pixels_tab[0][0] = ff_avg_rnd_pixels16_o;
+    c->avg_pixels_tab[0][1] = avg_rnd_pixels16_x;
+    c->avg_pixels_tab[0][2] = avg_rnd_pixels16_y;
+    c->avg_pixels_tab[0][3] = avg_rnd_pixels16_xy;
+    c->avg_pixels_tab[1][0] = ff_avg_rnd_pixels8_o;
+    c->avg_pixels_tab[1][1] = avg_rnd_pixels8_x;
+    c->avg_pixels_tab[1][2] = avg_rnd_pixels8_y;
+    c->avg_pixels_tab[1][3] = avg_rnd_pixels8_xy;
+
+    c->avg_no_rnd_pixels_tab[0] = ff_avg_no_rnd_pixels16_o;
+    c->avg_no_rnd_pixels_tab[1] = avg_no_rnd_pixels16_x;
+    c->avg_no_rnd_pixels_tab[2] = avg_no_rnd_pixels16_y;
+    c->avg_no_rnd_pixels_tab[3] = avg_no_rnd_pixels16_xy;
 }
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to