FFmpeg
Loading...
Searching...
No Matches
vp9dsp_init.c
Go to the documentation of this file.
1/*
2 * VP9 SIMD optimizations
3 *
4 * Copyright (c) 2013 Ronald S. Bultje <rsbultje gmail com>
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
24#include "libavutil/cpu.h"
25#include "libavutil/x86/cpu.h"
26#include "libavcodec/vp9dsp.h"
28
29decl_fpel_func(put, 4, , mmx);
30decl_fpel_func(put, 8, , mmx);
31decl_fpel_func(put, 16, , sse);
32decl_fpel_func(put, 32, , sse);
33decl_fpel_func(put, 64, , sse);
34decl_fpel_func(avg, 4, _8, mmxext);
35decl_fpel_func(avg, 8, _8, mmxext);
36decl_fpel_func(avg, 16, _8, sse2);
37decl_fpel_func(avg, 32, _8, sse2);
38decl_fpel_func(avg, 64, _8, sse2);
39decl_fpel_func(put, 32, , avx);
40decl_fpel_func(put, 64, , avx);
41decl_fpel_func(avg, 32, _8, avx2);
42decl_fpel_func(avg, 64, _8, avx2);
43
44decl_mc_funcs(8, sse2, int16_t, 8, 8);
45decl_mc_funcs(4, ssse3, int8_t, 32, 8);
46decl_mc_funcs(8, ssse3, int8_t, 32, 8);
47#if ARCH_X86_64
48decl_mc_funcs(16, ssse3, int8_t, 32, 8);
49decl_mc_funcs(32, avx2, int8_t, 32, 8);
50decl_subpel_asm( 4, 8, avx512icl);
51decl_subpel_asm( 8, 8, avx512icl);
52decl_subpel_asm(16, 8, avx512icl);
53decl_subpel_asm(32, 8, avx512icl);
54decl_subpel_asm(64, 8, avx512icl);
55#endif
56
57mc_rep_funcs(16, 8, 8, sse2, int16_t, 8, 8)
58#if ARCH_X86_32
59mc_rep_funcs(16, 8, 8, ssse3, int8_t, 32, 8)
60#endif
61mc_rep_funcs(32, 16, 16, sse2, int16_t, 8, 8)
62mc_rep_funcs(32, 16, 16, ssse3, int8_t, 32, 8)
63mc_rep_funcs(64, 32, 32, sse2, int16_t, 8, 8)
64mc_rep_funcs(64, 32, 32, ssse3, int8_t, 32, 8)
65#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
66mc_rep_funcs(64, 32, 32, avx2, int8_t, 32, 8)
67#endif
68
69extern const int8_t ff_filters_ssse3[3][15][4][32];
70extern const int16_t ff_filters_sse2[3][15][8][8];
71
72filters_8tap_2d_fn2(put, 16, 8, 1, sse2, sse2)
73filters_8tap_2d_fn2(avg, 16, 8, 1, sse2, sse2)
74filters_8tap_2d_fn3(put, 16, 8, 1, ssse3, ssse3)
75filters_8tap_2d_fn3(avg, 16, 8, 1, ssse3, ssse3)
76
77#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
78filters_8tap_2d_fn(put, 64, 32, 8, 1, avx2, ssse3)
79filters_8tap_2d_fn(put, 32, 32, 8, 1, avx2, ssse3)
80filters_8tap_2d_fn(avg, 64, 32, 8, 1, avx2, ssse3)
81filters_8tap_2d_fn(avg, 32, 32, 8, 1, avx2, ssse3)
82#endif
83
84filters_8tap_1d_fn3(put, 8, sse2, sse2)
85filters_8tap_1d_fn3(avg, 8, sse2, sse2)
86filters_8tap_1d_fn4(put, 8, ssse3, ssse3)
87filters_8tap_1d_fn4(avg, 8, ssse3, ssse3)
88#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
89filters_8tap_1d_fn2(put, 64, 8, avx2, ssse3)
90filters_8tap_1d_fn2(put, 32, 8, avx2, ssse3)
91filters_8tap_1d_fn2(avg, 64, 8, avx2, ssse3)
92filters_8tap_1d_fn2(avg, 32, 8, avx2, ssse3)
93#endif
94
95#define itxfm_func(typea, typeb, size, opt) \
96void ff_vp9_##typea##_##typeb##_##size##x##size##_add_##opt(uint8_t *dst, ptrdiff_t stride, \
97 int16_t *block, int eob)
98#define itxfm_funcs(size, opt) \
99itxfm_func(idct, idct, size, opt); \
100itxfm_func(iadst, idct, size, opt); \
101itxfm_func(idct, iadst, size, opt); \
102itxfm_func(iadst, iadst, size, opt)
103
104itxfm_func(idct, iadst, 4, sse2);
105itxfm_func(iadst, idct, 4, sse2);
106itxfm_func(iadst, iadst, 4, sse2);
107itxfm_funcs(4, ssse3);
108itxfm_funcs(4, avx2);
109itxfm_funcs(8, sse2);
110itxfm_funcs(8, ssse3);
111itxfm_funcs(8, avx2);
112itxfm_funcs(16, sse2);
113itxfm_funcs(16, ssse3);
114itxfm_func(idct, idct, 32, sse2);
115itxfm_func(idct, idct, 32, ssse3);
116itxfm_func(iwht, iwht, 4, mmx);
117itxfm_func(iwht, iwht, 4, avx2);
118itxfm_funcs(16, avx2);
119itxfm_funcs(16, avx512icl);
120itxfm_func(idct, idct, 32, avx2);
121itxfm_func(idct, idct, 32, avx512icl);
122
123#undef itxfm_func
124#undef itxfm_funcs
125
126#define lpf_funcs(size1, size2, opt) \
127void ff_vp9_loop_filter_v_##size1##_##size2##_##opt(uint8_t *dst, ptrdiff_t stride, \
128 int E, int I, int H); \
129void ff_vp9_loop_filter_h_##size1##_##size2##_##opt(uint8_t *dst, ptrdiff_t stride, \
130 int E, int I, int H)
131
132lpf_funcs(4, 8, mmxext);
133lpf_funcs(8, 8, mmxext);
134lpf_funcs(16, 16, sse2);
135lpf_funcs(16, 16, ssse3);
136lpf_funcs(16, 16, avx);
137lpf_funcs(44, 16, sse2);
138lpf_funcs(44, 16, ssse3);
139lpf_funcs(44, 16, avx);
140lpf_funcs(84, 16, sse2);
141lpf_funcs(84, 16, ssse3);
142lpf_funcs(84, 16, avx);
143lpf_funcs(48, 16, sse2);
144lpf_funcs(48, 16, ssse3);
145lpf_funcs(48, 16, avx);
146lpf_funcs(88, 16, sse2);
147lpf_funcs(88, 16, ssse3);
148lpf_funcs(88, 16, avx);
149
150#undef lpf_funcs
151
152#define ipred_func(size, type, opt) \
153void ff_vp9_ipred_##type##_##size##x##size##_##opt(uint8_t *dst, ptrdiff_t stride, \
154 const uint8_t *l, const uint8_t *a)
155
156ipred_func(4, hd, mmxext);
157ipred_func(4, vl, mmxext);
158ipred_func(8, v, mmx);
159
160#define ipred_dc_funcs(size, opt) \
161ipred_func(size, dc, opt); \
162ipred_func(size, dc_left, opt); \
163ipred_func(size, dc_top, opt)
164
165#define ipred_dir_tm_funcs(size, opt) \
166ipred_func(size, tm, opt); \
167ipred_func(size, dl, opt); \
168ipred_func(size, dr, opt); \
169ipred_func(size, hd, opt); \
170ipred_func(size, hu, opt); \
171ipred_func(size, vl, opt); \
172ipred_func(size, vr, opt)
173
174ipred_func(16, v, sse);
175ipred_func(32, v, sse);
176
177ipred_dc_funcs(16, sse2);
178ipred_dc_funcs(32, sse2);
179
180#define ipred_dir_tm_h_funcs(size, opt) \
181ipred_dir_tm_funcs(size, opt); \
182ipred_func(size, h, opt)
183
184ipred_dir_tm_h_funcs(8, sse2);
185ipred_dir_tm_h_funcs(16, sse2);
186ipred_dir_tm_h_funcs(32, sse2);
187
188ipred_func(4, h, sse2);
189
190#define ipred_all_funcs(size, opt) \
191ipred_dc_funcs(size, opt); \
192ipred_dir_tm_h_funcs(size, opt)
193
194// FIXME hd/vl_4x4_ssse3 does not exist
195ipred_all_funcs(4, ssse3);
196ipred_all_funcs(8, ssse3);
197ipred_all_funcs(16, ssse3);
198ipred_all_funcs(32, ssse3);
199
201ipred_dir_tm_h_funcs(16, avx);
202ipred_dir_tm_h_funcs(32, avx);
203
204ipred_all_funcs(32, avx2);
205ipred_func(32, v, avx2);
206
207#undef ipred_func
208#undef ipred_dir_tm_h_funcs
209#undef ipred_dir_tm_funcs
210#undef ipred_dc_funcs
211
212av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp, int bitexact)
213{
214 int cpu_flags;
215
216 if (bpp == 10) {
217 ff_vp9dsp_init_10bpp_x86(dsp, bitexact);
218 return;
219 } else if (bpp == 12) {
220 ff_vp9dsp_init_12bpp_x86(dsp, bitexact);
221 return;
222 }
223
225
226#define init_lpf(opt) do { \
227 dsp->loop_filter_16[0] = ff_vp9_loop_filter_h_16_16_##opt; \
228 dsp->loop_filter_16[1] = ff_vp9_loop_filter_v_16_16_##opt; \
229 dsp->loop_filter_mix2[0][0][0] = ff_vp9_loop_filter_h_44_16_##opt; \
230 dsp->loop_filter_mix2[0][0][1] = ff_vp9_loop_filter_v_44_16_##opt; \
231 dsp->loop_filter_mix2[0][1][0] = ff_vp9_loop_filter_h_48_16_##opt; \
232 dsp->loop_filter_mix2[0][1][1] = ff_vp9_loop_filter_v_48_16_##opt; \
233 dsp->loop_filter_mix2[1][0][0] = ff_vp9_loop_filter_h_84_16_##opt; \
234 dsp->loop_filter_mix2[1][0][1] = ff_vp9_loop_filter_v_84_16_##opt; \
235 dsp->loop_filter_mix2[1][1][0] = ff_vp9_loop_filter_h_88_16_##opt; \
236 dsp->loop_filter_mix2[1][1][1] = ff_vp9_loop_filter_v_88_16_##opt; \
237} while (0)
238
239#define init_ipred(sz, opt, t, e) \
240 dsp->intra_pred[TX_##sz##X##sz][e##_PRED] = ff_vp9_ipred_##t##_##sz##x##sz##_##opt
241
242#define ff_vp9_ipred_hd_4x4_ssse3 ff_vp9_ipred_hd_4x4_mmxext
243#define ff_vp9_ipred_vl_4x4_ssse3 ff_vp9_ipred_vl_4x4_mmxext
244#define init_dir_tm_ipred(sz, opt) do { \
245 init_ipred(sz, opt, dl, DIAG_DOWN_LEFT); \
246 init_ipred(sz, opt, dr, DIAG_DOWN_RIGHT); \
247 init_ipred(sz, opt, hd, HOR_DOWN); \
248 init_ipred(sz, opt, vl, VERT_LEFT); \
249 init_ipred(sz, opt, hu, HOR_UP); \
250 init_ipred(sz, opt, tm, TM_VP8); \
251 init_ipred(sz, opt, vr, VERT_RIGHT); \
252} while (0)
253#define init_dir_tm_h_ipred(sz, opt) do { \
254 init_dir_tm_ipred(sz, opt); \
255 init_ipred(sz, opt, h, HOR); \
256} while (0)
257#define init_dc_ipred(sz, opt) do { \
258 init_ipred(sz, opt, dc, DC); \
259 init_ipred(sz, opt, dc_left, LEFT_DC); \
260 init_ipred(sz, opt, dc_top, TOP_DC); \
261} while (0)
262#define init_all_ipred(sz, opt) do { \
263 init_dc_ipred(sz, opt); \
264 init_dir_tm_h_ipred(sz, opt); \
265} while (0)
266
267 if (EXTERNAL_MMX(cpu_flags)) {
268 init_fpel_func(4, 0, 4, put, , mmx);
269 init_fpel_func(3, 0, 8, put, , mmx);
270 if (!bitexact) {
271 dsp->itxfm_add[4 /* lossless */][DCT_DCT] =
272 dsp->itxfm_add[4 /* lossless */][ADST_DCT] =
273 dsp->itxfm_add[4 /* lossless */][DCT_ADST] =
274 dsp->itxfm_add[4 /* lossless */][ADST_ADST] = ff_vp9_iwht_iwht_4x4_add_mmx;
275 }
276 init_ipred(8, mmx, v, VERT);
277 }
278
280 dsp->loop_filter_8[0][0] = ff_vp9_loop_filter_h_4_8_mmxext;
281 dsp->loop_filter_8[0][1] = ff_vp9_loop_filter_v_4_8_mmxext;
282 dsp->loop_filter_8[1][0] = ff_vp9_loop_filter_h_8_8_mmxext;
283 dsp->loop_filter_8[1][1] = ff_vp9_loop_filter_v_8_8_mmxext;
284 init_fpel_func(4, 1, 4, avg, _8, mmxext);
285 init_fpel_func(3, 1, 8, avg, _8, mmxext);
286 dsp->intra_pred[TX_4X4][HOR_DOWN_PRED] = ff_vp9_ipred_hd_4x4_mmxext;
287 dsp->intra_pred[TX_4X4][VERT_LEFT_PRED] = ff_vp9_ipred_vl_4x4_mmxext;
288 }
289
290 if (EXTERNAL_SSE(cpu_flags)) {
291 init_fpel_func(2, 0, 16, put, , sse);
292 init_fpel_func(1, 0, 32, put, , sse);
293 init_fpel_func(0, 0, 64, put, , sse);
294 init_ipred(16, sse, v, VERT);
295 init_ipred(32, sse, v, VERT);
296 }
297
299 init_subpel3_8to64(0, put, 8, sse2);
300 init_subpel3_8to64(1, avg, 8, sse2);
301 init_fpel_func(2, 1, 16, avg, _8, sse2);
302 init_fpel_func(1, 1, 32, avg, _8, sse2);
303 init_fpel_func(0, 1, 64, avg, _8, sse2);
304 init_lpf(sse2);
305 dsp->itxfm_add[TX_4X4][ADST_DCT] = ff_vp9_idct_iadst_4x4_add_sse2;
306 dsp->itxfm_add[TX_4X4][DCT_ADST] = ff_vp9_iadst_idct_4x4_add_sse2;
307 dsp->itxfm_add[TX_4X4][ADST_ADST] = ff_vp9_iadst_iadst_4x4_add_sse2;
308 dsp->itxfm_add[TX_8X8][DCT_DCT] = ff_vp9_idct_idct_8x8_add_sse2;
309 dsp->itxfm_add[TX_8X8][ADST_DCT] = ff_vp9_idct_iadst_8x8_add_sse2;
310 dsp->itxfm_add[TX_8X8][DCT_ADST] = ff_vp9_iadst_idct_8x8_add_sse2;
311 dsp->itxfm_add[TX_8X8][ADST_ADST] = ff_vp9_iadst_iadst_8x8_add_sse2;
312 dsp->itxfm_add[TX_16X16][DCT_DCT] = ff_vp9_idct_idct_16x16_add_sse2;
313 dsp->itxfm_add[TX_16X16][ADST_DCT] = ff_vp9_idct_iadst_16x16_add_sse2;
314 dsp->itxfm_add[TX_16X16][DCT_ADST] = ff_vp9_iadst_idct_16x16_add_sse2;
315 dsp->itxfm_add[TX_16X16][ADST_ADST] = ff_vp9_iadst_iadst_16x16_add_sse2;
319 dsp->itxfm_add[TX_32X32][DCT_DCT] = ff_vp9_idct_idct_32x32_add_sse2;
320 init_dc_ipred(16, sse2);
321 init_dc_ipred(32, sse2);
322 init_dir_tm_h_ipred(8, sse2);
323 init_dir_tm_h_ipred(16, sse2);
324 init_dir_tm_h_ipred(32, sse2);
325 init_ipred(4, sse2, h, HOR);
326 }
327
329 init_subpel3(0, put, 8, ssse3);
330 init_subpel3(1, avg, 8, ssse3);
331 dsp->itxfm_add[TX_4X4][DCT_DCT] = ff_vp9_idct_idct_4x4_add_ssse3;
332 dsp->itxfm_add[TX_4X4][ADST_DCT] = ff_vp9_idct_iadst_4x4_add_ssse3;
333 dsp->itxfm_add[TX_4X4][DCT_ADST] = ff_vp9_iadst_idct_4x4_add_ssse3;
334 dsp->itxfm_add[TX_4X4][ADST_ADST] = ff_vp9_iadst_iadst_4x4_add_ssse3;
335 dsp->itxfm_add[TX_8X8][DCT_DCT] = ff_vp9_idct_idct_8x8_add_ssse3;
336 dsp->itxfm_add[TX_8X8][ADST_DCT] = ff_vp9_idct_iadst_8x8_add_ssse3;
337 dsp->itxfm_add[TX_8X8][DCT_ADST] = ff_vp9_iadst_idct_8x8_add_ssse3;
338 dsp->itxfm_add[TX_8X8][ADST_ADST] = ff_vp9_iadst_iadst_8x8_add_ssse3;
339 dsp->itxfm_add[TX_16X16][DCT_DCT] = ff_vp9_idct_idct_16x16_add_ssse3;
340 dsp->itxfm_add[TX_16X16][ADST_DCT] = ff_vp9_idct_iadst_16x16_add_ssse3;
341 dsp->itxfm_add[TX_16X16][DCT_ADST] = ff_vp9_iadst_idct_16x16_add_ssse3;
342 dsp->itxfm_add[TX_16X16][ADST_ADST] = ff_vp9_iadst_iadst_16x16_add_ssse3;
346 dsp->itxfm_add[TX_32X32][DCT_DCT] = ff_vp9_idct_idct_32x32_add_ssse3;
347 init_lpf(ssse3);
348 init_all_ipred(4, ssse3);
349 init_all_ipred(8, ssse3);
350 init_all_ipred(16, ssse3);
351 init_all_ipred(32, ssse3);
352 }
353
354 if (EXTERNAL_AVX(cpu_flags)) {
355 init_lpf(avx);
356 init_dir_tm_h_ipred(8, avx);
357 init_dir_tm_h_ipred(16, avx);
358 init_dir_tm_h_ipred(32, avx);
359 }
361 init_fpel_func(1, 0, 32, put, , avx);
362 init_fpel_func(0, 0, 64, put, , avx);
363 }
364
366 init_fpel_func(1, 1, 32, avg, _8, avx2);
367 init_fpel_func(0, 1, 64, avg, _8, avx2);
368 if (ARCH_X86_64) {
369#if ARCH_X86_64 && HAVE_AVX2_EXTERNAL
370 dsp->itxfm_add[4 /* lossless */][DCT_DCT] =
371 dsp->itxfm_add[4 /* lossless */][ADST_DCT] =
372 dsp->itxfm_add[4 /* lossless */][DCT_ADST] =
373 dsp->itxfm_add[4 /* lossless */][ADST_ADST] = ff_vp9_iwht_iwht_4x4_add_avx2;
374 dsp->itxfm_add[TX_4X4][DCT_DCT] = ff_vp9_idct_idct_4x4_add_avx2;
375 dsp->itxfm_add[TX_4X4][ADST_DCT] = ff_vp9_idct_iadst_4x4_add_avx2;
376 dsp->itxfm_add[TX_4X4][DCT_ADST] = ff_vp9_iadst_idct_4x4_add_avx2;
377 dsp->itxfm_add[TX_4X4][ADST_ADST] = ff_vp9_iadst_iadst_4x4_add_avx2;
378 dsp->itxfm_add[TX_8X8][DCT_DCT] = ff_vp9_idct_idct_8x8_add_avx2;
379 dsp->itxfm_add[TX_8X8][ADST_DCT] = ff_vp9_idct_iadst_8x8_add_avx2;
380 dsp->itxfm_add[TX_8X8][DCT_ADST] = ff_vp9_iadst_idct_8x8_add_avx2;
381 dsp->itxfm_add[TX_8X8][ADST_ADST] = ff_vp9_iadst_iadst_8x8_add_avx2;
382 dsp->itxfm_add[TX_16X16][DCT_DCT] = ff_vp9_idct_idct_16x16_add_avx2;
383 dsp->itxfm_add[TX_16X16][ADST_DCT] = ff_vp9_idct_iadst_16x16_add_avx2;
384 dsp->itxfm_add[TX_16X16][DCT_ADST] = ff_vp9_iadst_idct_16x16_add_avx2;
385 dsp->itxfm_add[TX_16X16][ADST_ADST] = ff_vp9_iadst_iadst_16x16_add_avx2;
389 dsp->itxfm_add[TX_32X32][DCT_DCT] = ff_vp9_idct_idct_32x32_add_avx2;
390 init_subpel3_32_64(0, put, 8, avx2);
391 init_subpel3_32_64(1, avg, 8, avx2);
392#endif
393 }
394 init_all_ipred(32, avx2);
395 init_ipred(32, avx2, v, VERT);
396 }
397
398#if ARCH_X86_64
400 dsp->itxfm_add[TX_16X16][DCT_DCT] = ff_vp9_idct_idct_16x16_add_avx512icl;
401 dsp->itxfm_add[TX_16X16][ADST_DCT] = ff_vp9_idct_iadst_16x16_add_avx512icl;
402 dsp->itxfm_add[TX_16X16][DCT_ADST] = ff_vp9_iadst_idct_16x16_add_avx512icl;
403 dsp->itxfm_add[TX_16X16][ADST_ADST] = ff_vp9_iadst_iadst_16x16_add_avx512icl;
407 dsp->itxfm_add[TX_32X32][DCT_DCT] = ff_vp9_idct_idct_32x32_add_avx512icl;
408 init_subpel_asm(4, 4, 8, avx512icl);
409 init_subpel_asm(3, 8, 8, avx512icl);
410 init_subpel_asm(2, 16, 8, avx512icl);
411 init_subpel_asm(1, 32, 8, avx512icl);
412 init_subpel_asm(0, 64, 8, avx512icl);
413 }
414#endif
415
416#undef init_fpel
417#undef init_subpel1
418#undef init_subpel2
419#undef init_subpel3
420}
#define ARCH_X86_64
#define avg(a, b, c, d)
#define VERT_LEFT_PRED
Definition h264pred.h:45
#define HOR_DOWN_PRED
Definition h264pred.h:44
#define mc_rep_funcs(name, bitd, step, W, opt)
Definition h2656dsp.c:55
static void idct(int16_t block[64])
Definition 4xm.c:167
Macro definitions for various function/variable attributes.
#define av_cold
Definition attributes.h:117
static atomic_int cpu_flags
Definition cpu.c:56
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
Definition cpu.c:109
#define EXTERNAL_SSE(flags)
Definition cpu.h:52
#define EXTERNAL_AVX(flags)
Definition cpu.h:64
#define EXTERNAL_AVX2_FAST(flags)
Definition cpu.h:73
#define EXTERNAL_MMXEXT(flags)
Definition cpu.h:51
#define EXTERNAL_SSSE3(flags)
Definition cpu.h:59
#define EXTERNAL_AVX512ICL(flags)
Definition cpu.h:78
#define EXTERNAL_MMX(flags)
Definition cpu.h:50
#define EXTERNAL_AVX_FAST(flags)
Definition cpu.h:65
#define EXTERNAL_SSE2(flags)
Definition cpu.h:53
static int sse(const MPVEncContext *const s, const uint8_t *src1, const uint8_t *src2, int w, int h, int stride)
void(* itxfm_add[N_TXFM_SIZES+1][N_TXFM_TYPES])(uint8_t *dst, ptrdiff_t stride, int16_t *block, int eob)
Definition vp9dsp.h:71
void(* intra_pred[N_TXFM_SIZES][N_INTRA_PRED_MODES])(uint8_t *dst, ptrdiff_t stride, const uint8_t *left, const uint8_t *top)
Definition vp9dsp.h:52
void(* loop_filter_8[3][2])(uint8_t *dst, ptrdiff_t stride, int mb_lim, int lim, int hev_thr)
Definition vp9dsp.h:81
@ DCT_ADST
Definition vp9.h:39
@ DCT_DCT
Definition vp9.h:38
@ ADST_DCT
Definition vp9.h:40
@ ADST_ADST
Definition vp9.h:41
@ TX_16X16
Definition vp9.h:30
@ TX_32X32
Definition vp9.h:31
@ TX_4X4
Definition vp9.h:28
@ TX_8X8
Definition vp9.h:29
void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp, int bitexact)
#define decl_mc_funcs(sz, bpp)
#define init_subpel3(idx, type)
#define ipred_func(size, type, opt)
#define itxfm_func(typea, typeb, size, opt)
#define init_dc_ipred(sz, opt)
#define init_dir_tm_h_ipred(sz, opt)
#define ipred_dir_tm_h_funcs(size, opt)
#define itxfm_funcs(size, opt)
#define init_lpf(opt)
#define ipred_dc_funcs(size, opt)
#define init_all_ipred(sz, opt)
#define init_ipred(sz, opt, t, e)
#define ipred_all_funcs(size, opt)
#define lpf_funcs(size1, size2, opt)
#define init_subpel3_32_64(idx, type, bpp, opt)
void ff_vp9dsp_init_12bpp_x86(VP9DSPContext *dsp, int bitexact)
#define init_fpel_func(idx1, idx2, sz, type, bpp, opt)
#define filters_8tap_1d_fn3(op, bpp, opt8, f_opt)
#define filters_8tap_2d_fn2(op, align, bpp, bytes, opt8, f_opt)
#define filters_8tap_2d_fn3(op, align, bpp, bytes, opt, f_opt)
#define init_subpel_asm(idx, sz, bpp, opt)
#define filters_8tap_1d_fn2(op, sz, bpp, opt, f_opt)
#define filters_8tap_1d_fn4(op, bpp, opt, f_opt)
void ff_vp9dsp_init_10bpp_x86(VP9DSPContext *dsp, int bitexact)
#define init_subpel3_8to64(idx, type, bpp, opt)
#define filters_8tap_2d_fn(op, sz, align, bpp, bytes, opt, f_opt)
#define decl_fpel_func(avg, sz, bpp, opt)
Definition vp9dsp_init.h:34
#define decl_subpel_asm(sz, bpp, opt)