changeset 2378:2d3b722512ed

#define USE_XANIM to enable xanim stuff
author arpi
date Mon, 22 Oct 2001 19:03:32 +0000
parents 3ad626921328
children 8a821809659d
files dec_video.c
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_video.c	Mon Oct 22 18:52:10 2001 +0000
+++ b/dec_video.c	Mon Oct 22 19:03:32 2001 +0000
@@ -65,6 +65,10 @@
 #include <decore.h>
 #endif
 
+#ifdef USE_XANIM
+#include "xacodec.h"
+#endif
+
 void AVI_Decode_RLE8(char *image,char *delta,int tdsize,
     unsigned int *map,int imagex,int imagey,unsigned char x11_bytes_pixel);
 
@@ -226,6 +230,13 @@
 sh_video->our_out_buffer=NULL;
 
 switch(sh_video->codec->driver){
+#ifdef USE_XANIM
+ case VFM_XANIM: {
+   int ret=xacodec_init_video(sh_video,out_fmt);
+   if(!ret) return 0;
+   break;
+ }
+#endif
 #ifdef USE_WIN32DLL
  case VFM_VFW: {
    if(!init_vfw_video_codec(sh_video,0)) {
@@ -438,6 +449,13 @@
 
   //--------------------  Decode a frame: -----------------------
 switch(sh_video->codec->driver){
+#ifdef USE_XANIM
+  case VFM_XANIM: {
+    int ret=xacodec_decode_frame(start,in_size,sh_video->our_out_buffer,drop_frame?1:0);
+    if(ret) blit_frame=3;
+    break;
+  }
+#endif
   case VFM_ODIVX: {
     // OpenDivX
     DEC_FRAME dec_frame;