X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmotion-test.c;h=87086360301dabb1b5a169b3056ab5796d025bdb;hb=843cd4a3edf254c2a42663777c1633d67cbef238;hp=fb21ee974bf210e3dde83bb994d1d04cdb993d18;hpb=504ffed19f990f91237479be93480d9b597561e2;p=ffmpeg diff --git a/libavcodec/motion-test.c b/libavcodec/motion-test.c index fb21ee974bf..87086360301 100644 --- a/libavcodec/motion-test.c +++ b/libavcodec/motion-test.c @@ -1,25 +1,25 @@ /* * (c) 2001 Fabrice Bellard * - * This file is part of FFmpeg. + * This file is part of Libav. * - * FFmpeg is free software; you can redistribute it and/or + * Libav is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * FFmpeg is distributed in the hope that it will be useful, + * Libav is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software + * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** - * @file libavcodec/motion-test.c + * @file * motion test. */ @@ -29,27 +29,27 @@ #include #include +#include "config.h" #include "dsputil.h" #include "libavutil/lfg.h" -#undef exit #undef printf #define WIDTH 64 #define HEIGHT 64 -uint8_t img1[WIDTH * HEIGHT]; -uint8_t img2[WIDTH * HEIGHT]; +static uint8_t img1[WIDTH * HEIGHT]; +static uint8_t img2[WIDTH * HEIGHT]; static void fill_random(uint8_t *tab, int size) { int i; - AVLFG prn; + AVLFG prng; - av_lfg_init(&prn, 1); + av_lfg_init(&prng, 1); for(i=0;idsp_mask = FF_MM_FORCE; + ctx = avcodec_alloc_context3(NULL); + ctx->dsp_mask = AV_CPU_FLAG_FORCE; dsputil_init(&cctx, ctx); - for (c = 0; c < 1; c++) { + for (c = 0; c < flags_size; c++) { int x; - ctx->dsp_mask = FF_MM_FORCE | flags[c]; + ctx->dsp_mask = AV_CPU_FLAG_FORCE | flags[c]; dsputil_init(&mmxctx, ctx); for (x = 0; x < 2; x++) {