mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
update
Originally committed as revision 10174 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
This commit is contained in:
parent
27161c0630
commit
b76ee469c7
@ -20,6 +20,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#include "swscale.h"
|
||||||
#include "rgb2rgb.h"
|
#include "rgb2rgb.h"
|
||||||
#include "../cpudetect.h"
|
#include "../cpudetect.h"
|
||||||
|
|
||||||
@ -27,6 +28,13 @@
|
|||||||
#define srcByte 0x55
|
#define srcByte 0x55
|
||||||
#define dstByte 0xBB
|
#define dstByte 0xBB
|
||||||
|
|
||||||
|
static int get_sws_cpuflags()
|
||||||
|
{
|
||||||
|
return (gCpuCaps.hasMMX ? SWS_CPU_CAPS_MMX : 0) |
|
||||||
|
(gCpuCaps.hasMMX2 ? SWS_CPU_CAPS_MMX2 : 0) |
|
||||||
|
(gCpuCaps.has3DNow ? SWS_CPU_CAPS_3DNOW : 0);
|
||||||
|
}
|
||||||
|
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, funcNum;
|
int i, funcNum;
|
||||||
@ -42,6 +50,8 @@ main(int argc, char **argv)
|
|||||||
printf("testing mmx\n");
|
printf("testing mmx\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sws_rgb2rgb_init(get_sws_cpuflags());
|
||||||
|
|
||||||
for(funcNum=0; funcNum<100; funcNum++){
|
for(funcNum=0; funcNum<100; funcNum++){
|
||||||
int width;
|
int width;
|
||||||
int failed=0;
|
int failed=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user