[Mplayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.15,1.16
Michael Niedermayer
michael at mplayerhq.hu
Wed Oct 30 02:51:16 CET 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv25778/libmpcodecs
Modified Files:
vf_pp.c
Log Message:
cleanly passing the cpuCaps
Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vf_pp.c 29 Oct 2002 20:12:07 -0000 1.15
+++ vf_pp.c 30 Oct 2002 01:51:14 -0000 1.16
@@ -6,6 +6,7 @@
#include "../config.h"
#include "../mp_msg.h"
+#include "../cpudetect.h"
#include "img_format.h"
#include "mp_image.h"
@@ -97,7 +98,6 @@
&vf->priv->ppMode[ vf->priv->pp ], vf->priv->context,
mpi->pict_type);
}
-
return vf_next_put_image(vf,vf->priv->dmpi);
}
@@ -131,6 +131,12 @@
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)){
printf("%s", pp_help);
@@ -145,7 +151,7 @@
}else{
name="de";
}
-
+
if(name){
for(i=0; i<=GET_PP_QUALITY_MAX; i++){
vf->priv->ppMode[i]= pp_get_mode_by_name_and_quality(name, i);
More information about the MPlayer-cvslog
mailing list