From a1dcee10f40c833b3df0cd9bb96c60a8eb746410 Mon Sep 17 00:00:00 2001 From: lu_zero Date: Sun, 28 Jan 2007 17:51:41 +0000 Subject: av_logify git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22047 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/cs_test.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'libswscale/cs_test.c') diff --git a/libswscale/cs_test.c b/libswscale/cs_test.c index 6b2deab3e9..65b1de20b7 100644 --- a/libswscale/cs_test.c +++ b/libswscale/cs_test.c @@ -54,7 +54,7 @@ static char *args_parse(int argc, char *argv[]) cpu_caps |= SWS_CPU_CAPS_3DNOW; break; default: - fprintf(stderr, "Unknown option %c\n", o); + av_log(NULL, AV_LOG_ERROR, "Unknown option %c\n", o); } } @@ -69,9 +69,9 @@ int main(int argc, char **argv) int failedNum=0; int passedNum=0; - printf("memory corruption test ...\n"); + av_log(NULL, AV_LOG_INFO, "memory corruption test ...\n"); args_parse(argc, argv); - fprintf(stderr, "CPU capabilities forced to %x\n", cpu_caps); + av_log(NULL, AV_LOG_INFO, "CPU capabilities forced to %x\n", cpu_caps); sws_rgb2rgb_init(cpu_caps); for(funcNum=0; funcNum<100; funcNum++){ @@ -80,7 +80,7 @@ int main(int argc, char **argv) int srcBpp=0; int dstBpp=0; - printf("."); fflush(stdout); + av_log(NULL, AV_LOG_INFO,"."); fflush(stdout); memset(srcBuffer, srcByte, SIZE); for(width=32; width<64; width++){ @@ -149,6 +149,7 @@ int main(int argc, char **argv) srcBpp=4; dstBpp=2; name="rgb32to15"; + //((*s++) << TGA_SHIFT32) | TGA_ALPHA32; rgb32to15(src, dst, width*srcBpp); break; case 9: @@ -272,7 +273,7 @@ int main(int argc, char **argv) for(i=0; i