Revision 30c6fefd

View differences:

libswscale/swscale.c
62 62
#include "rgb2rgb.h"
63 63
#include "libavutil/intreadwrite.h"
64 64
#include "libavutil/x86_cpu.h"
65
#include "libavutil/cpu.h"
65 66
#include "libavutil/avutil.h"
66 67
#include "libavutil/mathematics.h"
67 68
#include "libavutil/bswap.h"
......
1315 1316
#if CONFIG_RUNTIME_CPUDETECT
1316 1317
    int flags = c->flags;
1317 1318

  
1319
    int cpuflags = av_get_cpu_flags();
1320

  
1321
    flags |= (cpuflags & AV_CPU_FLAG_MMX ? SWS_CPU_CAPS_MMX : 0);
1322
    flags |= (cpuflags & AV_CPU_FLAG_MMX2 ? SWS_CPU_CAPS_MMX2 : 0);
1323
    flags |= (cpuflags & AV_CPU_FLAG_3DNOW ? SWS_CPU_CAPS_3DNOW : 0);
1324

  
1318 1325
#if ARCH_X86
1319 1326
    // ordered per speed fastest first
1320 1327
    if (flags & SWS_CPU_CAPS_MMX2) {

Also available in: Unified diff