43 const int block_w,
const int block_h);
56 const int16_t *
src0,
const int16_t *
src1,
58 uintptr_t w0_w1, uintptr_t offset_shift);
60 const int16_t *
src0,
const int16_t *
src1,
62 uintptr_t w0_w1, uintptr_t offset_shift);
64 const int16_t *
src0,
const int16_t *
src1,
66 uintptr_t w0_w1, uintptr_t offset_shift);
72 #define W_AVG_FUN(bit_depth) \
73 static void vvc_w_avg_ ## bit_depth(uint8_t *dst, ptrdiff_t dst_stride, \
74 const int16_t *src0, const int16_t *src1, int width, int height, \
75 int denom, int w0, int w1, int o0, int o1) \
77 int shift = denom + FFMAX(3, 15 - bit_depth); \
78 int offset = ((o0 + o1) * (1 << (bit_depth - 8)) + 1) * (1 << (shift - 1)); \
79 uintptr_t w0_w1 = ((uintptr_t)w0 << 32) | (uint32_t)w1; \
80 uintptr_t offset_shift = ((uintptr_t)offset << 32) | (uint32_t)shift; \
81 ff_vvc_w_avg_ ## bit_depth ## _neon(dst, dst_stride, src0, src1, width, height, w0_w1, offset_shift); \
88 #define DMVR_FUN(fn, bd) \
89 void ff_vvc_dmvr_ ## fn ## bd ## _neon(int16_t *dst, \
90 const uint8_t *_src, ptrdiff_t _src_stride, int height, \
91 intptr_t mx, intptr_t my, int width);
106 c->inter.put[0][1][0][0] = ff_vvc_put_pel_pixels4_8_neon;
107 c->inter.put[0][2][0][0] = ff_vvc_put_pel_pixels8_8_neon;
108 c->inter.put[0][3][0][0] = ff_vvc_put_pel_pixels16_8_neon;
109 c->inter.put[0][4][0][0] = ff_vvc_put_pel_pixels32_8_neon;
110 c->inter.put[0][5][0][0] = ff_vvc_put_pel_pixels64_8_neon;
111 c->inter.put[0][6][0][0] = ff_vvc_put_pel_pixels128_8_neon;
113 c->inter.put[0][1][0][1] = ff_vvc_put_qpel_h4_8_neon;
114 c->inter.put[0][2][0][1] = ff_vvc_put_qpel_h8_8_neon;
115 c->inter.put[0][3][0][1] = ff_vvc_put_qpel_h16_8_neon;
116 c->inter.put[0][4][0][1] =
117 c->inter.put[0][5][0][1] =
118 c->inter.put[0][6][0][1] = ff_vvc_put_qpel_h32_8_neon;
121 c->inter.put[0][2][1][0] =
122 c->inter.put[0][3][1][0] =
123 c->inter.put[0][4][1][0] =
124 c->inter.put[0][5][1][0] =
127 c->inter.put[0][1][1][1] = ff_vvc_put_qpel_hv4_8_neon;
128 c->inter.put[0][2][1][1] = ff_vvc_put_qpel_hv8_8_neon;
129 c->inter.put[0][3][1][1] = ff_vvc_put_qpel_hv16_8_neon;
130 c->inter.put[0][4][1][1] = ff_vvc_put_qpel_hv32_8_neon;
131 c->inter.put[0][5][1][1] = ff_vvc_put_qpel_hv64_8_neon;
132 c->inter.put[0][6][1][1] = ff_vvc_put_qpel_hv128_8_neon;
134 c->inter.put[1][1][0][1] = ff_vvc_put_epel_h4_8_neon;
135 c->inter.put[1][2][0][1] = ff_vvc_put_epel_h8_8_neon;
136 c->inter.put[1][3][0][1] = ff_vvc_put_epel_h16_8_neon;
137 c->inter.put[1][4][0][1] =
138 c->inter.put[1][5][0][1] =
139 c->inter.put[1][6][0][1] = ff_vvc_put_epel_h32_8_neon;
141 c->inter.put[1][1][1][1] = ff_vvc_put_epel_hv4_8_neon;
142 c->inter.put[1][2][1][1] = ff_vvc_put_epel_hv8_8_neon;
143 c->inter.put[1][3][1][1] = ff_vvc_put_epel_hv16_8_neon;
144 c->inter.put[1][4][1][1] = ff_vvc_put_epel_hv32_8_neon;
145 c->inter.put[1][5][1][1] = ff_vvc_put_epel_hv64_8_neon;
146 c->inter.put[1][6][1][1] = ff_vvc_put_epel_hv128_8_neon;
148 c->inter.put_uni[0][1][0][0] = ff_vvc_put_pel_uni_pixels4_8_neon;
149 c->inter.put_uni[0][2][0][0] = ff_vvc_put_pel_uni_pixels8_8_neon;
150 c->inter.put_uni[0][3][0][0] = ff_vvc_put_pel_uni_pixels16_8_neon;
151 c->inter.put_uni[0][4][0][0] = ff_vvc_put_pel_uni_pixels32_8_neon;
152 c->inter.put_uni[0][5][0][0] = ff_vvc_put_pel_uni_pixels64_8_neon;
153 c->inter.put_uni[0][6][0][0] = ff_vvc_put_pel_uni_pixels128_8_neon;
155 c->inter.put_uni[0][1][0][1] = ff_vvc_put_qpel_uni_h4_8_neon;
156 c->inter.put_uni[0][2][0][1] = ff_vvc_put_qpel_uni_h8_8_neon;
157 c->inter.put_uni[0][3][0][1] = ff_vvc_put_qpel_uni_h16_8_neon;
158 c->inter.put_uni[0][4][0][1] =
159 c->inter.put_uni[0][5][0][1] =
160 c->inter.put_uni[0][6][0][1] = ff_vvc_put_qpel_uni_h32_8_neon;
162 c->inter.put_uni_w[0][1][0][0] = ff_vvc_put_pel_uni_w_pixels4_8_neon;
163 c->inter.put_uni_w[0][2][0][0] = ff_vvc_put_pel_uni_w_pixels8_8_neon;
164 c->inter.put_uni_w[0][3][0][0] = ff_vvc_put_pel_uni_w_pixels16_8_neon;
165 c->inter.put_uni_w[0][4][0][0] = ff_vvc_put_pel_uni_w_pixels32_8_neon;
166 c->inter.put_uni_w[0][5][0][0] = ff_vvc_put_pel_uni_w_pixels64_8_neon;
167 c->inter.put_uni_w[0][6][0][0] = ff_vvc_put_pel_uni_w_pixels128_8_neon;
170 c->inter.w_avg = vvc_w_avg_8;
171 c->inter.dmvr[0][0] = ff_vvc_dmvr_8_neon;
172 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_8_neon;
179 c->alf.filter[
LUMA] = alf_filter_luma_8_neon;
180 c->alf.filter[
CHROMA] = alf_filter_chroma_8_neon;
183 c->inter.put[0][1][0][1] = ff_vvc_put_qpel_h4_8_neon_i8mm;
184 c->inter.put[0][2][0][1] = ff_vvc_put_qpel_h8_8_neon_i8mm;
185 c->inter.put[0][3][0][1] = ff_vvc_put_qpel_h16_8_neon_i8mm;
186 c->inter.put[0][4][0][1] = ff_vvc_put_qpel_h32_8_neon_i8mm;
187 c->inter.put[0][5][0][1] = ff_vvc_put_qpel_h64_8_neon_i8mm;
188 c->inter.put[0][6][0][1] = ff_vvc_put_qpel_h128_8_neon_i8mm;
190 c->inter.put[0][1][1][1] = ff_vvc_put_qpel_hv4_8_neon_i8mm;
191 c->inter.put[0][2][1][1] = ff_vvc_put_qpel_hv8_8_neon_i8mm;
192 c->inter.put[0][3][1][1] = ff_vvc_put_qpel_hv16_8_neon_i8mm;
193 c->inter.put[0][4][1][1] = ff_vvc_put_qpel_hv32_8_neon_i8mm;
194 c->inter.put[0][5][1][1] = ff_vvc_put_qpel_hv64_8_neon_i8mm;
195 c->inter.put[0][6][1][1] = ff_vvc_put_qpel_hv128_8_neon_i8mm;
197 c->inter.put[1][1][0][1] = ff_vvc_put_epel_h4_8_neon_i8mm;
198 c->inter.put[1][2][0][1] = ff_vvc_put_epel_h8_8_neon_i8mm;
199 c->inter.put[1][3][0][1] = ff_vvc_put_epel_h16_8_neon_i8mm;
200 c->inter.put[1][4][0][1] = ff_vvc_put_epel_h32_8_neon_i8mm;
201 c->inter.put[1][5][0][1] = ff_vvc_put_epel_h64_8_neon_i8mm;
202 c->inter.put[1][6][0][1] = ff_vvc_put_epel_h128_8_neon_i8mm;
204 c->inter.put[1][1][1][1] = ff_vvc_put_epel_hv4_8_neon_i8mm;
205 c->inter.put[1][2][1][1] = ff_vvc_put_epel_hv8_8_neon_i8mm;
206 c->inter.put[1][3][1][1] = ff_vvc_put_epel_hv16_8_neon_i8mm;
207 c->inter.put[1][4][1][1] = ff_vvc_put_epel_hv32_8_neon_i8mm;
208 c->inter.put[1][5][1][1] = ff_vvc_put_epel_hv64_8_neon_i8mm;
209 c->inter.put[1][6][1][1] = ff_vvc_put_epel_hv128_8_neon_i8mm;
211 }
else if (bd == 10) {
213 c->inter.w_avg = vvc_w_avg_10;
214 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_10_neon;
216 c->alf.filter[
LUMA] = alf_filter_luma_10_neon;
217 c->alf.filter[
CHROMA] = alf_filter_chroma_10_neon;
218 }
else if (bd == 12) {
220 c->inter.w_avg = vvc_w_avg_12;
221 c->inter.dmvr[0][0] = ff_vvc_dmvr_12_neon;
222 c->inter.dmvr[1][1] = ff_vvc_dmvr_hv_12_neon;
224 c->alf.filter[
LUMA] = alf_filter_luma_12_neon;
225 c->alf.filter[
CHROMA] = alf_filter_chroma_12_neon;