22 #include "libavutil/attributes.h"
40 #define FUNCC(f, depth) f ## _ ## depth ## _c
42 #define dspfunc2(PFX, IDX, NUM, depth) \
43 c->PFX ## _pixels_tab[IDX][ 0] = FUNCC(PFX ## NUM ## _mc00, depth); \
44 c->PFX ## _pixels_tab[IDX][ 1] = FUNCC(PFX ## NUM ## _mc10, depth); \
45 c->PFX ## _pixels_tab[IDX][ 2] = FUNCC(PFX ## NUM ## _mc20, depth); \
46 c->PFX ## _pixels_tab[IDX][ 3] = FUNCC(PFX ## NUM ## _mc30, depth); \
47 c->PFX ## _pixels_tab[IDX][ 4] = FUNCC(PFX ## NUM ## _mc01, depth); \
48 c->PFX ## _pixels_tab[IDX][ 5] = FUNCC(PFX ## NUM ## _mc11, depth); \
49 c->PFX ## _pixels_tab[IDX][ 6] = FUNCC(PFX ## NUM ## _mc21, depth); \
50 c->PFX ## _pixels_tab[IDX][ 7] = FUNCC(PFX ## NUM ## _mc31, depth); \
51 c->PFX ## _pixels_tab[IDX][ 8] = FUNCC(PFX ## NUM ## _mc02, depth); \
52 c->PFX ## _pixels_tab[IDX][ 9] = FUNCC(PFX ## NUM ## _mc12, depth); \
53 c->PFX ## _pixels_tab[IDX][10] = FUNCC(PFX ## NUM ## _mc22, depth); \
54 c->PFX ## _pixels_tab[IDX][11] = FUNCC(PFX ## NUM ## _mc32, depth); \
55 c->PFX ## _pixels_tab[IDX][12] = FUNCC(PFX ## NUM ## _mc03, depth); \
56 c->PFX ## _pixels_tab[IDX][13] = FUNCC(PFX ## NUM ## _mc13, depth); \
57 c->PFX ## _pixels_tab[IDX][14] = FUNCC(PFX ## NUM ## _mc23, depth); \
58 c->PFX ## _pixels_tab[IDX][15] = FUNCC(PFX ## NUM ## _mc33, depth)
60 #define SET_QPEL(depth) \
61 dspfunc2(put_h264_qpel, 0, 16, depth); \
62 dspfunc2(put_h264_qpel, 1, 8, depth); \
63 dspfunc2(put_h264_qpel, 2, 4, depth); \
64 dspfunc2(put_h264_qpel, 3, 2, depth); \
65 dspfunc2(avg_h264_qpel, 0, 16, depth); \
66 dspfunc2(avg_h264_qpel, 1, 8, depth); \
67 dspfunc2(avg_h264_qpel, 2, 4, depth)
av_cold void ff_h264qpel_init_aarch64(H264QpelContext *c, int bit_depth)
av_cold void ff_h264qpel_init(H264QpelContext *c, int bit_depth)
av_cold void ff_h264qpel_init_ppc(H264QpelContext *c, int bit_depth)
av_cold void ff_h264qpel_init_arm(H264QpelContext *c, int bit_depth)
void ff_h264qpel_init_x86(H264QpelContext *c, int bit_depth)