00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00027 #include "dsputil.h"
00028 #include "vp8dsp.h"
00029
00030
00031 static void vp8_luma_dc_wht_c(DCTELEM block[4][4][16], DCTELEM dc[16])
00032 {
00033 int i, t0, t1, t2, t3;
00034
00035 for (i = 0; i < 4; i++) {
00036 t0 = dc[0*4+i] + dc[3*4+i];
00037 t1 = dc[1*4+i] + dc[2*4+i];
00038 t2 = dc[1*4+i] - dc[2*4+i];
00039 t3 = dc[0*4+i] - dc[3*4+i];
00040
00041 dc[0*4+i] = t0 + t1;
00042 dc[1*4+i] = t3 + t2;
00043 dc[2*4+i] = t0 - t1;
00044 dc[3*4+i] = t3 - t2;
00045 }
00046
00047 for (i = 0; i < 4; i++) {
00048 t0 = dc[i*4+0] + dc[i*4+3] + 3;
00049 t1 = dc[i*4+1] + dc[i*4+2];
00050 t2 = dc[i*4+1] - dc[i*4+2];
00051 t3 = dc[i*4+0] - dc[i*4+3] + 3;
00052 dc[i*4+0] = 0;
00053 dc[i*4+1] = 0;
00054 dc[i*4+2] = 0;
00055 dc[i*4+3] = 0;
00056
00057 block[i][0][0] = (t0 + t1) >> 3;
00058 block[i][1][0] = (t3 + t2) >> 3;
00059 block[i][2][0] = (t0 - t1) >> 3;
00060 block[i][3][0] = (t3 - t2) >> 3;
00061 }
00062 }
00063
00064 static void vp8_luma_dc_wht_dc_c(DCTELEM block[4][4][16], DCTELEM dc[16])
00065 {
00066 int i, val = (dc[0] + 3) >> 3;
00067 dc[0] = 0;
00068
00069 for (i = 0; i < 4; i++) {
00070 block[i][0][0] = val;
00071 block[i][1][0] = val;
00072 block[i][2][0] = val;
00073 block[i][3][0] = val;
00074 }
00075 }
00076
00077 #define MUL_20091(a) ((((a)*20091) >> 16) + (a))
00078 #define MUL_35468(a) (((a)*35468) >> 16)
00079
00080 static void vp8_idct_add_c(uint8_t *dst, DCTELEM block[16], int stride)
00081 {
00082 int i, t0, t1, t2, t3;
00083 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
00084 DCTELEM tmp[16];
00085
00086 for (i = 0; i < 4; i++) {
00087 t0 = block[0*4+i] + block[2*4+i];
00088 t1 = block[0*4+i] - block[2*4+i];
00089 t2 = MUL_35468(block[1*4+i]) - MUL_20091(block[3*4+i]);
00090 t3 = MUL_20091(block[1*4+i]) + MUL_35468(block[3*4+i]);
00091 block[0*4+i] = 0;
00092 block[1*4+i] = 0;
00093 block[2*4+i] = 0;
00094 block[3*4+i] = 0;
00095
00096 tmp[i*4+0] = t0 + t3;
00097 tmp[i*4+1] = t1 + t2;
00098 tmp[i*4+2] = t1 - t2;
00099 tmp[i*4+3] = t0 - t3;
00100 }
00101
00102 for (i = 0; i < 4; i++) {
00103 t0 = tmp[0*4+i] + tmp[2*4+i];
00104 t1 = tmp[0*4+i] - tmp[2*4+i];
00105 t2 = MUL_35468(tmp[1*4+i]) - MUL_20091(tmp[3*4+i]);
00106 t3 = MUL_20091(tmp[1*4+i]) + MUL_35468(tmp[3*4+i]);
00107
00108 dst[0] = cm[dst[0] + ((t0 + t3 + 4) >> 3)];
00109 dst[1] = cm[dst[1] + ((t1 + t2 + 4) >> 3)];
00110 dst[2] = cm[dst[2] + ((t1 - t2 + 4) >> 3)];
00111 dst[3] = cm[dst[3] + ((t0 - t3 + 4) >> 3)];
00112 dst += stride;
00113 }
00114 }
00115
00116 static void vp8_idct_dc_add_c(uint8_t *dst, DCTELEM block[16], int stride)
00117 {
00118 int i, dc = (block[0] + 4) >> 3;
00119 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP + dc;
00120 block[0] = 0;
00121
00122 for (i = 0; i < 4; i++) {
00123 dst[0] = cm[dst[0]];
00124 dst[1] = cm[dst[1]];
00125 dst[2] = cm[dst[2]];
00126 dst[3] = cm[dst[3]];
00127 dst += stride;
00128 }
00129 }
00130
00131 static void vp8_idct_dc_add4uv_c(uint8_t *dst, DCTELEM block[4][16], int stride)
00132 {
00133 vp8_idct_dc_add_c(dst+stride*0+0, block[0], stride);
00134 vp8_idct_dc_add_c(dst+stride*0+4, block[1], stride);
00135 vp8_idct_dc_add_c(dst+stride*4+0, block[2], stride);
00136 vp8_idct_dc_add_c(dst+stride*4+4, block[3], stride);
00137 }
00138
00139 static void vp8_idct_dc_add4y_c(uint8_t *dst, DCTELEM block[4][16], int stride)
00140 {
00141 vp8_idct_dc_add_c(dst+ 0, block[0], stride);
00142 vp8_idct_dc_add_c(dst+ 4, block[1], stride);
00143 vp8_idct_dc_add_c(dst+ 8, block[2], stride);
00144 vp8_idct_dc_add_c(dst+12, block[3], stride);
00145 }
00146
00147
00148 #define LOAD_PIXELS\
00149 int av_unused p3 = p[-4*stride];\
00150 int av_unused p2 = p[-3*stride];\
00151 int av_unused p1 = p[-2*stride];\
00152 int av_unused p0 = p[-1*stride];\
00153 int av_unused q0 = p[ 0*stride];\
00154 int av_unused q1 = p[ 1*stride];\
00155 int av_unused q2 = p[ 2*stride];\
00156 int av_unused q3 = p[ 3*stride];
00157
00158 #define clip_int8(n) (cm[n+0x80]-0x80)
00159
00160 static av_always_inline void filter_common(uint8_t *p, int stride, int is4tap)
00161 {
00162 LOAD_PIXELS
00163 int a, f1, f2;
00164 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
00165
00166 a = 3*(q0 - p0);
00167
00168 if (is4tap)
00169 a += clip_int8(p1 - q1);
00170
00171 a = clip_int8(a);
00172
00173
00174
00175 f1 = FFMIN(a+4, 127) >> 3;
00176 f2 = FFMIN(a+3, 127) >> 3;
00177
00178
00179
00180 p[-1*stride] = cm[p0 + f2];
00181 p[ 0*stride] = cm[q0 - f1];
00182
00183
00184 if (!is4tap) {
00185 a = (f1+1)>>1;
00186 p[-2*stride] = cm[p1 + a];
00187 p[ 1*stride] = cm[q1 - a];
00188 }
00189 }
00190
00191 static av_always_inline int simple_limit(uint8_t *p, int stride, int flim)
00192 {
00193 LOAD_PIXELS
00194 return 2*FFABS(p0-q0) + (FFABS(p1-q1) >> 1) <= flim;
00195 }
00196
00201 static av_always_inline int normal_limit(uint8_t *p, int stride, int E, int I)
00202 {
00203 LOAD_PIXELS
00204 return simple_limit(p, stride, E)
00205 && FFABS(p3-p2) <= I && FFABS(p2-p1) <= I && FFABS(p1-p0) <= I
00206 && FFABS(q3-q2) <= I && FFABS(q2-q1) <= I && FFABS(q1-q0) <= I;
00207 }
00208
00209
00210 static av_always_inline int hev(uint8_t *p, int stride, int thresh)
00211 {
00212 LOAD_PIXELS
00213 return FFABS(p1-p0) > thresh || FFABS(q1-q0) > thresh;
00214 }
00215
00216 static av_always_inline void filter_mbedge(uint8_t *p, int stride)
00217 {
00218 int a0, a1, a2, w;
00219 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
00220
00221 LOAD_PIXELS
00222
00223 w = clip_int8(p1-q1);
00224 w = clip_int8(w + 3*(q0-p0));
00225
00226 a0 = (27*w + 63) >> 7;
00227 a1 = (18*w + 63) >> 7;
00228 a2 = ( 9*w + 63) >> 7;
00229
00230 p[-3*stride] = cm[p2 + a2];
00231 p[-2*stride] = cm[p1 + a1];
00232 p[-1*stride] = cm[p0 + a0];
00233 p[ 0*stride] = cm[q0 - a0];
00234 p[ 1*stride] = cm[q1 - a1];
00235 p[ 2*stride] = cm[q2 - a2];
00236 }
00237
00238 #define LOOP_FILTER(dir, size, stridea, strideb, maybe_inline) \
00239 static maybe_inline void vp8_ ## dir ## _loop_filter ## size ## _c(uint8_t *dst, int stride,\
00240 int flim_E, int flim_I, int hev_thresh)\
00241 {\
00242 int i;\
00243 \
00244 for (i = 0; i < size; i++)\
00245 if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\
00246 if (hev(dst+i*stridea, strideb, hev_thresh))\
00247 filter_common(dst+i*stridea, strideb, 1);\
00248 else\
00249 filter_mbedge(dst+i*stridea, strideb);\
00250 }\
00251 }\
00252 \
00253 static maybe_inline void vp8_ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, int stride,\
00254 int flim_E, int flim_I, int hev_thresh)\
00255 {\
00256 int i;\
00257 \
00258 for (i = 0; i < size; i++)\
00259 if (normal_limit(dst+i*stridea, strideb, flim_E, flim_I)) {\
00260 int hv = hev(dst+i*stridea, strideb, hev_thresh);\
00261 if (hv) \
00262 filter_common(dst+i*stridea, strideb, 1);\
00263 else \
00264 filter_common(dst+i*stridea, strideb, 0);\
00265 }\
00266 }
00267
00268 LOOP_FILTER(v, 16, 1, stride,)
00269 LOOP_FILTER(h, 16, stride, 1,)
00270
00271 #define UV_LOOP_FILTER(dir, stridea, strideb) \
00272 LOOP_FILTER(dir, 8, stridea, strideb, av_always_inline) \
00273 static void vp8_ ## dir ## _loop_filter8uv_c(uint8_t *dstU, uint8_t *dstV, int stride,\
00274 int fE, int fI, int hev_thresh)\
00275 {\
00276 vp8_ ## dir ## _loop_filter8_c(dstU, stride, fE, fI, hev_thresh);\
00277 vp8_ ## dir ## _loop_filter8_c(dstV, stride, fE, fI, hev_thresh);\
00278 }\
00279 static void vp8_ ## dir ## _loop_filter8uv_inner_c(uint8_t *dstU, uint8_t *dstV, int stride,\
00280 int fE, int fI, int hev_thresh)\
00281 {\
00282 vp8_ ## dir ## _loop_filter8_inner_c(dstU, stride, fE, fI, hev_thresh);\
00283 vp8_ ## dir ## _loop_filter8_inner_c(dstV, stride, fE, fI, hev_thresh);\
00284 }
00285
00286 UV_LOOP_FILTER(v, 1, stride)
00287 UV_LOOP_FILTER(h, stride, 1)
00288
00289 static void vp8_v_loop_filter_simple_c(uint8_t *dst, int stride, int flim)
00290 {
00291 int i;
00292
00293 for (i = 0; i < 16; i++)
00294 if (simple_limit(dst+i, stride, flim))
00295 filter_common(dst+i, stride, 1);
00296 }
00297
00298 static void vp8_h_loop_filter_simple_c(uint8_t *dst, int stride, int flim)
00299 {
00300 int i;
00301
00302 for (i = 0; i < 16; i++)
00303 if (simple_limit(dst+i*stride, 1, flim))
00304 filter_common(dst+i*stride, 1, 1);
00305 }
00306
00307 static const uint8_t subpel_filters[7][6] = {
00308 { 0, 6, 123, 12, 1, 0 },
00309 { 2, 11, 108, 36, 8, 1 },
00310 { 0, 9, 93, 50, 6, 0 },
00311 { 3, 16, 77, 77, 16, 3 },
00312 { 0, 6, 50, 93, 9, 0 },
00313 { 1, 8, 36, 108, 11, 2 },
00314 { 0, 1, 12, 123, 6, 0 },
00315 };
00316
00317 #define PUT_PIXELS(WIDTH) \
00318 static void put_vp8_pixels ## WIDTH ##_c(uint8_t *dst, int dststride, uint8_t *src, int srcstride, int h, int x, int y) { \
00319 int i; \
00320 for (i = 0; i < h; i++, dst+= dststride, src+= srcstride) { \
00321 memcpy(dst, src, WIDTH); \
00322 } \
00323 }
00324
00325 PUT_PIXELS(16)
00326 PUT_PIXELS(8)
00327 PUT_PIXELS(4)
00328
00329 #define FILTER_6TAP(src, F, stride) \
00330 cm[(F[2]*src[x+0*stride] - F[1]*src[x-1*stride] + F[0]*src[x-2*stride] + \
00331 F[3]*src[x+1*stride] - F[4]*src[x+2*stride] + F[5]*src[x+3*stride] + 64) >> 7]
00332
00333 #define FILTER_4TAP(src, F, stride) \
00334 cm[(F[2]*src[x+0*stride] - F[1]*src[x-1*stride] + \
00335 F[3]*src[x+1*stride] - F[4]*src[x+2*stride] + 64) >> 7]
00336
00337 #define VP8_EPEL_H(SIZE, TAPS) \
00338 static void put_vp8_epel ## SIZE ## _h ## TAPS ## _c(uint8_t *dst, int dststride, uint8_t *src, int srcstride, int h, int mx, int my) \
00339 { \
00340 const uint8_t *filter = subpel_filters[mx-1]; \
00341 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; \
00342 int x, y; \
00343 \
00344 for (y = 0; y < h; y++) { \
00345 for (x = 0; x < SIZE; x++) \
00346 dst[x] = FILTER_ ## TAPS ## TAP(src, filter, 1); \
00347 dst += dststride; \
00348 src += srcstride; \
00349 } \
00350 }
00351 #define VP8_EPEL_V(SIZE, TAPS) \
00352 static void put_vp8_epel ## SIZE ## _v ## TAPS ## _c(uint8_t *dst, int dststride, uint8_t *src, int srcstride, int h, int mx, int my) \
00353 { \
00354 const uint8_t *filter = subpel_filters[my-1]; \
00355 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; \
00356 int x, y; \
00357 \
00358 for (y = 0; y < h; y++) { \
00359 for (x = 0; x < SIZE; x++) \
00360 dst[x] = FILTER_ ## TAPS ## TAP(src, filter, srcstride); \
00361 dst += dststride; \
00362 src += srcstride; \
00363 } \
00364 }
00365 #define VP8_EPEL_HV(SIZE, HTAPS, VTAPS) \
00366 static void put_vp8_epel ## SIZE ## _h ## HTAPS ## v ## VTAPS ## _c(uint8_t *dst, int dststride, uint8_t *src, int srcstride, int h, int mx, int my) \
00367 { \
00368 const uint8_t *filter = subpel_filters[mx-1]; \
00369 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; \
00370 int x, y; \
00371 uint8_t tmp_array[(2*SIZE+VTAPS-1)*SIZE]; \
00372 uint8_t *tmp = tmp_array; \
00373 src -= (2-(VTAPS==4))*srcstride; \
00374 \
00375 for (y = 0; y < h+VTAPS-1; y++) { \
00376 for (x = 0; x < SIZE; x++) \
00377 tmp[x] = FILTER_ ## HTAPS ## TAP(src, filter, 1); \
00378 tmp += SIZE; \
00379 src += srcstride; \
00380 } \
00381 \
00382 tmp = tmp_array + (2-(VTAPS==4))*SIZE; \
00383 filter = subpel_filters[my-1]; \
00384 \
00385 for (y = 0; y < h; y++) { \
00386 for (x = 0; x < SIZE; x++) \
00387 dst[x] = FILTER_ ## VTAPS ## TAP(tmp, filter, SIZE); \
00388 dst += dststride; \
00389 tmp += SIZE; \
00390 } \
00391 }
00392
00393 VP8_EPEL_H(16, 4)
00394 VP8_EPEL_H(8, 4)
00395 VP8_EPEL_H(4, 4)
00396 VP8_EPEL_H(16, 6)
00397 VP8_EPEL_H(8, 6)
00398 VP8_EPEL_H(4, 6)
00399 VP8_EPEL_V(16, 4)
00400 VP8_EPEL_V(8, 4)
00401 VP8_EPEL_V(4, 4)
00402 VP8_EPEL_V(16, 6)
00403 VP8_EPEL_V(8, 6)
00404 VP8_EPEL_V(4, 6)
00405 VP8_EPEL_HV(16, 4, 4)
00406 VP8_EPEL_HV(8, 4, 4)
00407 VP8_EPEL_HV(4, 4, 4)
00408 VP8_EPEL_HV(16, 4, 6)
00409 VP8_EPEL_HV(8, 4, 6)
00410 VP8_EPEL_HV(4, 4, 6)
00411 VP8_EPEL_HV(16, 6, 4)
00412 VP8_EPEL_HV(8, 6, 4)
00413 VP8_EPEL_HV(4, 6, 4)
00414 VP8_EPEL_HV(16, 6, 6)
00415 VP8_EPEL_HV(8, 6, 6)
00416 VP8_EPEL_HV(4, 6, 6)
00417
00418 #define VP8_BILINEAR(SIZE) \
00419 static void put_vp8_bilinear ## SIZE ## _h_c(uint8_t *dst, int stride, uint8_t *src, int s2, int h, int mx, int my) \
00420 { \
00421 int a = 8-mx, b = mx; \
00422 int x, y; \
00423 \
00424 for (y = 0; y < h; y++) { \
00425 for (x = 0; x < SIZE; x++) \
00426 dst[x] = (a*src[x] + b*src[x+1] + 4) >> 3; \
00427 dst += stride; \
00428 src += stride; \
00429 } \
00430 } \
00431 static void put_vp8_bilinear ## SIZE ## _v_c(uint8_t *dst, int stride, uint8_t *src, int s2, int h, int mx, int my) \
00432 { \
00433 int c = 8-my, d = my; \
00434 int x, y; \
00435 \
00436 for (y = 0; y < h; y++) { \
00437 for (x = 0; x < SIZE; x++) \
00438 dst[x] = (c*src[x] + d*src[x+stride] + 4) >> 3; \
00439 dst += stride; \
00440 src += stride; \
00441 } \
00442 } \
00443 \
00444 static void put_vp8_bilinear ## SIZE ## _hv_c(uint8_t *dst, int stride, uint8_t *src, int s2, int h, int mx, int my) \
00445 { \
00446 int a = 8-mx, b = mx; \
00447 int c = 8-my, d = my; \
00448 int x, y; \
00449 uint8_t tmp_array[(2*SIZE+1)*SIZE]; \
00450 uint8_t *tmp = tmp_array; \
00451 \
00452 for (y = 0; y < h+1; y++) { \
00453 for (x = 0; x < SIZE; x++) \
00454 tmp[x] = (a*src[x] + b*src[x+1] + 4) >> 3; \
00455 tmp += SIZE; \
00456 src += stride; \
00457 } \
00458 \
00459 tmp = tmp_array; \
00460 \
00461 for (y = 0; y < h; y++) { \
00462 for (x = 0; x < SIZE; x++) \
00463 dst[x] = (c*tmp[x] + d*tmp[x+SIZE] + 4) >> 3; \
00464 dst += stride; \
00465 tmp += SIZE; \
00466 } \
00467 }
00468
00469 VP8_BILINEAR(16)
00470 VP8_BILINEAR(8)
00471 VP8_BILINEAR(4)
00472
00473 #define VP8_MC_FUNC(IDX, SIZE) \
00474 dsp->put_vp8_epel_pixels_tab[IDX][0][0] = put_vp8_pixels ## SIZE ## _c; \
00475 dsp->put_vp8_epel_pixels_tab[IDX][0][1] = put_vp8_epel ## SIZE ## _h4_c; \
00476 dsp->put_vp8_epel_pixels_tab[IDX][0][2] = put_vp8_epel ## SIZE ## _h6_c; \
00477 dsp->put_vp8_epel_pixels_tab[IDX][1][0] = put_vp8_epel ## SIZE ## _v4_c; \
00478 dsp->put_vp8_epel_pixels_tab[IDX][1][1] = put_vp8_epel ## SIZE ## _h4v4_c; \
00479 dsp->put_vp8_epel_pixels_tab[IDX][1][2] = put_vp8_epel ## SIZE ## _h6v4_c; \
00480 dsp->put_vp8_epel_pixels_tab[IDX][2][0] = put_vp8_epel ## SIZE ## _v6_c; \
00481 dsp->put_vp8_epel_pixels_tab[IDX][2][1] = put_vp8_epel ## SIZE ## _h4v6_c; \
00482 dsp->put_vp8_epel_pixels_tab[IDX][2][2] = put_vp8_epel ## SIZE ## _h6v6_c
00483
00484 #define VP8_BILINEAR_MC_FUNC(IDX, SIZE) \
00485 dsp->put_vp8_bilinear_pixels_tab[IDX][0][0] = put_vp8_pixels ## SIZE ## _c; \
00486 dsp->put_vp8_bilinear_pixels_tab[IDX][0][1] = put_vp8_bilinear ## SIZE ## _h_c; \
00487 dsp->put_vp8_bilinear_pixels_tab[IDX][0][2] = put_vp8_bilinear ## SIZE ## _h_c; \
00488 dsp->put_vp8_bilinear_pixels_tab[IDX][1][0] = put_vp8_bilinear ## SIZE ## _v_c; \
00489 dsp->put_vp8_bilinear_pixels_tab[IDX][1][1] = put_vp8_bilinear ## SIZE ## _hv_c; \
00490 dsp->put_vp8_bilinear_pixels_tab[IDX][1][2] = put_vp8_bilinear ## SIZE ## _hv_c; \
00491 dsp->put_vp8_bilinear_pixels_tab[IDX][2][0] = put_vp8_bilinear ## SIZE ## _v_c; \
00492 dsp->put_vp8_bilinear_pixels_tab[IDX][2][1] = put_vp8_bilinear ## SIZE ## _hv_c; \
00493 dsp->put_vp8_bilinear_pixels_tab[IDX][2][2] = put_vp8_bilinear ## SIZE ## _hv_c
00494
00495 av_cold void ff_vp8dsp_init(VP8DSPContext *dsp)
00496 {
00497 dsp->vp8_luma_dc_wht = vp8_luma_dc_wht_c;
00498 dsp->vp8_luma_dc_wht_dc = vp8_luma_dc_wht_dc_c;
00499 dsp->vp8_idct_add = vp8_idct_add_c;
00500 dsp->vp8_idct_dc_add = vp8_idct_dc_add_c;
00501 dsp->vp8_idct_dc_add4y = vp8_idct_dc_add4y_c;
00502 dsp->vp8_idct_dc_add4uv = vp8_idct_dc_add4uv_c;
00503
00504 dsp->vp8_v_loop_filter16y = vp8_v_loop_filter16_c;
00505 dsp->vp8_h_loop_filter16y = vp8_h_loop_filter16_c;
00506 dsp->vp8_v_loop_filter8uv = vp8_v_loop_filter8uv_c;
00507 dsp->vp8_h_loop_filter8uv = vp8_h_loop_filter8uv_c;
00508
00509 dsp->vp8_v_loop_filter16y_inner = vp8_v_loop_filter16_inner_c;
00510 dsp->vp8_h_loop_filter16y_inner = vp8_h_loop_filter16_inner_c;
00511 dsp->vp8_v_loop_filter8uv_inner = vp8_v_loop_filter8uv_inner_c;
00512 dsp->vp8_h_loop_filter8uv_inner = vp8_h_loop_filter8uv_inner_c;
00513
00514 dsp->vp8_v_loop_filter_simple = vp8_v_loop_filter_simple_c;
00515 dsp->vp8_h_loop_filter_simple = vp8_h_loop_filter_simple_c;
00516
00517 VP8_MC_FUNC(0, 16);
00518 VP8_MC_FUNC(1, 8);
00519 VP8_MC_FUNC(2, 4);
00520
00521 VP8_BILINEAR_MC_FUNC(0, 16);
00522 VP8_BILINEAR_MC_FUNC(1, 8);
00523 VP8_BILINEAR_MC_FUNC(2, 4);
00524
00525 if (HAVE_MMX)
00526 ff_vp8dsp_init_x86(dsp);
00527 if (HAVE_ALTIVEC)
00528 ff_vp8dsp_init_altivec(dsp);
00529 if (ARCH_ARM)
00530 ff_vp8dsp_init_arm(dsp);
00531 }