[Mplayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.16,1.17

Michael Niedermayer michael at mplayerhq.hu
Wed Oct 30 22:02:26 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv2114/libmpcodecs

Modified Files:
	vf_pp.c 
Log Message:
per context cpuCaps (idea by kabi)


Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- vf_pp.c	30 Oct 2002 01:51:14 -0000	1.16
+++ vf_pp.c	30 Oct 2002 21:02:21 -0000	1.17
@@ -27,7 +27,11 @@
 static int config(struct vf_instance_s* vf,
         int width, int height, int d_width, int d_height,
 	unsigned int voflags, unsigned int outfmt){
-    vf->priv->context= pp_get_context(width, height);
+    vf->priv->context= pp_get_context(width, height,
+          (gCpuCaps.hasMMX   ? PP_CPU_CAPS_MMX   : 0)
+	| (gCpuCaps.hasMMX2  ? PP_CPU_CAPS_MMX2  : 0)
+	| (gCpuCaps.has3DNow ? PP_CPU_CAPS_3DNOW : 0)
+    );
 
     return vf_next_config(vf,width,height,d_width,d_height,voflags,vf->priv->outfmt);
 }
@@ -130,12 +134,6 @@
     // check csp:
     vf->priv->outfmt=vf_match_csp(&vf->next,fmt_list,IMGFMT_YV12);
     if(!vf->priv->outfmt) return 0; // no csp match :(
-    
-    pp_init(
-          (gCpuCaps.hasMMX   ? PP_CPU_CAPS_MMX   : 0)
-	| (gCpuCaps.hasMMX2  ? PP_CPU_CAPS_MMX2  : 0)
-	| (gCpuCaps.has3DNow ? PP_CPU_CAPS_3DNOW : 0)
-    );
     
     if(args){
 	if(!strcmp("help", args)){




More information about the MPlayer-cvslog mailing list