From de59563636e905c3d3db874d8e29452a3931a241 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 22 Oct 2001 19:03:32 +0000 Subject: [PATCH] #define USE_XANIM to enable xanim stuff git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2379 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dec_video.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dec_video.c b/dec_video.c index 9b1bc47474..d19569a7b5 100644 --- a/dec_video.c +++ b/dec_video.c @@ -65,6 +65,10 @@ extern picture_t *picture; // exported from libmpeg2/decode.c #include #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 @@ unsigned int out_fmt=sh_video->codec->outfmt[sh_video->outfmtidx]; 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 @@ unsigned int t2; //-------------------- 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;