From: J?rgen K. <jk...@us...> - 2002-10-10 14:05:23
|
Update of /cvsroot/xine/xine-lib/src/video_out In directory usw-pr-cvs1:/tmp/cvs-serv27446 Modified Files: yuv2rgb.c Log Message: Remove duplicate log messages about the scale_line variant we're using Index: yuv2rgb.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/video_out/yuv2rgb.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- yuv2rgb.c 30 Sep 2002 05:16:45 -0000 1.33 +++ yuv2rgb.c 10 Oct 2002 14:05:19 -0000 1.34 @@ -35,6 +35,7 @@ #include "yuv2rgb.h" #include "xineutils.h" +#define LOG static int prof_scale_line = -1; @@ -1209,16 +1210,29 @@ { 1, 1, scale_line_1_1, "non-scaled" }, }; int i; +#ifdef LOG + /* to filter out multiple messages about the scale_line variant we're using */ + static int reported_for_step; +#endif for (i = 0; i < sizeof(scale_line)/sizeof(scale_line[0]); i++) { if (step == scale_line[i].src_step*32768/scale_line[i].dest_step) { - printf("yuv2rgb: using %s optimized scale_line\n", scale_line[i].desc); +#ifdef LOG + if (step != reported_for_step) + printf("yuv2rgb: using %s optimized scale_line\n", scale_line[i].desc); + reported_for_step = step; +#endif return scale_line[i].func; } } - printf("yuv2rgb: using generic scale_line with interpolation\n"); - return scale_line_gen; +#ifdef LOG + if (step != reported_for_step) + printf("yuv2rgb: using generic scale_line with interpolation\n"); + reported_for_step = step; +#endif + + return scale_line_gen; } |