Commit 4a53a912 authored by Alban Bedel's avatar Alban Bedel

printf to mp_msg

Originally committed as revision 5938 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent ef5b1b5a
This diff is collapsed.
...@@ -2667,7 +2667,7 @@ static void RENAME(swScale)(SwsContext *c, uint8_t* srcParam[], int srcStridePar ...@@ -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 static int firstTime=1; //FIXME move this into the context perhaps
if(flags & SWS_PRINT_INFO && firstTime) 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"); "SwScaler: ->cannot do aligned memory acesses anymore\n");
firstTime=0; firstTime=0;
} }
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "rgb2rgb.h" #include "rgb2rgb.h"
#include "../cpudetect.h" #include "../cpudetect.h"
#include "../mangle.h" #include "../mangle.h"
#include "../mp_msg.h"
#ifdef HAVE_MLIB #ifdef HAVE_MLIB
#include "yuv2rgb_mlib.c" #include "yuv2rgb_mlib.c"
...@@ -157,9 +158,9 @@ void yuv2rgb_init (int bpp, int mode) ...@@ -157,9 +158,9 @@ void yuv2rgb_init (int bpp, int mode)
if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) { if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) {
yuv2rgb = yuv2rgb_init_MMX2 (bpp, mode); yuv2rgb = yuv2rgb_init_MMX2 (bpp, mode);
if (yuv2rgb != NULL) if (yuv2rgb != NULL)
printf ("Using MMX2 for colorspace transform\n"); mp_msg(MSGT_SWS,MSGL_INFO,"Using MMX2 for colorspace transform\n");
else else
printf ("Cannot init MMX2 colorspace transform\n"); mp_msg(MSGT_SWS,MSGL_WARN,"Cannot init MMX2 colorspace transform\n");
} }
} }
else if(gCpuCaps.hasMMX) else if(gCpuCaps.hasMMX)
...@@ -167,9 +168,9 @@ void yuv2rgb_init (int bpp, int mode) ...@@ -167,9 +168,9 @@ void yuv2rgb_init (int bpp, int mode)
if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) { if (yuv2rgb == NULL /*&& (config.flags & VO_MMX_ENABLE)*/) {
yuv2rgb = yuv2rgb_init_MMX (bpp, mode); yuv2rgb = yuv2rgb_init_MMX (bpp, mode);
if (yuv2rgb != NULL) if (yuv2rgb != NULL)
printf ("Using MMX for colorspace transform\n"); mp_msg(MSGT_SWS,MSGL_INFO,"Using MMX for colorspace transform\n");
else else
printf ("Cannot init MMX colorspace transform\n"); mp_msg(MSGT_SWS,MSGL_WARN,"Cannot init MMX colorspace transform\n");
} }
} }
#endif #endif
...@@ -177,11 +178,11 @@ void yuv2rgb_init (int bpp, int mode) ...@@ -177,11 +178,11 @@ void yuv2rgb_init (int bpp, int mode)
if (yuv2rgb == NULL /*&& (config.flags & VO_MLIB_ENABLE)*/) { if (yuv2rgb == NULL /*&& (config.flags & VO_MLIB_ENABLE)*/) {
yuv2rgb = yuv2rgb_init_mlib (bpp, mode); yuv2rgb = yuv2rgb_init_mlib (bpp, mode);
if (yuv2rgb != NULL) if (yuv2rgb != NULL)
printf ("Using mlib for colorspace transform\n"); mp_msg(MSGT_SWS,MSGL_INFO,"Using mlib for colorspace transform\n");
} }
#endif #endif
if (yuv2rgb == NULL) { 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_c_init (bpp, mode);
yuv2rgb = (yuv2rgb_fun)yuv2rgb_c; yuv2rgb = (yuv2rgb_fun)yuv2rgb_c;
} }
...@@ -489,7 +490,7 @@ static void yuv2rgb_c_init (int bpp, int mode) ...@@ -489,7 +490,7 @@ static void yuv2rgb_c_init (int bpp, int mode)
break; break;
default: default:
printf ("%ibpp not supported by yuv2rgb\n", bpp); mp_msg(MSGT_SWS,MSGL_ERR,"%ibpp not supported by yuv2rgb\n", bpp);
//exit (1); //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