[Mplayer-cvslog] CVS: main dec_video.c,1.50,1.51

Arpi of Ize arpi at mplayer.dev.hu
Mon Oct 22 21:03:48 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv25685

Modified Files:
	dec_video.c 
Log Message:
#define USE_XANIM to enable xanim stuff

Index: dec_video.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_video.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- dec_video.c	21 Oct 2001 16:32:26 -0000	1.50
+++ dec_video.c	22 Oct 2001 19:03:32 -0000	1.51
@@ -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;




More information about the MPlayer-cvslog mailing list