diff dec_video.c @ 1948:e0cc7b7290ec

native codec 'rle' added
author arpi
date Mon, 24 Sep 2001 20:21:53 +0000
parents 296208b47fd4
children 5ceb384bf163
line wrap: on
line diff
--- a/dec_video.c	Mon Sep 24 18:35:46 2001 +0000
+++ b/dec_video.c	Mon Sep 24 20:21:53 2001 +0000
@@ -62,6 +62,9 @@
 #include <decore.h>
 #endif
 
+void AVI_Decode_RLE8(char *image,char *delta,int tdsize,
+    unsigned int *map,int imagex,int imagey,unsigned char x11_bytes_pixel);
+
 //**************************************************************************//
 //             The OpenDivX stuff:
 //**************************************************************************//
@@ -351,6 +354,11 @@
  case VFM_RAW: {
    break;
  }
+ case VFM_RLE: {
+   int bpp=((out_fmt&255)+7)/8; // RGB only
+   sh_video->our_out_buffer = memalign(64,sh_video->disp_w*sh_video->disp_h*bpp); // FIXME!!!
+   break;
+ }
 }
   sh_video->inited=1;
   return 1;
@@ -552,6 +560,14 @@
     planes[0]=start;
     blit_frame=2;
     break;
+  case VFM_RLE:
+//void AVI_Decode_RLE8(char *image,char *delta,int tdsize,
+//    unsigned int *map,int imagex,int imagey,unsigned char x11_bytes_pixel);
+    AVI_Decode_RLE8(sh_video->our_out_buffer,start,in_size, 
+       (int*)(((char*)sh_video->bih)+40),
+      sh_video->disp_w,sh_video->disp_h,((out_fmt&255)+7)/8);
+    blit_frame=3;
+    break;
 } // switch
 //------------------------ frame decoded. --------------------