big cosmetics patch, cleanup of messages printed by mplayer and libs.
authorArpi <arpi@thot.banki.hu>
Mon, 20 May 2002 03:25:26 +0000 (03:25 +0000)
committerArpi <arpi@thot.banki.hu>
Mon, 20 May 2002 03:25:26 +0000 (03:25 +0000)
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent

Originally committed as revision 6139 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c

index a602de0076a68ca6f97bbb9628c6b986674ca3e7..43553f8d59514b6d4d09b5baa7927871fd5ebabc 100644 (file)
@@ -1723,26 +1723,24 @@ SwsContext *getSwsContext(int srcW, int srcH, int srcFormat, int dstW, int dstH,
                char *dither= "";
 #endif
                if(flags&SWS_FAST_BILINEAR)
                char *dither= "";
 #endif
                if(flags&SWS_FAST_BILINEAR)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: FAST_BILINEAR scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: FAST_BILINEAR scaler, ");
                else if(flags&SWS_BILINEAR)
                else if(flags&SWS_BILINEAR)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: BILINEAR scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: BILINEAR scaler, ");
                else if(flags&SWS_BICUBIC)
                else if(flags&SWS_BICUBIC)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: BICUBIC scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: BICUBIC scaler, ");
                else if(flags&SWS_X)
                else if(flags&SWS_X)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Experimental scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Experimental scaler, ");
                else if(flags&SWS_POINT)
                else if(flags&SWS_POINT)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Nearest Neighbor / POINT scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Nearest Neighbor / POINT scaler, ");
                else if(flags&SWS_AREA)
                else if(flags&SWS_AREA)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: Area Averageing scaler, ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: Area Averageing scaler, ");
                else
                else
-                       mp_msg(MSGT_SWS,MSGL_INFO,"\nSwScaler: ehh flags invalid?! ");
+                       mp_msg(MSGT_SWS,MSGL_INFO,"SwScaler: ehh flags invalid?! ");
 
 
-               if(dstFormat==IMGFMT_BGR15 || dstFormat==IMGFMT_BGR16)
-                       mp_msg(MSGT_SWS,MSGL_INFO,"from %s to%s %s ", 
-                               vo_format_name(srcFormat), dither, vo_format_name(dstFormat));
-               else
-                       mp_msg(MSGT_SWS,MSGL_INFO,"from %s to %s ", 
-                               vo_format_name(srcFormat), vo_format_name(dstFormat));
+               mp_msg(MSGT_SWS,MSGL_INFO,"%dx%d %s -> %dx%d%s %s ", 
+                       srcW,srcH, vo_format_name(srcFormat), dstW,dstH,
+                       (dstFormat==IMGFMT_BGR15 || dstFormat==IMGFMT_BGR16) ?
+                       dither : "", vo_format_name(dstFormat));
 
                if(cpuCaps.hasMMX2)
                        mp_msg(MSGT_SWS,MSGL_INFO,"using MMX2\n");
 
                if(cpuCaps.hasMMX2)
                        mp_msg(MSGT_SWS,MSGL_INFO,"using MMX2\n");