diff options
Diffstat (limited to 'TOOLS/realcodecs')
-rw-r--r-- | TOOLS/realcodecs/14_4.c | 54 | ||||
-rw-r--r-- | TOOLS/realcodecs/28_8.c | 54 | ||||
-rw-r--r-- | TOOLS/realcodecs/cook.c | 92 | ||||
-rw-r--r-- | TOOLS/realcodecs/drv2.c | 76 | ||||
-rw-r--r-- | TOOLS/realcodecs/drv3.c | 76 | ||||
-rw-r--r-- | TOOLS/realcodecs/drv4.c | 36 | ||||
-rw-r--r-- | TOOLS/realcodecs/ra.c | 92 | ||||
-rw-r--r-- | TOOLS/realcodecs/rv30.c | 140 | ||||
-rw-r--r-- | TOOLS/realcodecs/sipr.c | 90 |
9 files changed, 355 insertions, 355 deletions
diff --git a/TOOLS/realcodecs/14_4.c b/TOOLS/realcodecs/14_4.c index a32f4806a3..11cfb96d8d 100644 --- a/TOOLS/realcodecs/14_4.c +++ b/TOOLS/realcodecs/14_4.c @@ -114,7 +114,7 @@ void toc() { usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -151,10 +151,10 @@ void hexdump(void *pos, int len) { ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -164,12 +164,12 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -193,34 +193,34 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -228,7 +228,7 @@ ulong RAGetNumberOfFlavors(void) { ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -236,8 +236,8 @@ ulong RAInitDecoder(ulong p1,ulong p2) { ulong result; // int temp[256]; // unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); // memset(temp,0x77,256*4); @@ -252,18 +252,18 @@ ulong RAInitDecoder(ulong p1,ulong p2) { // hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d)\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld)\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -271,22 +271,22 @@ ulong RASetFlavor(ulong p1) { ulong result; // ulong numflavors, flavor, numprop=0, result1=0; // unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); // hexdump((void*)p1, 44); result=(*raSetFlavor)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 0 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor<numflavors) { - fprintf(stderr, "************ Flavor %d *************\n\n", flavor); + fprintf(stderr, "************ Flavor %ld *************\n\n", flavor); numprop=0; while (numprop<32) { result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property); - fprintf(stderr, "property %d=%d, result=0x%0x\n\n", + fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n", numprop, property, result1); hexdump((void*)result1, property); numprop++; diff --git a/TOOLS/realcodecs/28_8.c b/TOOLS/realcodecs/28_8.c index 776e0b07a3..c4e3a60cee 100644 --- a/TOOLS/realcodecs/28_8.c +++ b/TOOLS/realcodecs/28_8.c @@ -114,7 +114,7 @@ void toc() { usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -151,10 +151,10 @@ void hexdump(void *pos, int len) { ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -164,12 +164,12 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -193,34 +193,34 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -228,7 +228,7 @@ ulong RAGetNumberOfFlavors(void) { ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -236,8 +236,8 @@ ulong RAInitDecoder(ulong p1,ulong p2) { ulong result; // int temp[256]; // unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); // memset(temp,0x77,256*4); @@ -252,18 +252,18 @@ ulong RAInitDecoder(ulong p1,ulong p2) { // hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d)\n", p1, p1); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld)\n", p1, p1); hexdump((void*)p1, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -271,22 +271,22 @@ ulong RASetFlavor(ulong p1) { ulong result; // ulong numflavors, flavor, numprop=0, result1=0; // unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); // hexdump((void*)p1, 44); result=(*raSetFlavor)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 0 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor<numflavors) { - fprintf(stderr, "************ Flavor %d *************\n\n", flavor); + fprintf(stderr, "************ Flavor %ld *************\n\n", flavor); numprop=0; while (numprop<32) { result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property); - fprintf(stderr, "property %d=%d, result=0x%0x\n\n", + fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n", numprop, property, result1); hexdump((void*)result1, property); numprop++; diff --git a/TOOLS/realcodecs/cook.c b/TOOLS/realcodecs/cook.c index f6dcfdccc2..6dd9b22576 100644 --- a/TOOLS/realcodecs/cook.c +++ b/TOOLS/realcodecs/cook.c @@ -161,7 +161,7 @@ void toc() { usecs+=1000000; --secs; } - fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); + fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -198,10 +198,10 @@ void hexdump(void *pos, int len) { ulong RACloseCodec(ulong p1) { ulong result; - fprintf(stderr, "RACloseCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RACloseCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raCloseCodec)(p1); // closeDll(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -211,12 +211,12 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { ulong result; int x,y; - fprintf(stderr, "RADecode(ulong ctx=0x%0x, ", p1); - fprintf(stderr, "ulong src=0x%0x,\n", p2); - fprintf(stderr, "ulong len=0x%0x,", p3); - fprintf(stderr, "ulong dst=0x%0x,\n", p4); - fprintf(stderr, "ulong dstcnt=0x%0x, ",p5); - fprintf(stderr, "ulong p6=%d)\n", p6); + fprintf(stderr, "RADecode(ulong ctx=0x%0lx, ", p1); + fprintf(stderr, "ulong src=0x%0lx,\n", p2); + fprintf(stderr, "ulong len=0x%0lx,", p3); + fprintf(stderr, "ulong dst=0x%0lx,\n", p4); + fprintf(stderr, "ulong dstcnt=0x%0lx, ",p5); + fprintf(stderr, "ulong p6=%ld)\n", p6); // hexdump((void*)p1, 44); // hexdump((void*)p2, p3); // hexdump((void*)p4, 80); @@ -240,62 +240,62 @@ ulong RADecode(ulong p1,ulong p2,ulong p3,ulong p4,ulong* p5,ulong p6) { // hexdump((void*)p1, 44); // hexdump((void*)p4, 80); // hexdump((void*)p5, 16); - fprintf(stderr, "--> 0x%0x(%d) decoded: %d \n\n\n", result, result, p5[0]); + fprintf(stderr, "--> 0x%0lx(%ld) decoded: %ld \n\n\n", result, result, p5[0]); return result; } ulong RAEncode(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAEncode(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAEncode(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raEncode)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFlush(ulong p1,ulong p2,ulong p3) { ulong result; - fprintf(stderr, "RAFlush(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); + fprintf(stderr, "RAFlush(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); result=(*raFlush)(p1,p2,p3); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeDecoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeDecoder(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); result=(*raFreeDecoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAFreeEncoder(ulong p1) { ulong result; - fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAFreeEncoder(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raFreeEncoder)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAGetFlavorProperty(ulong p1,ulong p2,ulong p3, ulong p4) { ulong result; - fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d),\n", p2, p2); - fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); - fprintf(stderr, "ulong p4=0x%0x(%d))\n", p4, p4); + fprintf(stderr, "RAGetFlavorProperty(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld),\n", p2, p2); + fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); + fprintf(stderr, "ulong p4=0x%0lx(%ld))\n", p4, p4); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); tic(); result=(*raGetFlavorProperty)(p1,p2,p3,p4); toc(); - fprintf(stderr, "*p4=0x%0x\n", *((ulong*)p4)); + fprintf(stderr, "*p4=0x%0lx\n", *((ulong*)p4)); hexdump((void*)p4/*(void*)(*((void**)p4))*/,p2); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -303,7 +303,7 @@ ulong RAGetNumberOfFlavors(void) { ulong result; fprintf(stderr, "RAGetNumberOfFlavors(void)\n"); result=(*raGetNumberOfFlavors)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -311,7 +311,7 @@ ulong RAGetNumberOfFlavors2(void) { ulong result; fprintf(stderr, "RAGetNumberOfFlavors2(void)\n"); result=(*raGetNumberOfFlavors2)(); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -319,8 +319,8 @@ ulong RAInitDecoder(ulong p1,ulong p2) { ulong result; int temp[256]; unsigned char temp2[256]; - fprintf(stderr, "RAInitDecoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitDecoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p2, 4*7); // hexdump((void*)p1, 44); memset(temp,0x77,256*4); @@ -335,38 +335,38 @@ ulong RAInitDecoder(ulong p1,ulong p2) { hexdump((void*)temp[6], 32); // memcpy(p2,temp,4*11); // hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAInitEncoder(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "RAInitEncoder(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RAInitEncoder(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); result=(*raInitEncoder)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec(ulong p1) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RAOpenCodec(ulong p1=0x%0lx(%ld))\n", p1, p1); result=(*raOpenCodec)(p1); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RAOpenCodec2(ulong p1,ulong p2) { ulong result; // loadSyms(); - fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0x(%d), p2=%p)\n", p1, p1, p2); + fprintf(stderr, "RAOpenCodec2(ulong p1=0x%0lx(%ld), p2=%p)\n", p1, p1, p2); hexdump((void*)p1, 44); hexdump((void*)p2, 44); result=(*raOpenCodec2)(p1); hexdump((void*)p2, 44); hexdump((void*)p1, 44); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -374,23 +374,23 @@ ulong RASetFlavor(ulong p1,ulong p2) { ulong result, numprop=0, result1=0; ulong numflavors, flavor; unsigned short property; - fprintf(stderr, "RASetFlavor(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "RASetFlavor(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); hexdump((void*)p1, 44); hexdump((void*)p1, 44); result=(*raSetFlavor)(p1,p2); - fprintf(stderr, "--> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "--> 0x%0lx(%ld)\n\n\n", result, result); #if 1 fputs("######################## FLAVOR PROPERTIES ###################\n\n", stderr); numflavors=raGetNumberOfFlavors2(); flavor=0; while (flavor<numflavors) { - fprintf(stderr, "************ Flavor %d *************\n\n", flavor); + fprintf(stderr, "************ Flavor %ld *************\n\n", flavor); numprop=0; while (numprop<32) { result1=raGetFlavorProperty(p1, flavor, numprop, (ulong)&property); - fprintf(stderr, "property %d=%d, result=0x%0x\n\n", + fprintf(stderr, "property %ld=%d, result=0x%0lx\n\n", numprop, property, result1); hexdump((void*)result1, property); numprop++; @@ -406,7 +406,7 @@ ulong RASetFlavor(ulong p1,ulong p2) { void SetDLLAccessPath(ulong p1) { // loadSyms(); - fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); (*raSetDLLAccessPath)(p1); hexdump((void*)p1, 44); diff --git a/TOOLS/realcodecs/drv2.c b/TOOLS/realcodecs/drv2.c index 1b5d97c2a1..f97ac38c68 100644 --- a/TOOLS/realcodecs/drv2.c +++ b/TOOLS/realcodecs/drv2.c @@ -138,7 +138,7 @@ void toc() { usecs+=1000000; --secs; } -// fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); +// fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -177,7 +177,7 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { ulong result; // ulong *pp1=p1; ulong temp[16]; - fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]); + fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n", p1, p2, p1[0],p1[1],p1[2]); /* if(p1[0]!=17) return 0; @@ -209,7 +209,7 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { return 0; } } -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 12); // if (pp1[0]==0x24) { // hexdump((void*)(pp1[2]),128); @@ -217,19 +217,19 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { // tic(); result=(*rvyuvCustomMessage)(p1,p2); // toc(); - fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0x(%d)\n", result, result); + fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n", result, result); return result; } ulong RV20toYUV420Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*rvyuvFree)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "RV20toYUV420Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -239,10 +239,10 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) { ulong result; fprintf(stderr, "#R# RV20toYUV420HiveMessage(%p,%p)\n", p1, p2); // p1->constant,p1->width,p1->height,p1->format1,p1->format2); -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, sizeof(struct init_data)); - fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,">HIVE %ld %p\n",p1[0],p1[1]); if(p1[0]!=0) return 0; @@ -268,11 +268,11 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) { // p1[0]=0; // p1[1]=0x20000000; - fprintf(stderr,"<HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,"<HIVE %ld %p\n",p1[0],p1[1]); // hexdump((void*)p1, sizeof(struct init_data)); // hexdump((void*)p1, 8); - fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0x(%d)\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result); return result; } @@ -291,8 +291,8 @@ static char i_temp[32768]; ulong RV20toYUV420Init(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); fprintf(stderr,"COPY INIT DATA!\n"); memcpy(i_temp,p1,24); @@ -308,7 +308,7 @@ ulong RV20toYUV420Init(ulong p1,ulong p2) { memset(i_temp,0x77,1000); // hexdump(*((void**)p2), 512); - fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -374,7 +374,7 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5) { crc_src=build_crc(pch, pp3[0]); pp4=pp3[3]; - fprintf(stderr,"transin1[%p]: {%d/%d} ",pp4,pp3[2],pp3[0]); + fprintf(stderr,"transin1[%p]: {%ld/%ld} ",pp4,pp3[2],pp3[0]); // pp4[0],pp4[1],pp4[2],pp4[3], // pp4[4],pp4[5],pp4[6],pp4[7]); @@ -382,7 +382,7 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5) { memcpy(temp,pp4,8*(pp3[2]+1)); for(i=0;i<=pp3[2];i++){ - fprintf(stderr," %p(%d)",temp[i*2],temp[i*2+1]); + fprintf(stderr," %p(%ld)",temp[i*2],temp[i*2+1]); } fprintf(stderr,"\n"); @@ -428,9 +428,9 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5) { // pp3=p3; // TRANSFORM: <timestamp> <numblocks> <len> <crc_src> <crc_dest> <p4[4]> -// fprintf(stderr, "TRAFO:\t%d\t%d\t%d\t%.8X\t%.8X\t%d\n", +// fprintf(stderr, "TRAFO:\t%ld\t%ld\t%ld\t%.8lX\t%.8lX\t%ld\n", // pp3[5], pp3[2], pp3[0], crc_src, crc0, pp3[4]); - fprintf(stderr, "#R# Decode: %d(%d) [%08X] pts=%d -> %d [%08X]\n", + fprintf(stderr, "#R# Decode: %ld(%ld) [%08lX] pts=%ld -> %ld [%08lX]\n", pp3[0],pp3[2],crc_src,pp3[5], result,crc0); @@ -438,70 +438,70 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5) { // hexdump((char*)p2, /*64*/ pp4[3]*pp4[4]/2); // hexdump((void*)p4, 20); // hexdump((void*)p5, 512); -// fprintf(stderr, "RV20toYUV420Transform --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420Transform --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free(ulong p1=0x%0lx(%ld))\n", p1, p1); tic(); result=(*rvyuvRNFRUFree)(p1); toc(); - fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420_RN_FRU_Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_GetFrame(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUGetFrame)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_GetFrame --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Init(ulong p1,ulong p2,ulong p3) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d))\n", p3, p3); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld))\n", p3, p3); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUInit)(p1,p2,p3); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } ulong RV20toYUV420_RN_FRU_Setup(ulong p1,ulong p2,ulong p3,ulong p4, ulong p5,ulong p6,ulong p7,ulong p8) { ulong result; -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0x(%d), ", p1, p1); -// fprintf(stderr, "ulong p2=0x%0x(%d),\n\t", p2, p2); -// fprintf(stderr, "ulong p3=0x%0x(%d), ", p3, p3); -// fprintf(stderr, "ulong p4=0x%0x(%d),\n\t", p4, p4); -// fprintf(stderr, "ulong p5=0x%0x(%d), ", p5, p5); -// fprintf(stderr, "ulong p6=0x%0x(%d),\n\t", p6, p6); -// fprintf(stderr, "ulong p7=0x%0x(%d), ", p7, p7); -// fprintf(stderr, "ulong p8=0x%0x(%d))\n", p8, p8); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup(ulong p1=0x%0lx(%ld), ", p1, p1); +// fprintf(stderr, "ulong p2=0x%0lx(%ld),\n\t", p2, p2); +// fprintf(stderr, "ulong p3=0x%0lx(%ld), ", p3, p3); +// fprintf(stderr, "ulong p4=0x%0lx(%ld),\n\t", p4, p4); +// fprintf(stderr, "ulong p5=0x%0lx(%ld), ", p5, p5); +// fprintf(stderr, "ulong p6=0x%0lx(%ld),\n\t", p6, p6); +// fprintf(stderr, "ulong p7=0x%0lx(%ld), ", p7, p7); +// fprintf(stderr, "ulong p8=0x%0lx(%ld))\n", p8, p8); // hexdump((void*)p1, 44); tic(); result=(*rvyuvRNFRUSetup)(p1,p2,p3,p4,p5,p6,p7,p8); toc(); // hexdump((void*)p1, 44); -// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0x(%d)\n\n\n", result, result); +// fprintf(stderr, "RV20toYUV420_RN_FRU_Setup --> 0x%0lx(%ld)\n\n\n", result, result); return result; } /*void SetDLLAccessPath(ulong p1) { - fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "SetDLLAccessPath(ulong p1=0x%0lx(%ld))\n", p1, p1); hexdump((void*)p1, 44); (*setDLLAccessPath)(p1); hexdump((void*)p1, 44); diff --git a/TOOLS/realcodecs/drv3.c b/TOOLS/realcodecs/drv3.c index 4a7dc7b12d..322ba378f5 100644 --- a/TOOLS/realcodecs/drv3.c +++ b/TOOLS/realcodecs/drv3.c @@ -138,7 +138,7 @@ void toc() { usecs+=1000000; --secs; } -// fprintf(stderr, "Duration: %d.%0.6ds\n", secs, usecs); +// fprintf(stderr, "Duration: %ld.%0.6lds\n", secs, usecs); } @@ -177,7 +177,7 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { ulong result; // ulong *pp1=p1; ulong temp[16]; - fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]); + fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%ld,%ld,%ld] \n", p1, p2, p1[0],p1[1],p1[2]); #if 1 if(p1[0]==0x24){ hexdump(p1[2],16); @@ -189,7 +189,7 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { } #endif -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, 12); // if (pp1[0]==0x24) { // hexdump((void*)(pp1[2]),128); @@ -197,19 +197,19 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) { // tic(); result=(*rvyuvCustomMessage)(p1,p2); // toc(); - fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0x(%d)\n", result, result); + fprintf(stderr, "#R# <= RV20toYUV420CustomMessage --> 0x%0lx(%ld)\n", result, result); return result; } ulong RV20toYUV420Free(ulong p1) { ulong result; - fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0x(%d))\n", p1, p1); + fprintf(stderr, "RV20toYUV420Free(ulong p1=0x%0lx(%ld))\n", p1, p1); // hexdump((void*)p1, 44); tic(); result=(*rvyuvFree)(p1); toc(); // hexdump((void*)p1, 44); - fprintf(stderr, "RV20toYUV420Free --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "RV20toYUV420Free --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -219,10 +219,10 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) { ulong result; fprintf(stderr, "#R# RV20toYUV420HiveMessage(%p,%p)\n", p1, p2); // p1->constant,p1->width,p1->height,p1->format1,p1->format2); -// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); +// fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); // hexdump((void*)p1, sizeof(struct init_data)); - fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,">HIVE %ld %p\n",p1[0],p1[1]); fprintf(stderr,"COPY INIT DATA!\n"); memset(h_temp,0x77,1000); @@ -243,11 +243,11 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) { // p1[0]=0; // p1[1]=0x20000000; - fprintf(stderr,"<HIVE %d %p\n",p1[0],p1[1]); + fprintf(stderr,"<HIVE %ld %p\n",p1[0],p1[1]); // hexdump((void*)p1, sizeof(struct init_data)); // hexdump((void*)p1, 8); - fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0x(%d)\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420HiveMessage --> 0x%0lx(%ld)\n\n", result, result); return result; } @@ -266,8 +266,8 @@ static char i_temp[32768]; ulong RV20toYUV420Init(ulong p1,ulong p2) { ulong result; - fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0x(%d), ", p1, p1); - fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2); + fprintf(stderr, "#R# RV20toYUV420Init(ulong p1=0x%0lx(%ld), ", p1, p1); + fprintf(stderr, "ulong p2=0x%0lx(%ld))\n", p2, p2); fprintf(stderr,"COPY INIT DATA!\n"); memcpy(i_temp,p1,24); @@ -283,7 +283,7 @@ ulong RV20toYUV420Init(ulong p1,ulong p2) { memset(i_temp,0x77,1000); // hexdump(*((void**)p2), 512); - fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0x(%d)\n\n\n", result, result); + fprintf(stderr, "#R# RV20toYUV420Init --> 0x%0lx(%ld)\n\n\n", result, result); return result; } @@ -349,7 +349,7 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4,ulong p5) { crc_src=build_crc(pch, pp3[0]); pp4=pp3[3]; - fprintf(stderr,"transin1[%p]: {%d/%d} ",pp4,pp3[2],pp3[0]); + fprintf(stderr,"transin1[%p]: {%ld/%ld} ",pp4,pp3[2],pp3[0]); // pp4[0],pp4[1],pp4[2],pp4[3], // pp4[4],pp4[5],pp4[6],pp4[7]); @@ -357,7 +357,7 @@ ulong RV20toYUV420Transform(ulong p1,ulong p2,ulong p3,ulong p4 |