comparison dec_video.c @ 2541:88195a28576a

changed hardcoded 'emms' to EMMS according to pp/swscale.c
author alex
date Mon, 29 Oct 2001 20:28:06 +0000
parents b2ce5d6d7d4f
children fc124f9db88e
comparison
equal deleted inserted replaced
2540:f2e70944d02a 2541:88195a28576a
72 #endif 72 #endif
73 73
74 #ifdef USE_XANIM 74 #ifdef USE_XANIM
75 #include "xacodec.h" 75 #include "xacodec.h"
76 #endif 76 #endif
77
78 #include "mmx_defs.h"
77 79
78 void AVI_Decode_RLE8(char *image,char *delta,int tdsize, 80 void AVI_Decode_RLE8(char *image,char *delta,int tdsize,
79 unsigned int *map,int imagex,int imagey,unsigned char x11_bytes_pixel); 81 unsigned int *map,int imagex,int imagey,unsigned char x11_bytes_pixel);
80 82
81 //**************************************************************************// 83 //**************************************************************************//
660 //------------------------ frame decoded. -------------------- 662 //------------------------ frame decoded. --------------------
661 663
662 #ifdef HAVE_MMX 664 #ifdef HAVE_MMX
663 // some codecs is broken, and doesn't restore MMX state :( 665 // some codecs is broken, and doesn't restore MMX state :(
664 // it happens usually with broken/damaged files. 666 // it happens usually with broken/damaged files.
665 __asm __volatile ("emms;":::"memory"); 667 __asm __volatile (EMMS:::"memory");
666 #endif 668 #endif
667 669
668 t2=GetTimer();t=t2-t;video_time_usage+=t*0.000001f; 670 t2=GetTimer();t=t2-t;video_time_usage+=t*0.000001f;
669 671
670 switch(blit_frame){ 672 switch(blit_frame){