CVS: main/libvo mga_common.c,1.55,1.56
Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv21147a/libvo Modified Files: mga_common.c Log Message: ugly ugly fix for michael's 1000l changes in swscaler: mysterious segfault w/g200 anyone have a better fix? Index: mga_common.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/mga_common.c,v retrieving revision 1.55 retrieving revision 1.56 diff -u -r1.55 -r1.56 --- mga_common.c 26 Apr 2003 16:56:21 -0000 1.55 +++ mga_common.c 27 Apr 2003 18:44:23 -0000 1.56 @@ -1,6 +1,8 @@ #include "fastmemcpy.h" #include "../mmx_defs.h" +#include "../cpudetect.h" +#include "../postproc/swscale.h" #include "../postproc/rgb2rgb.h" #include "mp_msg.h" @@ -413,9 +415,17 @@ return 0; } +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); +} + static uint32_t preinit(const char *vo_subdevice) { const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; + sws_rgb2rgb_init(get_sws_cpuflags()); f = open(devname,O_RDWR); if(f == -1)
Hi On Sunday 27 April 2003 20:44, Richard Felker CVS wrote:
Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv21147a/libvo
Modified Files: mga_common.c Log Message: ugly ugly fix for michael's 1000l changes in swscaler: mysterious segfault w/g200 anyone have a better fix? well, if the converters dont access the cpudetect code then the cpu type must be passed to the converters somehow (like with sws_rgb2rgb_init()) u could also use the swscaler instead of using the converters directly ...
[...] -- Michael screen[y][x] ^= cursor[cy][cx]; (violates patent #4,197,590) median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]); (violates patent #5,905,535) buf[i]= qp - buf[i-1]; (violates patent #?) for more examples, see http://mplayerhq.hu/~michael/patent.html stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en
On Sun, Apr 27, 2003 at 09:16:42PM +0200, Michael Niedermayer wrote:
Hi
On Sunday 27 April 2003 20:44, Richard Felker CVS wrote:
Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv21147a/libvo
Modified Files: mga_common.c Log Message: ugly ugly fix for michael's 1000l changes in swscaler: mysterious segfault w/g200 anyone have a better fix? well, if the converters dont access the cpudetect code then the cpu type must be passed to the converters somehow (like with sws_rgb2rgb_init()) u could also use the swscaler instead of using the converters directly ...
It doesn't use any converter, just interleaveBytes()... (G200 brain damage) Rich
participants (3)
-
D Richard Felker III -
Michael Niedermayer -
Richard Felker CVS