some fixes
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 22 Oct 2002 15:55:40 +0000 (15:55 +0000)
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 22 Oct 2002 15:55:40 +0000 (15:55 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@7847 b3059339-0415-0410-9bf9-f77b7e298cf2

TOOLS/realcodecs/drv2.c
TOOLS/realcodecs/drv3.c

index ac519ec..c162c53 100644 (file)
@@ -189,12 +189,23 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) {
 */
        
        if(p1[0]==0x24){
+#if 1
            hexdump(p1[2],64);
            memset(temp,0x77,16*4);
            memcpy(temp,p1[2],16);
            p1[2]=temp;
+#endif
        } else {
-//         return 0;
+           switch(p1[0]){
+           case 17:
+               if(p1[1]==1)
+               break;
+           case 18:
+           case 30:
+           case 3:
+           default:
+               return 0;
+           }
        }
 //     fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2);
 //     hexdump((void*)p1, 12);
@@ -230,11 +241,16 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) {
 //     hexdump((void*)p1, sizeof(struct init_data));
 
        fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]);
+       
+       if(p1[0]!=0) return 0;
+       
+       p1[1]=0x10000000;
+       return 0;
 
-       fprintf(stderr,"COPY INIT DATA!\n");
+//     fprintf(stderr,"COPY INIT DATA!\n");
        memset(h_temp,0x77,1000);
        memcpy(h_temp,p1,4);
-       fprintf(stderr,"COPY OK!\n");
+//     fprintf(stderr,"COPY OK!\n");
        
 //     tic();
 //     result=(*rvyuvHiveMessage)(p1,p2);
index 5e715a2..1e20469 100644 (file)
@@ -176,9 +176,9 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) {
        ulong *pp1=p1;
        ulong temp[16];
        fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]);
-#if 0
+#if 1
        if(p1[0]==0x24){
-           hexdump(p1[2],64);
+           hexdump(p1[2],16);
            memset(temp,0x77,16*4);
            memcpy(temp,p1[2],16);
            p1[2]=temp;