181 const
int chroma_format_idc)
190 c->idct8_add = ff_h264_idct8_add_8_sse2;
191 c->idct8_dc_add = ff_h264_idct8_dc_add_8_sse2;
192 c->idct_add16 = ff_h264_idct_add16_8_sse2;
193 c->idct8_add4 = ff_h264_idct8_add4_8_sse2;
194 if (chroma_format_idc <= 1)
195 c->idct_add8 = ff_h264_idct_add8_8_sse2;
197 c->idct_add8 = ff_h264_idct_add8_422_8_sse2;
198 c->idct_add16intra = ff_h264_idct_add16intra_8_sse2;
201 c->weight_pixels_tab[0] = ff_h264_weight_16_sse2;
202 c->weight_pixels_tab[1] = ff_h264_weight_8_sse2;
203 c->weight_pixels_tab[2] = ff_h264_weight_4_sse2;
205 c->biweight_pixels_tab[0] = ff_h264_biweight_16_sse2;
206 c->biweight_pixels_tab[1] = ff_h264_biweight_8_sse2;
207 c->biweight_pixels_tab[2] = ff_h264_biweight_4_sse2;
209 c->v_loop_filter_luma = ff_deblock_v_luma_8_sse2;
210 c->h_loop_filter_luma = ff_deblock_h_luma_8_sse2;
211 c->v_loop_filter_luma_intra = ff_deblock_v_luma_intra_8_sse2;
212 c->h_loop_filter_luma_intra = ff_deblock_h_luma_intra_8_sse2;
215 c->h_loop_filter_luma_mbaff = ff_deblock_h_luma_mbaff_8_sse2;
218 c->v_loop_filter_chroma = ff_deblock_v_chroma_8_sse2;
219 c->v_loop_filter_chroma_intra = ff_deblock_v_chroma_intra_8_sse2;
220 if (chroma_format_idc <= 1) {
221 c->h_loop_filter_chroma = ff_deblock_h_chroma_8_sse2;
222 c->h_loop_filter_chroma_intra = ff_deblock_h_chroma_intra_8_sse2;
224 c->h_loop_filter_chroma = ff_deblock_h_chroma422_8_sse2;
225 c->h_loop_filter_chroma_intra = ff_deblock_h_chroma422_intra_8_sse2;
228 c->idct_add = ff_h264_idct_add_8_sse2;
229 c->idct_dc_add = ff_h264_idct_dc_add_8_sse2;
232 c->biweight_pixels_tab[0] = ff_h264_biweight_16_ssse3;
233 c->biweight_pixels_tab[1] = ff_h264_biweight_8_ssse3;
234 c->biweight_pixels_tab[2] = ff_h264_biweight_4_ssse3;
237 c->v_loop_filter_luma = ff_deblock_v_luma_8_avx;
238 c->h_loop_filter_luma = ff_deblock_h_luma_8_avx;
239 c->v_loop_filter_luma_intra = ff_deblock_v_luma_intra_8_avx;
240 c->h_loop_filter_luma_intra = ff_deblock_h_luma_intra_8_avx;
242 c->h_loop_filter_luma_mbaff = ff_deblock_h_luma_mbaff_8_avx;
245 c->v_loop_filter_chroma = ff_deblock_v_chroma_8_avx;
246 c->v_loop_filter_chroma_intra = ff_deblock_v_chroma_intra_8_avx;
247 if (chroma_format_idc <= 1) {
248 c->h_loop_filter_chroma = ff_deblock_h_chroma_8_avx;
249 c->h_loop_filter_chroma_intra = ff_deblock_h_chroma_intra_8_avx;
251 c->h_loop_filter_chroma = ff_deblock_h_chroma422_8_avx;
252 c->h_loop_filter_chroma_intra = ff_deblock_h_chroma422_intra_8_avx;
255 c->idct_add = ff_h264_idct_add_8_avx;
256 c->idct_dc_add = ff_h264_idct_dc_add_8_avx;
260 c->idct_dc_add = ff_h264_idct_dc_add_10_sse2;
261 c->idct_add = ff_h264_idct_add_10_sse2;
262 c->idct8_dc_add = ff_h264_idct8_dc_add_10_sse2;
264 c->idct_add16 = ff_h264_idct_add16_10_sse2;
265 if (chroma_format_idc <= 1) {
266 c->idct_add8 = ff_h264_idct_add8_10_sse2;
268 c->idct_add8 = ff_h264_idct_add8_422_10_sse2;
270 c->idct_add16intra = ff_h264_idct_add16intra_10_sse2;
271#if HAVE_ALIGNED_STACK
272 c->idct8_add = ff_h264_idct8_add_10_sse2;
273 c->idct8_add4 = ff_h264_idct8_add4_10_sse2;
276 c->weight_pixels_tab[0] = ff_h264_weight_16_10_sse2;
277 c->weight_pixels_tab[1] = ff_h264_weight_8_10_sse2;
278 c->weight_pixels_tab[2] = ff_h264_weight_4_10_sse2;
280 c->biweight_pixels_tab[0] = ff_h264_biweight_16_10_sse2;
281 c->biweight_pixels_tab[1] = ff_h264_biweight_8_10_sse2;
282 c->biweight_pixels_tab[2] = ff_h264_biweight_4_10_sse2;
284 c->v_loop_filter_chroma = ff_deblock_v_chroma_10_sse2;
285 c->v_loop_filter_chroma_intra = ff_deblock_v_chroma_intra_10_sse2;
286 if (chroma_format_idc <= 1) {
287 c->h_loop_filter_chroma = ff_deblock_h_chroma_10_sse2;
289 c->h_loop_filter_chroma = ff_deblock_h_chroma422_10_sse2;
291 c->v_loop_filter_luma = ff_deblock_v_luma_10_sse2;
292 c->h_loop_filter_luma = ff_deblock_h_luma_10_sse2;
293 c->v_loop_filter_luma_intra = ff_deblock_v_luma_intra_10_sse2;
294 c->h_loop_filter_luma_intra = ff_deblock_h_luma_intra_10_sse2;
297 c->weight_pixels_tab[0] = ff_h264_weight_16_10_sse4;
298 c->weight_pixels_tab[1] = ff_h264_weight_8_10_sse4;
299 c->weight_pixels_tab[2] = ff_h264_weight_4_10_sse4;
301 c->biweight_pixels_tab[0] = ff_h264_biweight_16_10_sse4;
302 c->biweight_pixels_tab[1] = ff_h264_biweight_8_10_sse4;
303 c->biweight_pixels_tab[2] = ff_h264_biweight_4_10_sse4;
307 c->idct_add = ff_h264_idct_add_10_avx;
308 c->idct8_dc_add = ff_h264_idct8_dc_add_10_avx;
310 c->idct_add16 = ff_h264_idct_add16_10_avx;
311 if (chroma_format_idc <= 1) {
312 c->idct_add8 = ff_h264_idct_add8_10_avx;
314 c->idct_add8 = ff_h264_idct_add8_422_10_avx;
316 c->idct_add16intra = ff_h264_idct_add16intra_10_avx;
317#if HAVE_ALIGNED_STACK
318 c->idct8_add = ff_h264_idct8_add_10_avx;
319 c->idct8_add4 = ff_h264_idct8_add4_10_avx;
322 c->v_loop_filter_chroma = ff_deblock_v_chroma_10_avx;
323 c->v_loop_filter_chroma_intra = ff_deblock_v_chroma_intra_10_avx;
324 if (chroma_format_idc <= 1) {
325 c->h_loop_filter_chroma = ff_deblock_h_chroma_10_avx;
327 c->h_loop_filter_chroma = ff_deblock_h_chroma422_10_avx;
329 c->v_loop_filter_luma = ff_deblock_v_luma_10_avx;
330 c->h_loop_filter_luma = ff_deblock_h_luma_10_avx;
331 c->v_loop_filter_luma_intra = ff_deblock_v_luma_intra_10_avx;
332 c->h_loop_filter_luma_intra = ff_deblock_h_luma_intra_10_avx;