Revision b76ee469

View differences:

postproc/cs_test.c
20 20
#include <stdlib.h>
21 21
#include <inttypes.h>
22 22

  
23
#include "swscale.h"
23 24
#include "rgb2rgb.h"
24 25
#include "../cpudetect.h"
25 26

  
......
27 28
#define srcByte 0x55
28 29
#define dstByte 0xBB
29 30

  
31
static int get_sws_cpuflags()
32
{
33
    return (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) |
34
	(gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) |
35
	(gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0);
36
}
37

  
30 38
main(int argc, char **argv)
31 39
{
32 40
	int i, funcNum;
......
42 50
		printf("testing mmx\n");
43 51
	}
44 52
	
53
	sws_rgb2rgb_init(get_sws_cpuflags());
54
	
45 55
	for(funcNum=0; funcNum<100; funcNum++){
46 56
		int width;
47 57
		int failed=0;

Also available in: Unified diff