Mercurial > mplayer.hg
diff postproc/swscale-example.c @ 9975:3914afe5c0a7
removing sws - global verbose var dependancy
removing sws - cpudetect dependancy (note rgb2rgb still needs it)
moving mplayer specific stuff from swscale.c -> vf_scale.c
author | michael |
---|---|
date | Thu, 24 Apr 2003 17:04:20 +0000 |
parents | 61057de81510 |
children | 988c2ffc5bc1 |
line wrap: on
line diff
--- a/postproc/swscale-example.c Thu Apr 24 08:20:10 2003 +0000 +++ b/postproc/swscale-example.c Thu Apr 24 17:04:20 2003 +0000 @@ -24,7 +24,6 @@ #include "swscale.h" #include "../libvo/img_format.h" -#include "../cpudetect.h" static int testFormat[]={ IMGFMT_YVU9, @@ -142,7 +141,6 @@ va_end(va); } -int verbose=0; //FIXME void fast_memcpy(void *a, void *b, int s){ //FIXME memcpy(a, b, s); } @@ -188,7 +186,6 @@ int stride[3]={W, W, W}; int x, y; struct SwsContext *sws; - GetCpuCaps(&gCpuCaps); sws= sws_getContext(W/12, H/12, IMGFMT_BGR32, W, H, IMGFMT_YV12, 2, NULL, NULL); @@ -201,4 +198,6 @@ sws_scale(sws, rgb_src, rgb_stride, 0, H , src, stride); asm volatile ("emms\n\t"); selfTest(src, stride, W, H); + + return 123; }