aboutsummaryrefslogtreecommitdiffstats
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2002-05-02 11:00:16 +0000
committerAlban Bedel <albeu@free.fr>2002-05-02 11:00:16 +0000
commit4a53a912af662bcf498adb225fab128471854d83 (patch)
treea85aa7a5399c2028139baca79480a2e4dd584d66 /postproc/yuv2rgb.c
parentef5b1b5a7ee2d4bce47382e74fe4c88d207c641a (diff)
downloadffmpeg-4a53a912af662bcf498adb225fab128471854d83.tar.gz
printf to mp_msg
Originally committed as revision 5938 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index 321c320a7a..ac5f8b7e91 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -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 @@ void yuv2rgb_init (int bpp, int mode)
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 @@ void yuv2rgb_init (int bpp, int mode)
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 @@ void yuv2rgb_init (int bpp, int mode)
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 @@ static void yuv2rgb_c_init (int bpp, int mode)
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);
}