[Mplayer-cvslog] CVS: main/postproc yuv2rgb.c,1.3,1.4

Alban Bedel CVS albeu at mplayerhq.hu
Thu May 2 13:00:18 CEST 2002


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

Modified Files:
	yuv2rgb.c 
Log Message:
printf to mp_msg


Index: yuv2rgb.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/yuv2rgb.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- yuv2rgb.c	20 Jan 2002 18:36:09 -0000	1.3
+++ yuv2rgb.c	2 May 2002 11:00:16 -0000	1.4
@@ -37,6 +37,7 @@
 #include "rgb2rgb.h"
 #include "../cpudetect.h"
 #include "../mangle.h"
+#include "../mp_msg.h"
 
 #ifdef HAVE_MLIB
 #include "yuv2rgb_mlib.c"
@@ -157,9 +158,9 @@
 	if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) {
 		yuv2rgb = yuv2rgb_init_MMX2 (bpp, mode);
 		if (yuv2rgb != NULL)
-			printf ("Using MMX2 for colorspace transform\n");
+			mp_msg(MSGT_SWS,MSGL_INFO,"Using MMX2 for colorspace transform\n");
 		else
-			printf ("Cannot init MMX2 colorspace transform\n");
+			mp_msg(MSGT_SWS,MSGL_WARN,"Cannot init MMX2 colorspace transform\n");
 	}
     }
     else if(gCpuCaps.hasMMX)
@@ -167,9 +168,9 @@
 	if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) {
 		yuv2rgb = yuv2rgb_init_MMX (bpp, mode);
 		if (yuv2rgb != NULL)
-			printf ("Using MMX for colorspace transform\n");
+			mp_msg(MSGT_SWS,MSGL_INFO,"Using MMX for colorspace transform\n");
 		else
-			printf ("Cannot init MMX colorspace transform\n");
+			mp_msg(MSGT_SWS,MSGL_WARN,"Cannot init MMX colorspace transform\n");
 	}
     }
 #endif
@@ -177,11 +178,11 @@
     if (yuv2rgb == NULL /*&& (config.flags & VO_MLIB_ENABLE)*/) {
 	yuv2rgb = yuv2rgb_init_mlib (bpp, mode);
 	if (yuv2rgb != NULL)
-	    printf ("Using mlib for colorspace transform\n");
+	    mp_msg(MSGT_SWS,MSGL_INFO,"Using mlib for colorspace transform\n");
     }
 #endif
     if (yuv2rgb == NULL) {
-	printf ("No accelerated colorspace conversion found\n");
+	mp_msg(MSGT_SWS,MSGL_INFO,"No accelerated colorspace conversion found\n");
 	yuv2rgb_c_init (bpp, mode);
 	yuv2rgb = (yuv2rgb_fun)yuv2rgb_c;
     }
@@ -489,7 +490,7 @@
 	break;
 
     default:
-	printf ("%ibpp not supported by yuv2rgb\n", bpp);
+	mp_msg(MSGT_SWS,MSGL_ERR,"%ibpp not supported by yuv2rgb\n", bpp);
 	//exit (1);
     }
 




More information about the MPlayer-cvslog mailing list