Commit 27a08cbd authored by albeu's avatar albeu

printf to mp_msg


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@5938 b3059339-0415-0410-9bf9-f77b7e298cf2
parent eeb1cce3
This diff is collapsed.
......@@ -2667,7 +2667,7 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar
static int firstTime=1; //FIXME move this into the context perhaps
if(flags & SWS_PRINT_INFO && firstTime)
{
fprintf(stderr, "SwScaler: Warning: dstStride is not aligned!\n"
mp_msg(MSGT_SWS,MSGL_WARN,"SwScaler: Warning: dstStride is not aligned!\n"
"SwScaler: ->cannot do aligned memory acesses anymore\n");
firstTime=0;
}
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment