Mercurial > libavcodec.hg
annotate x86/vp8dsp-init.c @ 12209:9eef00a43280 libavcodec
Make mmx VP8 WHT faster
Avoid pextrw, since it's slow on many older CPUs.
Now it doesn't require mmxext either.
| author | darkshikari |
|---|---|
| date | Wed, 21 Jul 2010 20:51:01 +0000 |
| parents | d38e8565ba05 |
| children | baf13deed97e |
| rev | line source |
|---|---|
| 11975 | 1 /* |
| 2 * VP8 DSP functions x86-optimized | |
| 3 * Copyright (c) 2010 Ronald S. Bultje <rsbultje@gmail.com> | |
| 4 * Copyright (c) 2010 Jason Garrett-Glaser <darkshikari@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 | |
| 23 #include "libavutil/x86_cpu.h" | |
| 24 #include "libavcodec/vp8dsp.h" | |
| 25 | |
| 11991 | 26 #if HAVE_YASM |
| 27 | |
| 11975 | 28 /* |
| 29 * MC functions | |
| 30 */ | |
| 31 extern void ff_put_vp8_epel4_h4_mmxext(uint8_t *dst, int dststride, | |
| 32 uint8_t *src, int srcstride, | |
| 33 int height, int mx, int my); | |
| 34 extern void ff_put_vp8_epel4_h6_mmxext(uint8_t *dst, int dststride, | |
| 35 uint8_t *src, int srcstride, | |
| 36 int height, int mx, int my); | |
| 37 extern void ff_put_vp8_epel4_v4_mmxext(uint8_t *dst, int dststride, | |
| 38 uint8_t *src, int srcstride, | |
| 39 int height, int mx, int my); | |
| 40 extern void ff_put_vp8_epel4_v6_mmxext(uint8_t *dst, int dststride, | |
| 41 uint8_t *src, int srcstride, | |
| 42 int height, int mx, int my); | |
| 43 | |
| 44 extern void ff_put_vp8_epel8_h4_sse2 (uint8_t *dst, int dststride, | |
| 45 uint8_t *src, int srcstride, | |
| 46 int height, int mx, int my); | |
| 47 extern void ff_put_vp8_epel8_h6_sse2 (uint8_t *dst, int dststride, | |
| 48 uint8_t *src, int srcstride, | |
| 49 int height, int mx, int my); | |
| 50 extern void ff_put_vp8_epel8_v4_sse2 (uint8_t *dst, int dststride, | |
| 51 uint8_t *src, int srcstride, | |
| 52 int height, int mx, int my); | |
| 53 extern void ff_put_vp8_epel8_v6_sse2 (uint8_t *dst, int dststride, | |
| 54 uint8_t *src, int srcstride, | |
| 55 int height, int mx, int my); | |
| 56 | |
|
12054
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
57 extern void ff_put_vp8_epel4_h4_ssse3 (uint8_t *dst, int dststride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
58 uint8_t *src, int srcstride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
59 int height, int mx, int my); |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
60 extern void ff_put_vp8_epel4_h6_ssse3 (uint8_t *dst, int dststride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
61 uint8_t *src, int srcstride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
62 int height, int mx, int my); |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
63 extern void ff_put_vp8_epel4_v4_ssse3 (uint8_t *dst, int dststride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
64 uint8_t *src, int srcstride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
65 int height, int mx, int my); |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
66 extern void ff_put_vp8_epel4_v6_ssse3 (uint8_t *dst, int dststride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
67 uint8_t *src, int srcstride, |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
68 int height, int mx, int my); |
| 11975 | 69 extern void ff_put_vp8_epel8_h4_ssse3 (uint8_t *dst, int dststride, |
| 70 uint8_t *src, int srcstride, | |
| 71 int height, int mx, int my); | |
| 72 extern void ff_put_vp8_epel8_h6_ssse3 (uint8_t *dst, int dststride, | |
| 73 uint8_t *src, int srcstride, | |
| 74 int height, int mx, int my); | |
| 75 extern void ff_put_vp8_epel8_v4_ssse3 (uint8_t *dst, int dststride, | |
| 76 uint8_t *src, int srcstride, | |
| 77 int height, int mx, int my); | |
| 78 extern void ff_put_vp8_epel8_v6_ssse3 (uint8_t *dst, int dststride, | |
| 79 uint8_t *src, int srcstride, | |
| 80 int height, int mx, int my); | |
| 81 | |
| 11991 | 82 extern void ff_put_vp8_bilinear4_h_mmxext(uint8_t *dst, int dststride, |
| 83 uint8_t *src, int srcstride, | |
| 84 int height, int mx, int my); | |
| 85 extern void ff_put_vp8_bilinear8_h_sse2 (uint8_t *dst, int dststride, | |
| 86 uint8_t *src, int srcstride, | |
| 87 int height, int mx, int my); | |
|
12082
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
88 extern void ff_put_vp8_bilinear4_h_ssse3 (uint8_t *dst, int dststride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
89 uint8_t *src, int srcstride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
90 int height, int mx, int my); |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
91 extern void ff_put_vp8_bilinear8_h_ssse3 (uint8_t *dst, int dststride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
92 uint8_t *src, int srcstride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
93 int height, int mx, int my); |
| 11991 | 94 |
| 95 extern void ff_put_vp8_bilinear4_v_mmxext(uint8_t *dst, int dststride, | |
| 96 uint8_t *src, int srcstride, | |
| 97 int height, int mx, int my); | |
| 98 extern void ff_put_vp8_bilinear8_v_sse2 (uint8_t *dst, int dststride, | |
| 99 uint8_t *src, int srcstride, | |
| 100 int height, int mx, int my); | |
|
12082
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
101 extern void ff_put_vp8_bilinear4_v_ssse3 (uint8_t *dst, int dststride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
102 uint8_t *src, int srcstride, |
|
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
103 int height, int mx, int my); |
| 11991 | 104 extern void ff_put_vp8_bilinear8_v_ssse3 (uint8_t *dst, int dststride, |
| 105 uint8_t *src, int srcstride, | |
| 106 int height, int mx, int my); | |
|
12082
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
107 |
| 11991 | 108 |
| 11992 | 109 extern void ff_put_vp8_pixels8_mmx (uint8_t *dst, int dststride, |
| 110 uint8_t *src, int srcstride, | |
| 111 int height, int mx, int my); | |
| 112 extern void ff_put_vp8_pixels16_mmx(uint8_t *dst, int dststride, | |
| 113 uint8_t *src, int srcstride, | |
| 114 int height, int mx, int my); | |
| 115 extern void ff_put_vp8_pixels16_sse(uint8_t *dst, int dststride, | |
| 116 uint8_t *src, int srcstride, | |
| 117 int height, int mx, int my); | |
| 118 | |
| 11991 | 119 #define TAP_W16(OPT, FILTERTYPE, TAPTYPE) \ |
| 120 static void ff_put_vp8_ ## FILTERTYPE ## 16_ ## TAPTYPE ## _ ## OPT( \ | |
| 121 uint8_t *dst, int dststride, uint8_t *src, \ | |
| 122 int srcstride, int height, int mx, int my) \ | |
| 11975 | 123 { \ |
| 11991 | 124 ff_put_vp8_ ## FILTERTYPE ## 8_ ## TAPTYPE ## _ ## OPT( \ |
| 125 dst, dststride, src, srcstride, height, mx, my); \ | |
| 126 ff_put_vp8_ ## FILTERTYPE ## 8_ ## TAPTYPE ## _ ## OPT( \ | |
| 127 dst + 8, dststride, src + 8, srcstride, height, mx, my); \ | |
| 11975 | 128 } |
| 11991 | 129 #define TAP_W8(OPT, FILTERTYPE, TAPTYPE) \ |
| 130 static void ff_put_vp8_ ## FILTERTYPE ## 8_ ## TAPTYPE ## _ ## OPT( \ | |
| 131 uint8_t *dst, int dststride, uint8_t *src, \ | |
| 132 int srcstride, int height, int mx, int my) \ | |
| 11975 | 133 { \ |
| 11991 | 134 ff_put_vp8_ ## FILTERTYPE ## 4_ ## TAPTYPE ## _ ## OPT( \ |
| 135 dst, dststride, src, srcstride, height, mx, my); \ | |
| 136 ff_put_vp8_ ## FILTERTYPE ## 4_ ## TAPTYPE ## _ ## OPT( \ | |
| 137 dst + 4, dststride, src + 4, srcstride, height, mx, my); \ | |
| 11975 | 138 } |
| 139 | |
| 11991 | 140 TAP_W8 (mmxext, epel, h4) |
| 141 TAP_W8 (mmxext, epel, h6) | |
| 142 TAP_W16(mmxext, epel, h6) | |
| 143 TAP_W8 (mmxext, epel, v4) | |
| 144 TAP_W8 (mmxext, epel, v6) | |
| 145 TAP_W16(mmxext, epel, v6) | |
| 146 TAP_W8 (mmxext, bilinear, h) | |
| 147 TAP_W16(mmxext, bilinear, h) | |
| 148 TAP_W8 (mmxext, bilinear, v) | |
| 149 TAP_W16(mmxext, bilinear, v) | |
| 11975 | 150 |
| 11991 | 151 TAP_W16(sse2, epel, h6) |
| 152 TAP_W16(sse2, epel, v6) | |
| 153 TAP_W16(sse2, bilinear, h) | |
| 154 TAP_W16(sse2, bilinear, v) | |
| 11975 | 155 |
| 11991 | 156 TAP_W16(ssse3, epel, h6) |
| 157 TAP_W16(ssse3, epel, v6) | |
| 158 TAP_W16(ssse3, bilinear, h) | |
| 159 TAP_W16(ssse3, bilinear, v) | |
| 11975 | 160 |
| 161 #define HVTAP(OPT, ALIGN, TAPNUMX, TAPNUMY, SIZE, MAXHEIGHT) \ | |
| 11991 | 162 static void ff_put_vp8_epel ## SIZE ## _h ## TAPNUMX ## v ## TAPNUMY ## _ ## OPT( \ |
| 163 uint8_t *dst, int dststride, uint8_t *src, \ | |
| 164 int srcstride, int height, int mx, int my) \ | |
| 11975 | 165 { \ |
| 166 DECLARE_ALIGNED(ALIGN, uint8_t, tmp)[SIZE * (MAXHEIGHT + TAPNUMY - 1)]; \ | |
| 167 uint8_t *tmpptr = tmp + SIZE * (TAPNUMY / 2 - 1); \ | |
| 168 src -= srcstride * (TAPNUMY / 2 - 1); \ | |
| 11991 | 169 ff_put_vp8_epel ## SIZE ## _h ## TAPNUMX ## _ ## OPT( \ |
| 170 tmp, SIZE, src, srcstride, height + TAPNUMY - 1, mx, my); \ | |
| 171 ff_put_vp8_epel ## SIZE ## _v ## TAPNUMY ## _ ## OPT( \ | |
| 172 dst, dststride, tmpptr, SIZE, height, mx, my); \ | |
| 11975 | 173 } |
| 174 | |
| 175 #define HVTAPMMX(x, y) \ | |
| 176 HVTAP(mmxext, 8, x, y, 4, 8) \ | |
| 177 HVTAP(mmxext, 8, x, y, 8, 16) | |
| 178 | |
| 179 HVTAPMMX(4, 4) | |
| 180 HVTAPMMX(4, 6) | |
| 181 HVTAPMMX(6, 4) | |
| 182 HVTAPMMX(6, 6) | |
| 183 HVTAP(mmxext, 8, 6, 6, 16, 16) | |
| 184 | |
| 185 #define HVTAPSSE2(x, y, w) \ | |
| 186 HVTAP(sse2, 16, x, y, w, 16) \ | |
| 187 HVTAP(ssse3, 16, x, y, w, 16) | |
| 188 | |
| 189 HVTAPSSE2(4, 4, 8) | |
| 190 HVTAPSSE2(4, 6, 8) | |
| 191 HVTAPSSE2(6, 4, 8) | |
| 192 HVTAPSSE2(6, 6, 8) | |
| 193 HVTAPSSE2(6, 6, 16) | |
| 11991 | 194 |
|
12054
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
195 HVTAP(ssse3, 16, 4, 4, 4, 8) |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
196 HVTAP(ssse3, 16, 4, 6, 4, 8) |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
197 HVTAP(ssse3, 16, 6, 4, 4, 8) |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
198 HVTAP(ssse3, 16, 6, 6, 4, 8) |
|
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
199 |
| 11991 | 200 #define HVBILIN(OPT, ALIGN, SIZE, MAXHEIGHT) \ |
| 201 static void ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT( \ | |
| 202 uint8_t *dst, int dststride, uint8_t *src, \ | |
| 203 int srcstride, int height, int mx, int my) \ | |
| 204 { \ | |
| 205 DECLARE_ALIGNED(ALIGN, uint8_t, tmp)[SIZE * (MAXHEIGHT + 2)]; \ | |
| 206 ff_put_vp8_bilinear ## SIZE ## _h_ ## OPT( \ | |
| 207 tmp, SIZE, src, srcstride, height + 1, mx, my); \ | |
| 208 ff_put_vp8_bilinear ## SIZE ## _v_ ## OPT( \ | |
| 209 dst, dststride, tmp, SIZE, height, mx, my); \ | |
| 210 } | |
| 211 | |
| 212 HVBILIN(mmxext, 8, 4, 8) | |
| 213 HVBILIN(mmxext, 8, 8, 16) | |
| 214 HVBILIN(mmxext, 8, 16, 16) | |
| 215 HVBILIN(sse2, 8, 8, 16) | |
| 216 HVBILIN(sse2, 8, 16, 16) | |
|
12082
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
217 HVBILIN(ssse3, 8, 4, 8) |
| 11991 | 218 HVBILIN(ssse3, 8, 8, 16) |
| 219 HVBILIN(ssse3, 8, 16, 16) | |
| 11975 | 220 |
| 221 extern void ff_vp8_idct_dc_add_mmx(uint8_t *dst, DCTELEM block[16], int stride); | |
| 222 extern void ff_vp8_idct_dc_add_sse4(uint8_t *dst, DCTELEM block[16], int stride); | |
| 12209 | 223 extern void ff_vp8_luma_dc_wht_mmx(DCTELEM block[4][4][16], DCTELEM dc[16]); |
| 12013 | 224 extern void ff_vp8_idct_add_mmx(uint8_t *dst, DCTELEM block[16], int stride); |
|
12086
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
225 |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
226 extern void ff_vp8_v_loop_filter_simple_mmx (uint8_t *dst, int stride, int flim); |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
227 extern void ff_vp8_v_loop_filter_simple_mmxext(uint8_t *dst, int stride, int flim); |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
228 extern void ff_vp8_v_loop_filter_simple_sse2 (uint8_t *dst, int stride, int flim); |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
229 extern void ff_vp8_h_loop_filter_simple_mmx (uint8_t *dst, int stride, int flim); |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
230 extern void ff_vp8_h_loop_filter_simple_mmxext(uint8_t *dst, int stride, int flim); |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
231 extern void ff_vp8_h_loop_filter_simple_sse2 (uint8_t *dst, int stride, int flim); |
|
12168
b246b214c2e9
VP8 H/V inner loopfilter MMX/MMXEXT/SSE2 optimizations.
rbultje
parents:
12086
diff
changeset
|
232 |
|
12194
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
233 extern void ff_vp8_v_loop_filter16y_inner_mmx (uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
234 int e, int i, int hvt); |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
235 extern void ff_vp8_v_loop_filter16y_inner_mmxext(uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
236 int e, int i, int hvt); |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
237 extern void ff_vp8_v_loop_filter16y_inner_sse2 (uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
238 int e, int i, int hvt); |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
239 extern void ff_vp8_h_loop_filter16y_inner_mmx (uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
240 int e, int i, int hvt); |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
241 extern void ff_vp8_h_loop_filter16y_inner_mmxext(uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
242 int e, int i, int hvt); |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
243 extern void ff_vp8_h_loop_filter16y_inner_sse2 (uint8_t *dst, int stride, |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
244 int e, int i, int hvt); |
|
12204
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
245 |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
246 extern void ff_vp8_v_loop_filter8uv_inner_mmx (uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
247 int s, int e, int i, int hvt); |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
248 extern void ff_vp8_v_loop_filter8uv_inner_mmxext(uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
249 int s, int e, int i, int hvt); |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
250 extern void ff_vp8_v_loop_filter8uv_inner_sse2 (uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
251 int s, int e, int i, int hvt); |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
252 extern void ff_vp8_h_loop_filter8uv_inner_mmx (uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
253 int s, int e, int i, int hvt); |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
254 extern void ff_vp8_h_loop_filter8uv_inner_mmxext(uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
255 int s, int e, int i, int hvt); |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
256 extern void ff_vp8_h_loop_filter8uv_inner_sse2 (uint8_t *dstU, uint8_t *dstV, |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
257 int s, int e, int i, int hvt); |
|
12205
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
258 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
259 extern void ff_vp8_v_loop_filter16y_mbedge_mmx (uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
260 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
261 extern void ff_vp8_v_loop_filter16y_mbedge_mmxext(uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
262 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
263 extern void ff_vp8_v_loop_filter16y_mbedge_sse2 (uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
264 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
265 extern void ff_vp8_h_loop_filter16y_mbedge_mmx (uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
266 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
267 extern void ff_vp8_h_loop_filter16y_mbedge_mmxext(uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
268 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
269 extern void ff_vp8_h_loop_filter16y_mbedge_sse2 (uint8_t *dst, int stride, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
270 int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
271 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
272 extern void ff_vp8_v_loop_filter8uv_mbedge_mmx (uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
273 int s, int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
274 extern void ff_vp8_v_loop_filter8uv_mbedge_mmxext(uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
275 int s, int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
276 extern void ff_vp8_v_loop_filter8uv_mbedge_sse2 (uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
277 int s, int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
278 extern void ff_vp8_h_loop_filter8uv_mbedge_mmx (uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
279 int s, int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
280 extern void ff_vp8_h_loop_filter8uv_mbedge_mmxext(uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
281 int s, int e, int i, int hvt); |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
282 extern void ff_vp8_h_loop_filter8uv_mbedge_sse2 (uint8_t *dstU, uint8_t *dstV, |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
283 int s, int e, int i, int hvt); |
| 11991 | 284 #endif |
| 285 | |
| 286 #define VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) \ | |
| 287 c->put_vp8_epel_pixels_tab[IDX][0][2] = ff_put_vp8_epel ## SIZE ## _h6_ ## OPT; \ | |
| 288 c->put_vp8_epel_pixels_tab[IDX][2][0] = ff_put_vp8_epel ## SIZE ## _v6_ ## OPT; \ | |
| 289 c->put_vp8_epel_pixels_tab[IDX][2][2] = ff_put_vp8_epel ## SIZE ## _h6v6_ ## OPT | |
| 290 | |
| 291 #define VP8_MC_FUNC(IDX, SIZE, OPT) \ | |
| 292 c->put_vp8_epel_pixels_tab[IDX][0][1] = ff_put_vp8_epel ## SIZE ## _h4_ ## OPT; \ | |
| 293 c->put_vp8_epel_pixels_tab[IDX][1][0] = ff_put_vp8_epel ## SIZE ## _v4_ ## OPT; \ | |
| 294 c->put_vp8_epel_pixels_tab[IDX][1][1] = ff_put_vp8_epel ## SIZE ## _h4v4_ ## OPT; \ | |
| 295 c->put_vp8_epel_pixels_tab[IDX][1][2] = ff_put_vp8_epel ## SIZE ## _h6v4_ ## OPT; \ | |
| 296 c->put_vp8_epel_pixels_tab[IDX][2][1] = ff_put_vp8_epel ## SIZE ## _h4v6_ ## OPT; \ | |
| 297 VP8_LUMA_MC_FUNC(IDX, SIZE, OPT) | |
| 298 | |
| 299 #define VP8_BILINEAR_MC_FUNC(IDX, SIZE, OPT) \ | |
| 300 c->put_vp8_bilinear_pixels_tab[IDX][0][1] = ff_put_vp8_bilinear ## SIZE ## _h_ ## OPT; \ | |
| 301 c->put_vp8_bilinear_pixels_tab[IDX][0][2] = ff_put_vp8_bilinear ## SIZE ## _h_ ## OPT; \ | |
| 302 c->put_vp8_bilinear_pixels_tab[IDX][1][0] = ff_put_vp8_bilinear ## SIZE ## _v_ ## OPT; \ | |
| 303 c->put_vp8_bilinear_pixels_tab[IDX][1][1] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT; \ | |
| 304 c->put_vp8_bilinear_pixels_tab[IDX][1][2] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT; \ | |
| 305 c->put_vp8_bilinear_pixels_tab[IDX][2][0] = ff_put_vp8_bilinear ## SIZE ## _v_ ## OPT; \ | |
| 306 c->put_vp8_bilinear_pixels_tab[IDX][2][1] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT; \ | |
| 307 c->put_vp8_bilinear_pixels_tab[IDX][2][2] = ff_put_vp8_bilinear ## SIZE ## _hv_ ## OPT | |
| 308 | |
| 11975 | 309 |
| 310 av_cold void ff_vp8dsp_init_x86(VP8DSPContext* c) | |
| 311 { | |
| 312 mm_flags = mm_support(); | |
| 313 | |
| 11976 | 314 #if HAVE_YASM |
| 11975 | 315 if (mm_flags & FF_MM_MMX) { |
| 316 c->vp8_idct_dc_add = ff_vp8_idct_dc_add_mmx; | |
| 12013 | 317 c->vp8_idct_add = ff_vp8_idct_add_mmx; |
| 12209 | 318 c->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_mmx; |
| 11992 | 319 c->put_vp8_epel_pixels_tab[0][0][0] = |
| 320 c->put_vp8_bilinear_pixels_tab[0][0][0] = ff_put_vp8_pixels16_mmx; | |
| 321 c->put_vp8_epel_pixels_tab[1][0][0] = | |
| 322 c->put_vp8_bilinear_pixels_tab[1][0][0] = ff_put_vp8_pixels8_mmx; | |
|
12086
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
323 |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
324 c->vp8_v_loop_filter_simple = ff_vp8_v_loop_filter_simple_mmx; |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
325 c->vp8_h_loop_filter_simple = ff_vp8_h_loop_filter_simple_mmx; |
|
12168
b246b214c2e9
VP8 H/V inner loopfilter MMX/MMXEXT/SSE2 optimizations.
rbultje
parents:
12086
diff
changeset
|
326 |
|
12194
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
327 c->vp8_v_loop_filter16y_inner = ff_vp8_v_loop_filter16y_inner_mmx; |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
328 c->vp8_h_loop_filter16y_inner = ff_vp8_h_loop_filter16y_inner_mmx; |
|
12204
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
329 c->vp8_v_loop_filter8uv_inner = ff_vp8_v_loop_filter8uv_inner_mmx; |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
330 c->vp8_h_loop_filter8uv_inner = ff_vp8_h_loop_filter8uv_inner_mmx; |
|
12205
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
331 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
332 c->vp8_v_loop_filter16y = ff_vp8_v_loop_filter16y_mbedge_mmx; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
333 c->vp8_h_loop_filter16y = ff_vp8_h_loop_filter16y_mbedge_mmx; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
334 c->vp8_v_loop_filter8uv = ff_vp8_v_loop_filter8uv_mbedge_mmx; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
335 c->vp8_h_loop_filter8uv = ff_vp8_h_loop_filter8uv_mbedge_mmx; |
| 11975 | 336 } |
| 337 | |
| 338 /* note that 4-tap width=16 functions are missing because w=16 | |
| 339 * is only used for luma, and luma is always a copy or sixtap. */ | |
| 11993 | 340 if (mm_flags & FF_MM_MMX2) { |
| 11991 | 341 VP8_LUMA_MC_FUNC(0, 16, mmxext); |
| 342 VP8_MC_FUNC(1, 8, mmxext); | |
| 12042 | 343 VP8_MC_FUNC(2, 4, mmxext); |
| 11991 | 344 VP8_BILINEAR_MC_FUNC(0, 16, mmxext); |
| 345 VP8_BILINEAR_MC_FUNC(1, 8, mmxext); | |
| 12042 | 346 VP8_BILINEAR_MC_FUNC(2, 4, mmxext); |
|
12086
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
347 |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
348 c->vp8_v_loop_filter_simple = ff_vp8_v_loop_filter_simple_mmxext; |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
349 c->vp8_h_loop_filter_simple = ff_vp8_h_loop_filter_simple_mmxext; |
|
12168
b246b214c2e9
VP8 H/V inner loopfilter MMX/MMXEXT/SSE2 optimizations.
rbultje
parents:
12086
diff
changeset
|
350 |
|
12194
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
351 c->vp8_v_loop_filter16y_inner = ff_vp8_v_loop_filter16y_inner_mmxext; |
|
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
352 c->vp8_h_loop_filter16y_inner = ff_vp8_h_loop_filter16y_inner_mmxext; |
|
12204
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
353 c->vp8_v_loop_filter8uv_inner = ff_vp8_v_loop_filter8uv_inner_mmxext; |
|
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
354 c->vp8_h_loop_filter8uv_inner = ff_vp8_h_loop_filter8uv_inner_mmxext; |
|
12205
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
355 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
356 c->vp8_v_loop_filter16y = ff_vp8_v_loop_filter16y_mbedge_mmxext; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
357 c->vp8_h_loop_filter16y = ff_vp8_h_loop_filter16y_mbedge_mmxext; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
358 c->vp8_v_loop_filter8uv = ff_vp8_v_loop_filter8uv_mbedge_mmxext; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
359 c->vp8_h_loop_filter8uv = ff_vp8_h_loop_filter8uv_mbedge_mmxext; |
| 11975 | 360 } |
| 361 | |
| 11992 | 362 if (mm_flags & FF_MM_SSE) { |
| 363 c->put_vp8_epel_pixels_tab[0][0][0] = | |
| 364 c->put_vp8_bilinear_pixels_tab[0][0][0] = ff_put_vp8_pixels16_sse; | |
| 365 } | |
| 366 | |
|
12197
fbf4d5b1b664
Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
rbultje
parents:
12196
diff
changeset
|
367 if (mm_flags & (FF_MM_SSE2|FF_MM_SSE2SLOW)) { |
| 11991 | 368 VP8_LUMA_MC_FUNC(0, 16, sse2); |
| 369 VP8_MC_FUNC(1, 8, sse2); | |
| 370 VP8_BILINEAR_MC_FUNC(0, 16, sse2); | |
| 371 VP8_BILINEAR_MC_FUNC(1, 8, sse2); | |
|
12086
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
372 |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
373 c->vp8_v_loop_filter_simple = ff_vp8_v_loop_filter_simple_sse2; |
|
d780ae746855
Simple H/V loopfilter for VP8 in MMX, MMX2 and SSE2 (yay for yasm macros).
rbultje
parents:
12082
diff
changeset
|
374 c->vp8_h_loop_filter_simple = ff_vp8_h_loop_filter_simple_sse2; |
|
12168
b246b214c2e9
VP8 H/V inner loopfilter MMX/MMXEXT/SSE2 optimizations.
rbultje
parents:
12086
diff
changeset
|
375 |
|
12194
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
376 c->vp8_v_loop_filter16y_inner = ff_vp8_v_loop_filter16y_inner_sse2; |
|
12204
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
377 c->vp8_v_loop_filter8uv_inner = ff_vp8_v_loop_filter8uv_inner_sse2; |
|
12205
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
378 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
379 c->vp8_v_loop_filter16y = ff_vp8_v_loop_filter16y_mbedge_mmxext; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
380 c->vp8_v_loop_filter8uv = ff_vp8_v_loop_filter8uv_mbedge_mmxext; |
|
12197
fbf4d5b1b664
Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
rbultje
parents:
12196
diff
changeset
|
381 } |
|
fbf4d5b1b664
Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
rbultje
parents:
12196
diff
changeset
|
382 |
|
fbf4d5b1b664
Remove FF_MM_SSE2/3 flags for CPUs where this is generally not faster than
rbultje
parents:
12196
diff
changeset
|
383 if (mm_flags & FF_MM_SSE2) { |
|
12194
80b142c2e9f7
Change function prototypes for width=8 inner and mbedge loopfilter functions
rbultje
parents:
12168
diff
changeset
|
384 c->vp8_h_loop_filter16y_inner = ff_vp8_h_loop_filter16y_inner_sse2; |
|
12204
563339ea87aa
Chroma (width=8) inner loopfilter MMX/MMX2/SSE2 for VP8 decoder.
rbultje
parents:
12198
diff
changeset
|
385 c->vp8_h_loop_filter8uv_inner = ff_vp8_h_loop_filter8uv_inner_sse2; |
|
12205
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
386 |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
387 c->vp8_h_loop_filter16y = ff_vp8_h_loop_filter16y_mbedge_mmxext; |
|
d38e8565ba05
VP8 MBedge loopfilter MMX/MMX2/SSE2 functions for both luma (width=16)
rbultje
parents:
12204
diff
changeset
|
388 c->vp8_h_loop_filter8uv = ff_vp8_h_loop_filter8uv_mbedge_mmxext; |
| 11975 | 389 } |
| 390 | |
| 391 if (mm_flags & FF_MM_SSSE3) { | |
| 11991 | 392 VP8_LUMA_MC_FUNC(0, 16, ssse3); |
| 393 VP8_MC_FUNC(1, 8, ssse3); | |
|
12054
b8f80fe02861
SSSE3 versions of width4 VP8 6-tap MC functions
darkshikari
parents:
12042
diff
changeset
|
394 VP8_MC_FUNC(2, 4, ssse3); |
| 11991 | 395 VP8_BILINEAR_MC_FUNC(0, 16, ssse3); |
| 396 VP8_BILINEAR_MC_FUNC(1, 8, ssse3); | |
|
12082
8527154f6e81
SSSE3 versions of vp8 width4 bilinear MC functions
darkshikari
parents:
12054
diff
changeset
|
397 VP8_BILINEAR_MC_FUNC(2, 4, ssse3); |
| 11975 | 398 } |
| 399 | |
| 400 if (mm_flags & FF_MM_SSE4) { | |
| 401 c->vp8_idct_dc_add = ff_vp8_idct_dc_add_sse4; | |
| 402 } | |
| 11976 | 403 #endif |
| 11975 | 404 } |
