Go to the documentation of this file.
25 #define pixeltmp int16_t
39 #define pixeltmp int32_t
52 #define FUNCC(f, depth) f ## _ ## depth ## _c
54 #define dspfunc2(PFX, IDX, NUM, depth) \
55 c->PFX ## _pixels_tab[IDX][ 0] = FUNCC(PFX ## NUM ## _mc00, depth); \
56 c->PFX ## _pixels_tab[IDX][ 1] = FUNCC(PFX ## NUM ## _mc10, depth); \
57 c->PFX ## _pixels_tab[IDX][ 2] = FUNCC(PFX ## NUM ## _mc20, depth); \
58 c->PFX ## _pixels_tab[IDX][ 3] = FUNCC(PFX ## NUM ## _mc30, depth); \
59 c->PFX ## _pixels_tab[IDX][ 4] = FUNCC(PFX ## NUM ## _mc01, depth); \
60 c->PFX ## _pixels_tab[IDX][ 5] = FUNCC(PFX ## NUM ## _mc11, depth); \
61 c->PFX ## _pixels_tab[IDX][ 6] = FUNCC(PFX ## NUM ## _mc21, depth); \
62 c->PFX ## _pixels_tab[IDX][ 7] = FUNCC(PFX ## NUM ## _mc31, depth); \
63 c->PFX ## _pixels_tab[IDX][ 8] = FUNCC(PFX ## NUM ## _mc02, depth); \
64 c->PFX ## _pixels_tab[IDX][ 9] = FUNCC(PFX ## NUM ## _mc12, depth); \
65 c->PFX ## _pixels_tab[IDX][10] = FUNCC(PFX ## NUM ## _mc22, depth); \
66 c->PFX ## _pixels_tab[IDX][11] = FUNCC(PFX ## NUM ## _mc32, depth); \
67 c->PFX ## _pixels_tab[IDX][12] = FUNCC(PFX ## NUM ## _mc03, depth); \
68 c->PFX ## _pixels_tab[IDX][13] = FUNCC(PFX ## NUM ## _mc13, depth); \
69 c->PFX ## _pixels_tab[IDX][14] = FUNCC(PFX ## NUM ## _mc23, depth); \
70 c->PFX ## _pixels_tab[IDX][15] = FUNCC(PFX ## NUM ## _mc33, depth)
72 #define SET_QPEL(depth) \
73 dspfunc2(put_h264_qpel, 0, 16, depth); \
74 dspfunc2(put_h264_qpel, 1, 8, depth); \
75 dspfunc2(put_h264_qpel, 2, 4, depth); \
76 dspfunc2(put_h264_qpel, 3, 2, depth); \
77 dspfunc2(avg_h264_qpel, 0, 16, depth); \
78 dspfunc2(avg_h264_qpel, 1, 8, depth); \
79 dspfunc2(avg_h264_qpel, 2, 4, depth)
109 if (ARCH_LOONGARCH64)
static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth)
void ff_h264qpel_init_loongarch(H264QpelContext *c, int bit_depth)
av_cold void ff_h264qpel_init_arm(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)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
av_cold void ff_h264qpel_init_aarch64(H264QpelContext *c, int bit_depth)
void ff_h264qpel_init_x86(H264QpelContext *c, int bit_depth)
void ff_h264qpel_init_mips(H264QpelContext *c, int bit_depth)